Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Blocks.UnitDeduction.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) 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(ModelicaTest.Blocks.UnitDeduction,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Blocks_UnitDeduction",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.UnitDeduction,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Blocks_UnitDeduction",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001049/0.001049, allocations: 101.7 kB / 17 MB, free: 6.418 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001396/0.001396, allocations: 192.6 kB / 17.9 MB, free: 5.938 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.567/1.567, allocations: 227.3 MB / 246 MB, free: 10.08 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2285/0.2285, allocations: 45.93 MB / 344.1 MB, free: 11.96 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003015/0.0003016, allocations: 7.984 kB / 418.2 MB, free: 20.72 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.143/0.1433, allocations: 63.48 MB / 481.6 MB, free: 5.238 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.UnitDeduction): time 0.005251/0.1486, allocations: 3.449 MB / 485.1 MB, free: 1.762 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003243/0.1519, allocations: 1.196 MB / 486.3 MB, free: 0.5625 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006501/0.1526, allocations: 23.88 kB / 486.3 MB, free: 0.5391 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003164/0.1529, allocations: 79.22 kB / 486.4 MB, free: 472 kB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005288/0.1534, allocations: 131 kB / 486.5 MB, free: 340 kB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008924/0.1543, allocations: 295 kB / 486.8 MB, free: 48 kB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009169/0.1553, allocations: 0.741 MB / 487.5 MB, free: 15.3 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000447/0.1557, allocations: 216.8 kB / 487.8 MB, free: 15.08 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000523/0.1562, allocations: 250.7 kB / 488 MB, free: 14.84 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003225/0.1566, allocations: 254.5 kB / 488.2 MB, free: 14.59 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 6.226e-05/0.1567, allocations: 24 kB / 488.3 MB, free: 14.56 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.828e-05/0.1568, allocations: 28 kB / 488.3 MB, free: 14.54 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 9.889e-05/0.1569, allocations: 103.4 kB / 488.4 MB, free: 14.43 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001167/0.157, allocations: 141.3 kB / 488.5 MB, free: 14.29 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006622/0.1577, allocations: 0.5416 MB / 489.1 MB, free: 13.75 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.332e-06/0.1577, allocations: 4 kB / 489.1 MB, free: 13.74 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.524e-06/0.1577, allocations: 0 / 489.1 MB, free: 13.74 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.465e-05/0.1577, allocations: 0 / 489.1 MB, free: 13.74 MB / 366.1 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.001685/0.1594, allocations: 0.9542 MB / 490 MB, free: 12.74 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.507e-05/0.1594, allocations: 8.031 kB / 490 MB, free: 12.73 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001657/0.1596, allocations: 98.5 kB / 490.1 MB, free: 12.62 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002508/0.1599, allocations: 103 kB / 490.2 MB, free: 12.52 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007079/0.1606, allocations: 490.4 kB / 490.7 MB, free: 12 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.238e-05/0.1607, allocations: 49.3 kB / 490.8 MB, free: 11.95 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.663e-05/0.1607, allocations: 60 kB / 490.8 MB, free: 11.89 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001054/0.1618, allocations: 0.6162 MB / 491.4 MB, free: 11.21 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.343e-05/0.1618, allocations: 8 kB / 491.4 MB, free: 11.21 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.767e-05/0.1619, allocations: 31.92 kB / 491.5 MB, free: 11.18 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.499e-05/0.1619, allocations: 12 kB / 491.5 MB, free: 11.16 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000922/0.1629, allocations: 398.2 kB / 491.9 MB, free: 10.77 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004522/0.1674, allocations: 3.036 MB / 494.9 MB, free: 7.598 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009167/0.1683, allocations: 465.7 kB / 495.4 MB, free: 7.121 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003369/0.1687, allocations: 182.2 kB / 495.5 MB, free: 6.938 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.708e-05/0.1687, allocations: 4 kB / 495.6 MB, free: 6.934 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.688e-05/0.1687, allocations: 34.56 kB / 495.6 MB, free: 6.891 MB / 366.1 MB Notification: Performance of pre-optimization done (n=39): time 2.334e-06/0.1688, allocations: 4 kB / 495.6 MB, free: 6.887 MB / 366.1 MB Notification: Performance of matching and sorting (n=39): time 0.001197/0.17, allocations: 0.5753 MB / 496.2 MB, free: 6.305 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.396e-05/0.17, allocations: 136.5 kB / 496.3 MB, free: 6.141 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006237/0.1707, allocations: 0.547 MB / 496.8 MB, free: 5.582 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.703e-05/0.1707, allocations: 41.64 kB / 496.9 MB, free: 5.535 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003591/0.1711, allocations: 368 kB / 497.2 MB, free: 5.168 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001363/0.1712, allocations: 153.8 kB / 497.4 MB, free: 5.016 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.069e-05/0.1713, allocations: 16 kB / 497.4 MB, free: 5 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001825/0.1715, allocations: 378.7 kB / 497.8 MB, free: 4.621 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003838/0.1718, allocations: 185.2 kB / 498 MB, free: 4.441 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005333/0.1724, allocations: 405.9 kB / 498.4 MB, free: 3.945 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004533/0.1728, allocations: 236.8 kB / 498.6 MB, free: 3.715 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.46e-06/0.1729, allocations: 4 kB / 498.6 MB, free: 3.711 MB / 366.1 MB Notification: Performance of matching and sorting (n=78) (initialization): time 0.001217/0.1741, allocations: 0.664 MB / 499.3 MB, free: 3.039 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002548/0.1744, allocations: 290.5 kB / 499.5 MB, free: 2.66 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.226e-05/0.1744, allocations: 8 kB / 499.5 MB, free: 2.652 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.264e-05/0.1744, allocations: 12 kB / 499.6 MB, free: 2.641 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005036/0.1749, allocations: 143.8 kB / 499.7 MB, free: 2.5 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.699e-05/0.1749, allocations: 11.94 kB / 499.7 MB, free: 2.488 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003667/0.1753, allocations: 87.27 kB / 499.8 MB, free: 2.402 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.983e-05/0.1754, allocations: 28 kB / 499.8 MB, free: 2.375 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.063e-05/0.1754, allocations: 6.344 kB / 499.8 MB, free: 2.371 MB / 366.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0009267/0.1763, allocations: 0.546 MB / 0.4887 GB, free: 1.824 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.035e-06/0.1763, allocations: 8 kB / 0.4887 GB, free: 1.816 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.466e-05/0.1763, allocations: 15.98 kB / 0.4887 GB, free: 1.801 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004458/0.1768, allocations: 140.3 kB / 0.4888 GB, free: 1.664 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.366e-05/0.1768, allocations: 16 kB / 0.4888 GB, free: 1.648 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002985/0.1771, allocations: 55.58 kB / 0.4889 GB, free: 1.594 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.642e-05/0.1772, allocations: 28 kB / 0.4889 GB, free: 1.566 MB / 366.1 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.0003665/0.1775, allocations: 280.8 kB / 0.4892 GB, free: 1.281 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000105/0.1776, allocations: 63.25 kB / 0.4892 GB, free: 1.219 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001413/0.1778, allocations: 78.11 kB / 0.4893 GB, free: 1.141 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.693e-05/0.1779, allocations: 11.97 kB / 0.4893 GB, free: 1.129 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.486e-06/0.1779, allocations: 4 kB / 0.4893 GB, free: 1.125 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.46e-06/0.1779, allocations: 0 / 0.4893 GB, free: 1.125 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008712/0.1788, allocations: 0.5712 MB / 0.4899 GB, free: 0.5039 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.234e-06/0.1788, allocations: 0 / 0.4899 GB, free: 0.5039 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004551/0.1793, allocations: 91.88 kB / 0.49 GB, free: 424 kB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.053e-06/0.1793, allocations: 4 kB / 0.49 GB, free: 420 kB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.322e-05/0.1793, allocations: 23.94 kB / 0.49 GB, free: 396 kB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.525e-06/0.1793, allocations: 0 / 0.49 GB, free: 396 kB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.382e-06/0.1793, allocations: 0 / 0.49 GB, free: 396 kB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00122/0.1806, allocations: 0.8076 MB / 0.4908 GB, free: 15.57 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002231/0.1808, allocations: 164.4 kB / 0.4909 GB, free: 15.39 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.863e-05/0.1809, allocations: 12 kB / 0.4909 GB, free: 15.38 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003115/0.1812, allocations: 35.97 kB / 0.491 GB, free: 15.34 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001016/0.1813, allocations: 31.95 kB / 0.491 GB, free: 15.31 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.336e-05/0.1813, allocations: 12 kB / 0.491 GB, free: 15.3 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.000426/0.1818, allocations: 371.1 kB / 0.4914 GB, free: 14.94 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1818, allocations: 0 / 0.4914 GB, free: 14.94 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0008126/0.1826, allocations: 247.1 kB / 0.4916 GB, free: 14.7 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 16 (Wsec.y,Vsec.y,Asec.y,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) * 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.001687/0.1843, allocations: 1.365 MB / 0.4929 GB, free: 13.3 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001386/0.1857, allocations: 0.745 MB / 0.4937 GB, free: 12.56 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 6.542e-06/0.1857, allocations: 4.375 kB / 0.4937 GB, free: 12.56 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003713/0.1861, allocations: 191.8 kB / 0.4939 GB, free: 12.37 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009708/0.1871, allocations: 164.9 kB / 0.494 GB, free: 12.21 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00633/0.1934, allocations: 4.145 MB / 0.4981 GB, free: 7.922 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006211/0.194, allocations: 0.9107 MB / 0.499 GB, free: 6.984 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0003607/0.1944, allocations: 80.84 kB / 0.499 GB, free: 6.906 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003332/0.1947, allocations: 239.4 kB / 0.4993 GB, free: 6.672 MB / 382.1 MB Notification: Performance of SimCode: time 9.72e-07/0.1948, allocations: 3.938 kB / 0.4993 GB, free: 6.668 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2543/0.4491, allocations: 11.83 MB / 0.5108 GB, free: 39.21 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002268/0.4494, allocations: 175.5 kB / 0.511 GB, free: 38.97 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.023/2.473, allocations: 0 / 0.511 GB, free: 38.97 MB / 382.1 MB (rm -f ModelicaTest_trunk_ModelicaTest.Blocks.UnitDeduction.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Blocks.UnitDeduction.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Blocks.UnitDeduction.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Blocks.UnitDeduction.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Blocks.UnitDeduction_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Blocks_UnitDeduction_fmu --startTime=0 --stopTime=1.01 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Blocks_UnitDeduction.fmu > ModelicaTest_trunk_ModelicaTest.Blocks.UnitDeduction.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_trunk_ModelicaTest.Blocks.UnitDeduction_res.mat does not exist to compare? outputFormat=mat