Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Blocks.UnitDeduction.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Blocks.UnitDeduction,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Blocks_UnitDeduction",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.UnitDeduction,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Blocks_UnitDeduction",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001116/0.001116, allocations: 176.7 kB / 17.06 MB, free: 5.098 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.279/1.279, allocations: 223.2 MB / 241 MB, free: 11.89 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008633/0.0008632, allocations: 100.2 kB / 292.1 MB, free: 10.93 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.3158/0.3158, allocations: 44.22 MB / 387.5 MB, free: 38.77 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003091/0.0003092, allocations: 8 kB / 460 MB, free: 1.453 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.299/0.2993, allocations: 61.91 MB / 0.5096 GB, free: 38.04 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1183/0.4176, allocations: 95.7 MB / 0.6031 GB, free: 15.42 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002629/0.418, allocations: 79.92 kB / 0.6032 GB, free: 15.35 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03989/0.4579, allocations: 14.44 MB / 0.6173 GB, free: 0.875 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.804e-06/0.4579, allocations: 0 / 0.6173 GB, free: 0.875 MB / 426.7 MB Notification: Performance of Transformations before backend: time 9.361e-05/0.458, allocations: 20 kB / 0.6173 GB, free: 0.8555 MB / 426.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 132 * Number of variables: 132 Notification: Performance of Generate backend data structure: time 0.00223/0.4603, allocations: 0.9786 MB / 0.6182 GB, free: 15.83 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.586e-05/0.4603, allocations: 12.03 kB / 0.6183 GB, free: 15.82 MB / 442.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001907/0.4605, allocations: 94.52 kB / 0.6183 GB, free: 15.71 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002464/0.4608, allocations: 87.31 kB / 0.6184 GB, free: 15.63 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001174/0.4619, allocations: 0.5075 MB / 0.6189 GB, free: 15.07 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.845e-05/0.462, allocations: 49.31 kB / 0.619 GB, free: 15.03 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001434/0.4622, allocations: 59.98 kB / 0.619 GB, free: 14.97 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001196/0.4634, allocations: 0.6193 MB / 0.6196 GB, free: 14.29 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.864e-05/0.4634, allocations: 7.891 kB / 0.6196 GB, free: 14.29 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.708e-05/0.4635, allocations: 24 kB / 0.6197 GB, free: 14.26 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.636e-05/0.4635, allocations: 12 kB / 0.6197 GB, free: 14.25 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008547/0.4644, allocations: 403.8 kB / 0.6201 GB, free: 13.85 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004195/0.4686, allocations: 3.023 MB / 0.623 GB, free: 10.69 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001004/0.4696, allocations: 478.3 kB / 0.6235 GB, free: 10.2 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.896e-05/0.4697, allocations: 11.94 kB / 0.6235 GB, free: 10.19 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.396e-05/0.4697, allocations: 34.56 kB / 0.6235 GB, free: 10.15 MB / 442.7 MB Notification: Performance of pre-optimization done (n=39): time 2.454e-06/0.4697, allocations: 0 / 0.6235 GB, free: 10.15 MB / 442.7 MB Notification: Performance of matching and sorting (n=39): time 0.001296/0.471, allocations: 0.5759 MB / 0.6241 GB, free: 9.562 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.497e-05/0.4711, allocations: 106.8 kB / 0.6242 GB, free: 9.434 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006167/0.4717, allocations: 495.2 kB / 0.6246 GB, free: 8.941 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 4.871e-05/0.4718, allocations: 37.7 kB / 0.6247 GB, free: 8.898 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002673/0.4721, allocations: 364.3 kB / 0.625 GB, free: 8.535 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001433/0.4722, allocations: 161.7 kB / 0.6252 GB, free: 8.375 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.648e-05/0.4723, allocations: 8 kB / 0.6252 GB, free: 8.367 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001653/0.4724, allocations: 374.8 kB / 0.6255 GB, free: 7.992 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004087/0.4728, allocations: 193.2 kB / 0.6257 GB, free: 7.801 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005374/0.4734, allocations: 397.8 kB / 0.6261 GB, free: 7.32 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004813/0.4739, allocations: 233 kB / 0.6263 GB, free: 7.094 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.161e-06/0.4739, allocations: 4 kB / 0.6263 GB, free: 7.09 MB / 442.7 MB Notification: Performance of matching and sorting (n=78) (initialization): time 0.001231/0.4751, allocations: 0.6684 MB / 0.627 GB, free: 6.414 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.00109/0.4762, allocations: 2.619 MB / 0.6295 GB, free: 3.59 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.418e-05/0.4763, allocations: 12 kB / 0.6296 GB, free: 3.578 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.378e-05/0.4763, allocations: 11.94 kB / 0.6296 GB, free: 3.566 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005392/0.4768, allocations: 139.8 kB / 0.6297 GB, free: 3.43 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.931e-05/0.4769, allocations: 15.94 kB / 0.6297 GB, free: 3.414 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004636/0.4773, allocations: 79.41 kB / 0.6298 GB, free: 3.336 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.358e-05/0.4774, allocations: 28 kB / 0.6298 GB, free: 3.309 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.076e-05/0.4774, allocations: 5.094 kB / 0.6298 GB, free: 3.305 MB / 442.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.000976/0.4784, allocations: 0.554 MB / 0.6304 GB, free: 2.75 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.041e-05/0.4784, allocations: 8 kB / 0.6304 GB, free: 2.742 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.108e-05/0.4784, allocations: 8 kB / 0.6304 GB, free: 2.734 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004905/0.4789, allocations: 143.8 kB / 0.6305 GB, free: 2.594 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.286e-05/0.4789, allocations: 11.98 kB / 0.6305 GB, free: 2.582 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004213/0.4794, allocations: 67.92 kB / 0.6306 GB, free: 2.516 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.297e-05/0.4794, allocations: 24 kB / 0.6306 GB, free: 2.492 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 30 * Number of states: 0 () * Number of discrete variables: 7 (Asec.local_reset,Vsec.local_reset,Wsec.local_reset,PID1.I.local_reset,PID.I.local_reset,limIntegrator.local_reset,integrator.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (78): * Single equations (assignments): 78 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003956/0.4798, allocations: 284.8 kB / 0.6309 GB, free: 2.203 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001224/0.48, allocations: 59.25 kB / 0.6309 GB, free: 2.145 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001527/0.4801, allocations: 74.17 kB / 0.631 GB, free: 2.07 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.132e-06/0.4801, allocations: 4 kB / 0.631 GB, free: 2.066 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.737e-06/0.4801, allocations: 0 / 0.631 GB, free: 2.066 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.822e-06/0.4802, allocations: 11.92 kB / 0.631 GB, free: 2.055 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008307/0.481, allocations: 0.5828 MB / 0.6316 GB, free: 1.422 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.419e-06/0.481, allocations: 0 / 0.6316 GB, free: 1.422 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004884/0.4815, allocations: 91.89 kB / 0.6317 GB, free: 1.332 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.729e-06/0.4815, allocations: 0 / 0.6317 GB, free: 1.332 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.49e-05/0.4816, allocations: 8 kB / 0.6317 GB, free: 1.324 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.661e-06/0.4816, allocations: 4 kB / 0.6317 GB, free: 1.32 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.406e-06/0.4816, allocations: 8 kB / 0.6317 GB, free: 1.312 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001289/0.4829, allocations: 0.8218 MB / 0.6325 GB, free: 476 kB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002175/0.4831, allocations: 176.3 kB / 0.6327 GB, free: 280 kB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.553e-05/0.4832, allocations: 8 kB / 0.6327 GB, free: 272 kB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003804/0.4836, allocations: 35.98 kB / 0.6327 GB, free: 236 kB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.996e-05/0.4837, allocations: 31.94 kB / 0.6328 GB, free: 204 kB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.614e-05/0.4837, allocations: 12 kB / 0.6328 GB, free: 192 kB / 442.7 MB Notification: Performance of sorting global known variables: time 0.000409/0.4841, allocations: 371.1 kB / 0.6331 GB, free: 15.83 MB / 458.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4841, allocations: 0 / 0.6331 GB, free: 15.83 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.0008104/0.4849, allocations: 251.2 kB / 0.6334 GB, free: 15.58 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 16 (integrator.y,inertia.phi,inertia.w,limIntegrator.y,derivative.x,firstOrder.y,secondOrder.y,secondOrder.yd,PI.x,PID.I.y,PID.D.x,PID1.I.y,PID1.D.x,Wsec.y,Vsec.y,Asec.y) * 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 (39): * Single equations (assignments): 39 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001587/0.4865, allocations: 1.453 MB / 0.6348 GB, free: 14.1 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.001474/0.488, allocations: 0.7415 MB / 0.6355 GB, free: 13.36 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 3.236e-06/0.488, allocations: 4.062 kB / 0.6355 GB, free: 13.35 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003793/0.4884, allocations: 203.8 kB / 0.6357 GB, free: 13.15 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008199/0.4893, allocations: 168.3 kB / 0.6359 GB, free: 13 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00837/0.4976, allocations: 8.483 MB / 0.6441 GB, free: 4.32 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006664/0.4984, allocations: 0.9308 MB / 0.6451 GB, free: 3.363 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.0004234/0.4988, allocations: 72.8 kB / 0.6451 GB, free: 3.293 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003534/0.4992, allocations: 247.3 kB / 0.6454 GB, free: 3.051 MB / 458.7 MB Notification: Performance of SimCode: time 9.02e-07/0.4992, allocations: 0 / 0.6454 GB, free: 3.051 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02889/0.5281, allocations: 11.81 MB / 0.6569 GB, free: 7.418 MB / 474.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000199/0.5283, allocations: 167.2 kB / 0.6571 GB, free: 7.176 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.23/2.758, allocations: 0 / 0.6571 GB, free: 7.176 MB / 474.7 MB (rm -f ModelicaTest_4.0.0_ModelicaTest.Blocks.UnitDeduction.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Blocks.UnitDeduction.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Blocks.UnitDeduction.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Blocks.UnitDeduction.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Blocks.UnitDeduction_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Blocks_UnitDeduction_fmu --startTime=0 --stopTime=1.01 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Blocks_UnitDeduction.fmu > ModelicaTest_4.0.0_ModelicaTest.Blocks.UnitDeduction.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_4.0.0_ModelicaTest.Blocks.UnitDeduction_res.mat does not exist to compare? outputFormat=mat