Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Blocks.Logical.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.Logical,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Blocks_Logical",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.Logical,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Blocks_Logical",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008966/0.0008967, allocations: 98.98 kB / 17 MB, free: 6.402 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001538/0.001538, allocations: 192.7 kB / 17.91 MB, free: 5.926 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.548/1.548, allocations: 227.4 MB / 246 MB, free: 10.24 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2329/0.2329, allocations: 45.91 MB / 344.1 MB, free: 11.99 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002758/0.000276, allocations: 8 kB / 418.2 MB, free: 20.71 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1186/0.1189, allocations: 63.47 MB / 481.6 MB, free: 5.234 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Logical): time 0.003608/0.1226, allocations: 2.404 MB / 484 MB, free: 2.809 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002907/0.1255, allocations: 1.525 MB / 485.6 MB, free: 1.277 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003139/0.1259, allocations: 7.938 kB / 485.6 MB, free: 1.27 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008699/0.1267, allocations: 295.1 kB / 485.9 MB, free: 0.9805 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005917/0.1273, allocations: 243.2 kB / 486.1 MB, free: 0.7422 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000937/0.1283, allocations: 350.1 kB / 486.4 MB, free: 416 kB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006952/0.129, allocations: 0.6014 MB / 487 MB, free: 15.8 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003419/0.1293, allocations: 175.2 kB / 487.2 MB, free: 15.63 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004141/0.1298, allocations: 230.9 kB / 487.4 MB, free: 15.41 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000305/0.1301, allocations: 254.8 kB / 487.7 MB, free: 15.16 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 5.039e-05/0.1301, allocations: 16 kB / 487.7 MB, free: 15.14 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002076/0.1304, allocations: 83.89 kB / 487.8 MB, free: 15.06 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001588/0.1305, allocations: 119.5 kB / 487.9 MB, free: 14.94 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001224/0.1307, allocations: 117.3 kB / 488 MB, free: 14.82 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005006/0.1312, allocations: 487.1 kB / 488.5 MB, free: 14.34 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.556e-06/0.1312, allocations: 3.938 kB / 488.5 MB, free: 14.34 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.412e-06/0.1312, allocations: 4 kB / 488.5 MB, free: 14.34 MB / 366.1 MB Notification: Performance of Transformations before backend: time 7.094e-06/0.1312, allocations: 0 / 488.5 MB, free: 14.34 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: 103 * Number of variables: 103 Notification: Performance of Generate backend data structure: time 0.001707/0.1329, allocations: 0.9483 MB / 489.4 MB, free: 13.32 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.036e-05/0.133, allocations: 8.031 kB / 489.5 MB, free: 13.32 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.322e-05/0.1331, allocations: 86.45 kB / 489.5 MB, free: 13.22 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002022/0.1333, allocations: 87.14 kB / 489.6 MB, free: 13.14 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005666/0.1338, allocations: 421.7 kB / 490 MB, free: 12.68 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.362e-05/0.1339, allocations: 40.98 kB / 490.1 MB, free: 12.64 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.878e-05/0.134, allocations: 44 kB / 490.1 MB, free: 12.6 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008638/0.1348, allocations: 480.6 kB / 490.6 MB, free: 12.11 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.098e-05/0.1349, allocations: 4 kB / 490.6 MB, free: 12.1 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.133e-05/0.1349, allocations: 16 kB / 490.6 MB, free: 12.09 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.281e-05/0.1349, allocations: 8 kB / 490.6 MB, free: 12.08 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000803/0.1357, allocations: 351.7 kB / 491 MB, free: 11.73 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001964/0.1377, allocations: 1.223 MB / 492.2 MB, free: 10.46 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001194/0.1389, allocations: 0.512 MB / 492.7 MB, free: 9.926 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004238/0.1394, allocations: 198.9 kB / 492.9 MB, free: 9.727 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.86e-05/0.1394, allocations: 16.41 kB / 492.9 MB, free: 9.707 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007157/0.1402, allocations: 349.8 kB / 493.2 MB, free: 9.348 MB / 366.1 MB Notification: Performance of pre-optimization done (n=55): time 2.354e-06/0.1402, allocations: 0 / 493.2 MB, free: 9.348 MB / 366.1 MB Notification: Performance of matching and sorting (n=55): time 0.00151/0.1417, allocations: 0.6662 MB / 493.9 MB, free: 8.68 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.477e-05/0.1418, allocations: 166.7 kB / 494.1 MB, free: 8.477 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006254/0.1424, allocations: 0.5367 MB / 494.6 MB, free: 7.934 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 5.584e-05/0.1425, allocations: 49.69 kB / 494.7 MB, free: 7.879 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001956/0.1427, allocations: 261.3 kB / 494.9 MB, free: 7.621 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000115/0.1428, allocations: 126.3 kB / 495 MB, free: 7.496 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.792e-05/0.1429, allocations: 12 kB / 495.1 MB, free: 7.484 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.000162/0.143, allocations: 374.8 kB / 495.4 MB, free: 7.109 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004175/0.1435, allocations: 173.2 kB / 495.6 MB, free: 6.941 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005859/0.144, allocations: 287.5 kB / 495.9 MB, free: 6.629 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003901/0.1444, allocations: 158.2 kB / 496 MB, free: 6.477 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.297e-06/0.1445, allocations: 0 / 496 MB, free: 6.477 MB / 366.1 MB Notification: Performance of matching and sorting (n=72) (initialization): time 0.00105/0.1455, allocations: 0.51 MB / 496.5 MB, free: 5.961 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.959e-05/0.1455, allocations: 4 kB / 496.5 MB, free: 5.957 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.165e-05/0.1456, allocations: 12.05 kB / 496.5 MB, free: 5.945 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.704e-05/0.1456, allocations: 7.938 kB / 496.6 MB, free: 5.938 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000303/0.1459, allocations: 71.89 kB / 496.6 MB, free: 5.867 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.167e-05/0.1459, allocations: 4 kB / 496.6 MB, free: 5.863 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004031/0.1463, allocations: 111.5 kB / 496.7 MB, free: 5.754 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.338e-05/0.1464, allocations: 23.98 kB / 496.8 MB, free: 5.73 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 62 ($whenCondition3,$PRE.table2.combiTimeTable.nextTimeEvent,$whenCondition2,$PRE.table1.combiTimeTable.nextTimeEvent,$whenCondition5,$whenCondition4,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,$whenCondition1,booleanPulse.y,$PRE.booleanPulse.pulseStart,booleanPulse.pulseStart) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (72): * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003234/0.1467, allocations: 219 kB / 497 MB, free: 5.504 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.341e-05/0.1468, allocations: 59.33 kB / 497 MB, free: 5.445 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001345/0.147, allocations: 61.36 kB / 497.1 MB, free: 5.383 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.666e-06/0.147, allocations: 7.953 kB / 497.1 MB, free: 5.375 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.241e-05/0.147, allocations: 4 kB / 497.1 MB, free: 5.371 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.486e-06/0.147, allocations: 3.984 kB / 497.1 MB, free: 5.367 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001872/0.1489, allocations: 1.135 MB / 498.2 MB, free: 4.176 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.186e-06/0.1489, allocations: 0 / 498.2 MB, free: 4.176 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001736/0.1491, allocations: 39.91 kB / 498.3 MB, free: 4.137 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.968e-06/0.1491, allocations: 11.94 kB / 498.3 MB, free: 4.125 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.126e-05/0.1491, allocations: 15.98 kB / 498.3 MB, free: 4.109 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.921e-06/0.1492, allocations: 0 / 498.3 MB, free: 4.109 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.236e-06/0.1492, allocations: 8 kB / 498.3 MB, free: 4.102 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001107/0.1503, allocations: 0.597 MB / 498.9 MB, free: 3.484 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001044/0.1504, allocations: 148.2 kB / 499.1 MB, free: 3.32 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.015e-05/0.1505, allocations: 19.94 kB / 499.1 MB, free: 3.301 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003688/0.1509, allocations: 75.94 kB / 499.2 MB, free: 3.227 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001677/0.151, allocations: 84.3 kB / 499.2 MB, free: 3.145 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.54e-05/0.1511, allocations: 19.98 kB / 499.3 MB, free: 3.125 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0004164/0.1515, allocations: 379.1 kB / 499.6 MB, free: 2.758 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1515, allocations: 0 / 499.6 MB, free: 2.758 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0004486/0.152, allocations: 139.7 kB / 499.8 MB, free: 2.621 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 46 ($whenCondition1,booleanPulse.y,booleanPulse.pulseStart,timer.u,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,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 (55): * Single equations (assignments): 46 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 9 * 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.002132/0.1541, allocations: 1.487 MB / 0.4895 GB, free: 1.238 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0009694/0.1551, allocations: 470.5 kB / 0.4899 GB, free: 0.7852 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.675e-06/0.1551, allocations: 0 / 0.4899 GB, free: 0.7852 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005164/0.1556, allocations: 246.4 kB / 0.4902 GB, free: 0.5391 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005904/0.1562, allocations: 113.3 kB / 0.4903 GB, free: 444 kB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004835/0.1611, allocations: 3.123 MB / 0.4933 GB, free: 13.23 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005641/0.1617, allocations: 0.8763 MB / 0.4942 GB, free: 12.33 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0003102/0.162, allocations: 68.34 kB / 0.4943 GB, free: 12.27 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00035/0.1624, allocations: 211.3 kB / 0.4945 GB, free: 12.06 MB / 382.1 MB Notification: Performance of SimCode: time 1.062e-06/0.1624, allocations: 0 / 0.4945 GB, free: 12.06 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02674/0.1891, allocations: 11.3 MB / 0.5055 GB, free: 0.8906 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002406/0.1894, allocations: 203.3 kB / 0.5057 GB, free: 0.6484 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.205/2.394, allocations: 0 / 0.5057 GB, free: 0.6484 MB / 382.1 MB (rm -f ModelicaTest_trunk_ModelicaTest.Blocks.Logical.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Blocks.Logical.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Blocks.Logical.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Blocks.Logical.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Blocks.Logical_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Blocks_Logical_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Blocks_Logical.fmu > ModelicaTest_trunk_ModelicaTest.Blocks.Logical.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_trunk_ModelicaTest.Blocks.Logical_res.mat does not exist to compare? outputFormat=mat