Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.Logical.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Blocks.Logical,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Blocks_Logical",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.Logical,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Blocks_Logical",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001747/0.001747, allocations: 188.5 kB / 16.4 MB, free: 5.625 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.247/2.247, allocations: 205.4 MB / 222.5 MB, free: 13.77 MB / 186.8 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001238/0.001238, allocations: 82.89 kB / 270.9 MB, free: 13.3 MB / 234.8 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.3153/0.3153, allocations: 43.55 MB / 362.7 MB, free: 11.31 MB / 266.8 MB Notification: Performance of FrontEnd - loaded program: time 0.0007288/0.000729, allocations: 8 kB / 431.5 MB, free: 20.19 MB / 282.8 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1334/0.1342, allocations: 58.85 MB / 490.3 MB, free: 9.262 MB / 330.8 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Logical): time 0.004546/0.1388, allocations: 2.272 MB / 492.6 MB, free: 6.973 MB / 330.8 MB Notification: Performance of NFInst.instExpressions: time 0.00332/0.1422, allocations: 1.209 MB / 493.8 MB, free: 5.754 MB / 330.8 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003481/0.1426, allocations: 4 kB / 493.8 MB, free: 5.75 MB / 330.8 MB Notification: Performance of NFTyping.typeComponents: time 0.001176/0.1438, allocations: 291.1 kB / 494.1 MB, free: 5.465 MB / 330.8 MB Notification: Performance of NFTyping.typeBindings: time 0.0007808/0.1446, allocations: 191.5 kB / 494.3 MB, free: 5.277 MB / 330.8 MB Notification: Performance of NFTyping.typeClassSections: time 0.001382/0.146, allocations: 315.3 kB / 494.6 MB, free: 4.969 MB / 330.8 MB Notification: Performance of NFFlatten.flatten: time 0.0008286/0.1468, allocations: 368.3 kB / 494.9 MB, free: 4.609 MB / 330.8 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004386/0.1473, allocations: 162.9 kB / 495.1 MB, free: 4.449 MB / 330.8 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004895/0.1478, allocations: 211.1 kB / 495.3 MB, free: 4.242 MB / 330.8 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004188/0.1482, allocations: 234.9 kB / 495.5 MB, free: 4.012 MB / 330.8 MB Notification: Performance of NFPackage.collectConstants: time 7.846e-05/0.1483, allocations: 16 kB / 495.5 MB, free: 3.996 MB / 330.8 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003217/0.1487, allocations: 63.95 kB / 495.6 MB, free: 3.934 MB / 330.8 MB Notification: Performance of NFScalarize.scalarize: time 0.0002045/0.1489, allocations: 115.6 kB / 495.7 MB, free: 3.82 MB / 330.8 MB Notification: Performance of NFVerifyModel.verify: time 0.0001661/0.1491, allocations: 113.4 kB / 495.8 MB, free: 3.703 MB / 330.8 MB Notification: Performance of NFConvertDAE.convert: time 0.0008213/0.1499, allocations: 455.1 kB / 496.3 MB, free: 3.258 MB / 330.8 MB Notification: Performance of FrontEnd - DAE generated: time 3.466e-06/0.1499, allocations: 0 / 496.3 MB, free: 3.258 MB / 330.8 MB Notification: Performance of FrontEnd: time 2.304e-06/0.1499, allocations: 0 / 496.3 MB, free: 3.258 MB / 330.8 MB Notification: Performance of Transformations before backend: time 1.129e-05/0.15, allocations: 0 / 496.3 MB, free: 3.258 MB / 330.8 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 100 * Number of variables: 100 Notification: Performance of Generate backend data structure: time 0.002766/0.1527, allocations: 0.9095 MB / 497.2 MB, free: 2.281 MB / 330.8 MB Notification: Performance of prepare preOptimizeDAE: time 6.2e-05/0.1528, allocations: 12.03 kB / 497.2 MB, free: 2.27 MB / 330.8 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000157/0.153, allocations: 78.48 kB / 497.3 MB, free: 2.184 MB / 330.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000174/0.1532, allocations: 63.25 kB / 497.3 MB, free: 2.121 MB / 330.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009178/0.1541, allocations: 409.8 kB / 497.7 MB, free: 1.68 MB / 330.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.593e-05/0.1542, allocations: 37 kB / 497.8 MB, free: 1.645 MB / 330.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001066/0.1543, allocations: 44 kB / 497.8 MB, free: 1.602 MB / 330.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00147/0.1558, allocations: 463.7 kB / 498.3 MB, free: 1.129 MB / 330.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.292e-05/0.1558, allocations: 4 kB / 498.3 MB, free: 1.125 MB / 330.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.929e-05/0.1559, allocations: 19.98 kB / 498.3 MB, free: 1.105 MB / 330.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.725e-05/0.1559, allocations: 11.95 kB / 498.3 MB, free: 1.094 MB / 330.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001385/0.1573, allocations: 331.8 kB / 498.6 MB, free: 0.7695 MB / 330.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00326/0.1606, allocations: 1.11 MB / 499.7 MB, free: 15.61 MB / 346.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002244/0.1629, allocations: 0.4976 MB / 0.4885 GB, free: 15.11 MB / 346.8 MB Notification: Performance of preOpt evalFunc (simulation): time 7.379e-05/0.163, allocations: 4.438 kB / 0.4885 GB, free: 15.1 MB / 346.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001112/0.1642, allocations: 293.3 kB / 0.4888 GB, free: 14.8 MB / 346.8 MB Notification: Performance of pre-optimization done (n=52): time 4.168e-06/0.1642, allocations: 0 / 0.4888 GB, free: 14.8 MB / 346.8 MB Notification: Performance of matching and sorting (n=52): time 0.002759/0.167, allocations: 0.6352 MB / 0.4894 GB, free: 14.16 MB / 346.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001442/0.1671, allocations: 136.9 kB / 0.4895 GB, free: 14 MB / 346.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001009/0.1682, allocations: 0.5132 MB / 0.49 GB, free: 13.47 MB / 346.8 MB Notification: Performance of collectPreVariables (initialization): time 0.0001268/0.1683, allocations: 49.69 kB / 0.4901 GB, free: 13.42 MB / 346.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.000303/0.1686, allocations: 287.7 kB / 0.4904 GB, free: 13.14 MB / 346.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001914/0.1688, allocations: 122.4 kB / 0.4905 GB, free: 13.02 MB / 346.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.155e-05/0.1689, allocations: 8 kB / 0.4905 GB, free: 13.01 MB / 346.8 MB Notification: Performance of setup shared object (initialization): time 0.0001829/0.1691, allocations: 334.8 kB / 0.4908 GB, free: 12.67 MB / 346.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007756/0.1699, allocations: 173 kB / 0.491 GB, free: 12.5 MB / 346.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000864/0.1708, allocations: 260.9 kB / 0.4912 GB, free: 12.23 MB / 346.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006933/0.1715, allocations: 150.1 kB / 0.4914 GB, free: 12.08 MB / 346.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.154e-06/0.1715, allocations: 0 / 0.4914 GB, free: 12.08 MB / 346.8 MB Notification: Performance of matching and sorting (n=68) (initialization): time 0.001727/0.1732, allocations: 474.6 kB / 0.4918 GB, free: 11.61 MB / 346.8 MB Notification: Performance of prepare postOptimizeDAE: time 2.713e-05/0.1733, allocations: 4 kB / 0.4918 GB, free: 11.61 MB / 346.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.901e-05/0.1733, allocations: 4 kB / 0.4918 GB, free: 11.6 MB / 346.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.951e-05/0.1733, allocations: 0 / 0.4918 GB, free: 11.6 MB / 346.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005377/0.1739, allocations: 71.95 kB / 0.4919 GB, free: 11.53 MB / 346.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.223e-05/0.1739, allocations: 0 / 0.4919 GB, free: 11.53 MB / 346.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007126/0.1746, allocations: 99.56 kB / 0.492 GB, free: 11.43 MB / 346.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.403e-05/0.1747, allocations: 16 kB / 0.492 GB, free: 11.42 MB / 346.8 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 58 ($whenCondition2,$PRE.table2.combiTimeTable.nextTimeEvent,$whenCondition1,$PRE.table1.combiTimeTable.nextTimeEvent,$whenCondition4,$whenCondition3,table1.y,table1.combiTimeTable.nextTimeEvent,$PRE.table1.combiTimeTable.nextTimeEventScaled,table1.combiTimeTable.nextTimeEventScaled,table2.combiTimeTable.nextTimeEvent,$PRE.table2.combiTimeTable.nextTimeEventScaled,table2.combiTimeTable.nextTimeEventScaled,and1.y,xor.y,nor.y,nand.y,$PRE.pre1.u,pre1.u,pre1.y,$PRE.edge1.u,edge1.u,edge1.y,fallingEdge.y,$PRE.fallingEdge.not_u,fallingEdge.not_u,$PRE.change1.u,change1.u,change1.y,greaterEqualThreshold.y,lessThreshold.y,lessEqualThreshold.y,greater.y,greaterEqual.y,less.y,lessEqual.y,zeroCrossing.y,$PRE.zeroCrossing.enable,zeroCrossing.enable,$PRE.zeroCrossing.disable,zeroCrossing.disable,$PRE.zeroCrossing.u_pos,zeroCrossing.u_pos,logicalSwitch.y,$PRE.hysteresis.y,hysteresis.y,$PRE.onOffController.y,onOffController.y,triggeredTrapezoid.endValue,triggeredTrapezoid.rate,triggeredTrapezoid.T,timer.u,$PRE.timer.entryTime,timer.entryTime,rSFlipFlop.Q,rSFlipFlop.QI,$PRE.rSFlipFlop.pre.u,rSFlipFlop.pre.u) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (68): * Single equations (assignments): 68 * 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.0004505/0.1752, allocations: 230.5 kB / 0.4922 GB, free: 11.19 MB / 346.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001444/0.1753, allocations: 59.3 kB / 0.4923 GB, free: 11.13 MB / 346.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001781/0.1755, allocations: 61.19 kB / 0.4923 GB, free: 11.07 MB / 346.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.576e-06/0.1755, allocations: 4 kB / 0.4923 GB, free: 11.07 MB / 346.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.704e-06/0.1756, allocations: 0 / 0.4923 GB, free: 11.07 MB / 346.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.008e-05/0.1756, allocations: 3.984 kB / 0.4924 GB, free: 11.06 MB / 346.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003223/0.1788, allocations: 1.095 MB / 0.4934 GB, free: 9.91 MB / 346.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.191e-06/0.1789, allocations: 0 / 0.4934 GB, free: 9.91 MB / 346.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003197/0.1792, allocations: 47.91 kB / 0.4935 GB, free: 9.863 MB / 346.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.087e-05/0.1792, allocations: 4 kB / 0.4935 GB, free: 9.859 MB / 346.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.459e-05/0.1793, allocations: 12.05 kB / 0.4935 GB, free: 9.848 MB / 346.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.177e-06/0.1793, allocations: 4 kB / 0.4935 GB, free: 9.844 MB / 346.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.954e-06/0.1793, allocations: 3.938 kB / 0.4935 GB, free: 9.84 MB / 346.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001895/0.1812, allocations: 0.5736 MB / 0.494 GB, free: 9.25 MB / 346.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001824/0.1814, allocations: 128.5 kB / 0.4942 GB, free: 9.105 MB / 346.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001281/0.1816, allocations: 24 kB / 0.4942 GB, free: 9.082 MB / 346.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006831/0.1823, allocations: 71.92 kB / 0.4943 GB, free: 9.012 MB / 346.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002836/0.1826, allocations: 76.27 kB / 0.4943 GB, free: 8.938 MB / 346.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.116e-05/0.1826, allocations: 23.92 kB / 0.4944 GB, free: 8.914 MB / 346.8 MB Notification: Performance of sorting global known variables: time 0.0006744/0.1833, allocations: 351.1 kB / 0.4947 GB, free: 8.57 MB / 346.8 MB Notification: Performance of sort global known variables: time 4.4e-07/0.1834, allocations: 4 kB / 0.4947 GB, free: 8.566 MB / 346.8 MB Notification: Performance of remove unused functions: time 0.0007009/0.1841, allocations: 127.7 kB / 0.4948 GB, free: 8.441 MB / 346.8 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 43 (timer.u,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,table1.y,table1.combiTimeTable.nextTimeEvent,table1.combiTimeTable.nextTimeEventScaled,table2.combiTimeTable.nextTimeEvent,table2.combiTimeTable.nextTimeEventScaled,and1.y,xor.y,nor.y,nand.y,pre1.u,pre1.y,edge1.u,edge1.y,fallingEdge.y,fallingEdge.not_u,change1.u,change1.y,greaterEqualThreshold.y,lessThreshold.y,lessEqualThreshold.y,greater.y,greaterEqual.y,less.y,lessEqual.y,zeroCrossing.y,zeroCrossing.enable,zeroCrossing.disable,zeroCrossing.u_pos,logicalSwitch.y,hysteresis.y,onOffController.y,triggeredTrapezoid.endValue,triggeredTrapezoid.rate,triggeredTrapezoid.T,timer.entryTime,rSFlipFlop.Q,rSFlipFlop.QI,rSFlipFlop.pre.u) * Number of discrete states: 15 (table2.combiTimeTable.nextTimeEvent,table1.combiTimeTable.nextTimeEvent,pre1.u,zeroCrossing.u_pos,zeroCrossing.enable,zeroCrossing.disable,hysteresis.y,onOffController.y,rSFlipFlop.pre.u,table2.combiTimeTable.nextTimeEventScaled,triggeredTrapezoid.y,table1.combiTimeTable.nextTimeEventScaled,fallingEdge.not_u,edge1.u,change1.u) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (52): * Single equations (assignments): 44 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 8 * 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.003583/0.1877, allocations: 1.464 MB / 0.4962 GB, free: 7.004 MB / 346.8 MB Notification: Performance of simCode: created initialization part: time 0.001838/0.1895, allocations: 445.6 kB / 0.4967 GB, free: 6.57 MB / 346.8 MB Notification: Performance of simCode: created event and clocks part: time 4.639e-06/0.1896, allocations: 0 / 0.4967 GB, free: 6.57 MB / 346.8 MB Notification: Performance of simCode: created simulation system equations: time 0.0008972/0.1905, allocations: 234.5 kB / 0.4969 GB, free: 6.336 MB / 346.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007585/0.1913, allocations: 93.3 kB / 0.497 GB, free: 6.246 MB / 346.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008112/0.1994, allocations: 3.206 MB / 0.5001 GB, free: 2.984 MB / 346.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007082/0.2002, allocations: 0.8759 MB / 0.501 GB, free: 2.078 MB / 346.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005855/0.2008, allocations: 187.4 kB / 0.5012 GB, free: 1.895 MB / 346.8 MB Notification: Performance of SimCode: time 1.303e-06/0.2008, allocations: 0 / 0.5012 GB, free: 1.895 MB / 346.8 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.064/3.265, allocations: 9.106 MB / 0.51 GB, free: 8.785 MB / 362.8 MB (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.Logical.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.Logical.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.Logical.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.Logical.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.Logical_res.mat --tempDir=temp_ModelicaTest_3_2_3_cpp_ModelicaTest_Blocks_Logical_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_cpp_ModelicaTest_Blocks_Logical.fmu > ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.Logical.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.Logical_res.mat does not exist to compare? outputFormat=mat