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.002207/0.002206, allocations: 179.8 kB / 14.15 MB, free: 1.176 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.564/1.564, allocations: 221.3 MB / 236 MB, free: 2.949 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008677/0.0008673, allocations: 94.02 kB / 287 MB, free: 260 kB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2177/0.2177, allocations: 44.15 MB / 382 MB, free: 14.69 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 3.674e-05/3.689e-05, allocations: 4.219 kB / 451.9 MB, free: 9.355 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1443/0.1444, allocations: 61.92 MB / 0.5018 GB, free: 11.38 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4554/0.5998, allocations: 95.63 MB / 0.5952 GB, free: 9.637 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002408/0.6001, allocations: 67.97 kB / 0.5952 GB, free: 9.57 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04169/0.6418, allocations: 14.41 MB / 0.6093 GB, free: 11.14 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.395e-06/0.6418, allocations: 3.938 kB / 0.6093 GB, free: 11.13 MB / 426.7 MB Notification: Performance of Transformations before backend: time 6.421e-05/0.6419, allocations: 20 kB / 0.6093 GB, free: 11.11 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.001646/0.6436, allocations: 0.8801 MB / 0.6102 GB, free: 10.18 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.792e-05/0.6436, allocations: 12.03 kB / 0.6102 GB, free: 10.17 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001178/0.6438, allocations: 90.52 kB / 0.6103 GB, free: 10.07 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001761/0.6439, allocations: 87.31 kB / 0.6104 GB, free: 9.988 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009535/0.6449, allocations: 0.5076 MB / 0.6109 GB, free: 9.438 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.9e-05/0.645, allocations: 45.31 kB / 0.6109 GB, free: 9.395 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001136/0.6451, allocations: 71.89 kB / 0.611 GB, free: 9.324 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009585/0.6461, allocations: 0.5611 MB / 0.6115 GB, free: 8.703 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.768e-05/0.6461, allocations: 3.938 kB / 0.6115 GB, free: 8.699 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.55e-05/0.6462, allocations: 31.94 kB / 0.6116 GB, free: 8.668 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.432e-05/0.6462, allocations: 12 kB / 0.6116 GB, free: 8.656 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005937/0.6468, allocations: 330.9 kB / 0.6119 GB, free: 8.332 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004352/0.6511, allocations: 3.037 MB / 0.6149 GB, free: 5.152 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007159/0.6519, allocations: 364 kB / 0.6152 GB, free: 4.777 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002486/0.6522, allocations: 137.7 kB / 0.6153 GB, free: 4.637 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.382e-05/0.6522, allocations: 8 kB / 0.6154 GB, free: 4.629 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.244e-05/0.6523, allocations: 30.56 kB / 0.6154 GB, free: 4.59 MB / 426.7 MB Notification: Performance of pre-optimization done (n=39): time 3.276e-06/0.6523, allocations: 4.438 kB / 0.6154 GB, free: 4.586 MB / 426.7 MB Notification: Performance of matching and sorting (n=39): time 0.0007864/0.6531, allocations: 369.9 kB / 0.6157 GB, free: 4.215 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.489e-05/0.6532, allocations: 106.8 kB / 0.6158 GB, free: 4.086 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000601/0.6538, allocations: 483.5 kB / 0.6163 GB, free: 3.605 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 5.196e-05/0.6539, allocations: 33.64 kB / 0.6163 GB, free: 3.566 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002837/0.6542, allocations: 376 kB / 0.6167 GB, free: 3.191 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001454/0.6543, allocations: 145.9 kB / 0.6168 GB, free: 3.047 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.739e-05/0.6544, allocations: 12 kB / 0.6168 GB, free: 3.035 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0002112/0.6546, allocations: 382.8 kB / 0.6172 GB, free: 2.652 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002878/0.6549, allocations: 145.6 kB / 0.6173 GB, free: 2.512 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004092/0.6553, allocations: 350.4 kB / 0.6177 GB, free: 2.074 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003384/0.6556, allocations: 199.6 kB / 0.6179 GB, free: 1.879 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.819e-06/0.6556, allocations: 0 / 0.6179 GB, free: 1.879 MB / 426.7 MB Notification: Performance of matching and sorting (n=78) (initialization): time 0.001037/0.6567, allocations: 0.5824 MB / 0.6184 GB, free: 1.289 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001156/0.6579, allocations: 2.614 MB / 0.621 GB, free: 14.47 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.179e-05/0.6579, allocations: 4 kB / 0.621 GB, free: 14.47 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.803e-05/0.6579, allocations: 12 kB / 0.621 GB, free: 14.46 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006276/0.6585, allocations: 151.8 kB / 0.6212 GB, free: 14.31 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.551e-05/0.6586, allocations: 15.92 kB / 0.6212 GB, free: 14.29 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004926/0.6591, allocations: 67.52 kB / 0.6212 GB, free: 14.23 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.033e-05/0.6591, allocations: 28 kB / 0.6213 GB, free: 14.2 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.377e-06/0.6592, allocations: 8 kB / 0.6213 GB, free: 14.19 MB / 442.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.000777/0.6599, allocations: 499.5 kB / 0.6217 GB, free: 13.7 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.496e-06/0.66, allocations: 11.92 kB / 0.6218 GB, free: 13.69 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.321e-05/0.66, allocations: 12 kB / 0.6218 GB, free: 13.68 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004978/0.6605, allocations: 139.8 kB / 0.6219 GB, free: 13.54 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.519e-05/0.6605, allocations: 11.94 kB / 0.6219 GB, free: 13.53 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004059/0.6609, allocations: 59.92 kB / 0.622 GB, free: 13.47 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.084e-05/0.661, allocations: 32 kB / 0.622 GB, free: 13.44 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 () * 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.0001666/0.6611, allocations: 150.1 kB / 0.6221 GB, free: 13.29 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001226/0.6613, allocations: 67.16 kB / 0.6222 GB, free: 13.22 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001873/0.6615, allocations: 74.22 kB / 0.6223 GB, free: 13.14 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.021e-06/0.6615, allocations: 4 kB / 0.6223 GB, free: 13.14 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.255e-06/0.6615, allocations: 4 kB / 0.6223 GB, free: 13.14 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.002e-06/0.6615, allocations: 4 kB / 0.6223 GB, free: 13.13 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008353/0.6623, allocations: 0.5829 MB / 0.6229 GB, free: 12.5 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.124e-06/0.6624, allocations: 0 / 0.6229 GB, free: 12.5 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000506/0.6629, allocations: 87.89 kB / 0.6229 GB, free: 12.41 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.301e-06/0.6629, allocations: 0 / 0.6229 GB, free: 12.41 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.854e-05/0.6629, allocations: 19.92 kB / 0.623 GB, free: 12.39 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.399e-06/0.6629, allocations: 4 kB / 0.623 GB, free: 12.39 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.964e-06/0.663, allocations: 0 / 0.623 GB, free: 12.39 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009865/0.664, allocations: 0.7008 MB / 0.6236 GB, free: 11.66 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002089/0.6642, allocations: 168.4 kB / 0.6238 GB, free: 11.48 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.109e-05/0.6642, allocations: 12 kB / 0.6238 GB, free: 11.46 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004342/0.6647, allocations: 39.97 kB / 0.6239 GB, free: 11.43 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001013/0.6648, allocations: 31.89 kB / 0.6239 GB, free: 11.39 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.623e-05/0.6648, allocations: 12 kB / 0.6239 GB, free: 11.38 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.0004847/0.6653, allocations: 367.2 kB / 0.6242 GB, free: 11.03 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.81e-07/0.6653, allocations: 0 / 0.6242 GB, free: 11.03 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.000862/0.6662, allocations: 251.1 kB / 0.6245 GB, free: 10.78 MB / 442.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 () * 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.001256/0.6675, allocations: 1.33 MB / 0.6258 GB, free: 9.426 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.001194/0.6687, allocations: 0.6546 MB / 0.6264 GB, free: 8.773 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 2.354e-06/0.6687, allocations: 0 / 0.6264 GB, free: 8.773 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002478/0.6689, allocations: 160.6 kB / 0.6266 GB, free: 8.617 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008181/0.6698, allocations: 165 kB / 0.6267 GB, free: 8.461 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002125/0.6719, allocations: 1.205 MB / 0.6279 GB, free: 7.215 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005066/0.6724, allocations: 0.9242 MB / 0.6288 GB, free: 6.262 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.0004966/0.6729, allocations: 115.2 kB / 0.6289 GB, free: 6.145 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003145/0.6733, allocations: 239.3 kB / 0.6292 GB, free: 5.91 MB / 442.7 MB Notification: Performance of SimCode: time 7.41e-07/0.6733, allocations: 3.938 kB / 0.6292 GB, free: 5.906 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0384/0.7117, allocations: 12.69 MB / 0.6415 GB, free: 9.359 MB / 458.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002866/0.712, allocations: 142.5 kB / 0.6417 GB, free: 9.133 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.526/3.238, allocations: 3.938 kB / 0.6417 GB, free: 9.129 MB / 458.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