Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_Start",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_Start",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008523/0.0008523, allocations: 101.7 kB / 17 MB, free: 6.355 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0008327/0.0008328, allocations: 191.2 kB / 17.9 MB, free: 5.914 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.354/1.354, allocations: 227.4 MB / 246 MB, free: 10.25 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002307/0.0002307, allocations: 4 kB / 306.8 MB, free: 1.238 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1078/0.108, allocations: 51.49 MB / 358.3 MB, free: 13.76 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start): time 0.006463/0.1146, allocations: 6.298 MB / 364.6 MB, free: 7.43 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.003812/0.1184, allocations: 2.226 MB / 366.8 MB, free: 5.199 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005458/0.119, allocations: 16 kB / 366.8 MB, free: 5.184 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001206/0.1202, allocations: 421.7 kB / 367.3 MB, free: 4.77 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008232/0.121, allocations: 309.6 kB / 367.6 MB, free: 4.465 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003776/0.1214, allocations: 131.8 kB / 367.7 MB, free: 4.336 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001477/0.1229, allocations: 1.089 MB / 368.8 MB, free: 3.242 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006726/0.1236, allocations: 360.6 kB / 369.1 MB, free: 2.875 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007347/0.1243, allocations: 366.4 kB / 369.5 MB, free: 2.516 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000465/0.1248, allocations: 418 kB / 369.9 MB, free: 2.105 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 8.805e-05/0.1249, allocations: 56 kB / 369.9 MB, free: 2.051 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002452/0.1252, allocations: 87.97 kB / 370 MB, free: 1.965 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001344/0.1253, allocations: 159.2 kB / 370.2 MB, free: 1.809 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001982/0.1255, allocations: 217.2 kB / 370.4 MB, free: 1.59 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009913/0.1265, allocations: 1.129 MB / 371.5 MB, free: 468 kB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.362e-05/0.1265, allocations: 0 / 371.5 MB, free: 468 kB / 302.1 MB Notification: Performance of FrontEnd: time 2.154e-06/0.1266, allocations: 0 / 371.5 MB, free: 468 kB / 302.1 MB Notification: Performance of Transformations before backend: time 1.476e-05/0.1266, allocations: 0 / 371.5 MB, free: 468 kB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 200 * Number of variables: 200 Notification: Performance of Generate backend data structure: time 0.2083/0.3348, allocations: 1.092 MB / 372.6 MB, free: 19.28 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.352e-05/0.3349, allocations: 9.406 kB / 372.6 MB, free: 19.28 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001994/0.3351, allocations: 126.3 kB / 372.8 MB, free: 19.24 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00048/0.3356, allocations: 146 kB / 372.9 MB, free: 19.19 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009846/0.3366, allocations: 0.6177 MB / 373.5 MB, free: 18.9 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.538e-05/0.3367, allocations: 64.42 kB / 373.6 MB, free: 18.89 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001129/0.3368, allocations: 80.2 kB / 373.7 MB, free: 18.89 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001484/0.3383, allocations: 0.7813 MB / 374.4 MB, free: 18.76 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.11e-05/0.3383, allocations: 1.766 kB / 374.4 MB, free: 18.76 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.398e-05/0.3384, allocations: 34.72 kB / 374.5 MB, free: 18.76 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.604e-05/0.3384, allocations: 19.41 kB / 374.5 MB, free: 18.76 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00114/0.3396, allocations: 0.5298 MB / 375 MB, free: 18.69 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003934/0.3435, allocations: 3.407 MB / 378.4 MB, free: 16.32 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004575/0.344, allocations: 233.9 kB / 378.7 MB, free: 16.22 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002438/0.3442, allocations: 125.2 kB / 378.8 MB, free: 16.18 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.136e-05/0.3443, allocations: 4.141 kB / 378.8 MB, free: 16.18 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.111e-05/0.3443, allocations: 36.91 kB / 378.8 MB, free: 16.13 MB / 302.1 MB Notification: Performance of pre-optimization done (n=25): time 2.064e-06/0.3443, allocations: 0 / 378.8 MB, free: 16.13 MB / 302.1 MB Notification: Performance of matching and sorting (n=28): time 0.001878/0.3462, allocations: 1.081 MB / 379.9 MB, free: 15.42 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.738e-05/0.3462, allocations: 80.56 kB / 380 MB, free: 15.33 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009802/0.3472, allocations: 0.7383 MB / 380.7 MB, free: 14.99 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.799e-05/0.3473, allocations: 31.14 kB / 380.7 MB, free: 14.96 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003157/0.3476, allocations: 499.7 kB / 381.2 MB, free: 14.57 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.268e-05/0.3477, allocations: 109.9 kB / 381.3 MB, free: 14.48 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.867e-05/0.3477, allocations: 10.31 kB / 381.4 MB, free: 14.48 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001267/0.3478, allocations: 376.9 kB / 381.7 MB, free: 14.14 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002688/0.3481, allocations: 135.4 kB / 381.9 MB, free: 14.09 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003865/0.3485, allocations: 422.7 kB / 382.3 MB, free: 13.66 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000364/0.3488, allocations: 207.1 kB / 382.5 MB, free: 13.57 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.512e-06/0.3489, allocations: 2.188 kB / 382.5 MB, free: 13.57 MB / 302.1 MB Notification: Performance of matching and sorting (n=74) (initialization): time 0.001116/0.35, allocations: 0.6196 MB / 383.1 MB, free: 13.3 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.644e-05/0.35, allocations: 8.75 kB / 383.1 MB, free: 13.3 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.818e-05/0.35, allocations: 10.12 kB / 383.1 MB, free: 13.3 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000172/0.3502, allocations: 39.86 kB / 383.1 MB, free: 13.28 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004216/0.3507, allocations: 141.8 kB / 383.3 MB, free: 13.27 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007855/0.3515, allocations: 1.286 MB / 384.6 MB, free: 11.95 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004082/0.3519, allocations: 36.98 kB / 384.6 MB, free: 11.94 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.811e-05/0.3519, allocations: 31.41 kB / 384.6 MB, free: 11.93 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 44 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (73): * Single equations (assignments): 72 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003171/0.3523, allocations: 241.1 kB / 384.9 MB, free: 11.73 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000103/0.3524, allocations: 69.34 kB / 384.9 MB, free: 11.7 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006826/0.3531, allocations: 337.8 kB / 385.3 MB, free: 11.55 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.811e-06/0.3531, allocations: 3.469 kB / 385.3 MB, free: 11.55 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.326e-06/0.3531, allocations: 3.562 kB / 385.3 MB, free: 11.55 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.473e-06/0.3531, allocations: 1.406 kB / 385.3 MB, free: 11.55 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001833/0.3549, allocations: 1.126 MB / 386.4 MB, free: 10.87 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.637e-06/0.3549, allocations: 1.094 kB / 386.4 MB, free: 10.87 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002676/0.3552, allocations: 62.11 kB / 386.5 MB, free: 10.86 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.757e-05/0.3553, allocations: 23.11 kB / 386.5 MB, free: 10.85 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.049e-05/0.3553, allocations: 7.406 kB / 386.5 MB, free: 10.85 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006642/0.356, allocations: 1.272 MB / 387.8 MB, free: 9.543 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.701e-06/0.356, allocations: 3.094 kB / 387.8 MB, free: 9.543 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008825/0.3569, allocations: 0.5753 MB / 388.3 MB, free: 9.188 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001916/0.3571, allocations: 174.4 kB / 388.5 MB, free: 9.031 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.215e-05/0.3572, allocations: 8.938 kB / 388.5 MB, free: 9.027 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002992/0.3575, allocations: 22.98 kB / 388.5 MB, free: 9.023 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.194e-05/0.3576, allocations: 22.05 kB / 388.6 MB, free: 9.02 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.281e-05/0.3576, allocations: 16.06 kB / 388.6 MB, free: 9.012 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0007757/0.3584, allocations: 0.499 MB / 389.1 MB, free: 8.781 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3584, allocations: 3.938 kB / 389.1 MB, free: 8.777 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000754/0.3592, allocations: 157.6 kB / 389.2 MB, free: 8.766 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 3 (dcpm.inertiaRotor.w,dcpm.la.i,loadInertia.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (27): * Single equations (assignments): 26 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001254/0.3604, allocations: 1.13 MB / 390.4 MB, free: 7.879 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0008977/0.3614, allocations: 473.1 kB / 390.8 MB, free: 7.656 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.708e-06/0.3614, allocations: 1.031 kB / 390.8 MB, free: 7.656 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003634/0.3617, allocations: 244.4 kB / 391.1 MB, free: 7.504 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009331/0.3627, allocations: 177.7 kB / 391.2 MB, free: 7.441 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007191/0.3699, allocations: 4.389 MB / 395.6 MB, free: 4.824 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005054/0.3704, allocations: 0.9398 MB / 396.6 MB, free: 4.062 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0004236/0.3708, allocations: 86.98 kB / 396.7 MB, free: 4.02 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003088/0.3712, allocations: 301.9 kB / 397 MB, free: 3.762 MB / 302.1 MB Notification: Performance of SimCode: time 4.11e-07/0.3712, allocations: 0 / 397 MB, free: 3.762 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03082/0.402, allocations: 14.15 MB / 411.1 MB, free: 8.574 MB / 318.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001828/0.4022, allocations: 222.7 kB / 411.3 MB, free: 8.328 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.112/2.514, allocations: 0 / 411.3 MB, free: 8.328 MB / 318.1 MB (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_Start_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_Start.fmu > Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start_res.mat does not exist to compare? outputFormat=mat