Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_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 4.1.0-beta.om/package.mo", uses=false) Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/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_4_1_0-beta_om_ModelicaTest_Blocks_Logical",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.Logical,fileNamePrefix="ModelicaTest_4_1_0-beta_om_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.001729/0.001729, allocations: 103.9 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002124/0.002124, allocations: 210.4 kB / 18.58 MB, free: 4.578 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.436/1.436, allocations: 227.4 MB / 246.8 MB, free: 10.59 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo): time 0.2182/0.2182, allocations: 46.11 MB / 344.2 MB, free: 11.6 MB / 286.1 MB Warning: Requested package Modelica of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.002182/0.002182, allocations: 76.66 kB / 417.7 MB, free: 19.64 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1038/0.106, allocations: 62.45 MB / 480.2 MB, free: 5.16 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Logical): time 0.004968/0.111, allocations: 2.851 MB / 483.1 MB, free: 2.285 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002969/0.114, allocations: 1.631 MB / 484.7 MB, free: 0.6484 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003118/0.1143, allocations: 11.94 kB / 484.7 MB, free: 0.6367 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009359/0.1153, allocations: 342.3 kB / 485 MB, free: 312 kB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007305/0.116, allocations: 294.7 kB / 485.3 MB, free: 16 kB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009087/0.117, allocations: 366.3 kB / 485.7 MB, free: 15.66 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007793/0.1178, allocations: 0.6794 MB / 486.4 MB, free: 14.98 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003773/0.1181, allocations: 223 kB / 486.6 MB, free: 14.76 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004545/0.1186, allocations: 286.9 kB / 486.9 MB, free: 14.48 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003833/0.119, allocations: 322.6 kB / 487.2 MB, free: 14.16 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001003/0.1191, allocations: 52 kB / 487.2 MB, free: 14.11 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000245/0.1194, allocations: 123.9 kB / 487.3 MB, free: 13.99 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001826/0.1196, allocations: 167.5 kB / 487.5 MB, free: 13.82 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002907/0.1198, allocations: 294.3 kB / 487.8 MB, free: 13.54 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007582/0.1206, allocations: 0.6621 MB / 488.5 MB, free: 12.87 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.647e-06/0.1206, allocations: 0 / 488.5 MB, free: 12.87 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.302e-06/0.1206, allocations: 0 / 488.5 MB, free: 12.87 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.33e-05/0.1207, allocations: 0 / 488.5 MB, free: 12.87 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.002079/0.1227, allocations: 1.03 MB / 489.5 MB, free: 11.78 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.893e-05/0.1228, allocations: 12.03 kB / 489.5 MB, free: 11.77 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.891e-05/0.1229, allocations: 78.7 kB / 489.6 MB, free: 11.68 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002436/0.1231, allocations: 80.08 kB / 489.6 MB, free: 11.61 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006162/0.1238, allocations: 442.7 kB / 490.1 MB, free: 11.13 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.6e-05/0.1238, allocations: 37.38 kB / 490.1 MB, free: 11.1 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.973e-05/0.1239, allocations: 51.92 kB / 490.2 MB, free: 11.05 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009182/0.1248, allocations: 472.6 kB / 490.6 MB, free: 10.56 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.184e-05/0.1249, allocations: 4 kB / 490.6 MB, free: 10.56 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.598e-05/0.1249, allocations: 20 kB / 490.7 MB, free: 10.54 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.545e-05/0.1249, allocations: 16 kB / 490.7 MB, free: 10.52 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008314/0.1258, allocations: 327.7 kB / 491 MB, free: 10.2 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002046/0.1278, allocations: 1.196 MB / 492.2 MB, free: 8.949 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00138/0.1292, allocations: 0.4949 MB / 492.7 MB, free: 8.438 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000484/0.1297, allocations: 194.9 kB / 492.9 MB, free: 8.238 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.759e-05/0.1298, allocations: 12.38 kB / 492.9 MB, free: 8.227 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007459/0.1305, allocations: 333.9 kB / 493.2 MB, free: 7.883 MB / 366.1 MB Notification: Performance of pre-optimization done (n=55): time 4.588e-06/0.1306, allocations: 0 / 493.2 MB, free: 7.883 MB / 366.1 MB Notification: Performance of matching and sorting (n=55): time 0.001731/0.1323, allocations: 0.6505 MB / 493.9 MB, free: 7.227 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001257/0.1324, allocations: 166.6 kB / 494 MB, free: 7.027 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007316/0.1332, allocations: 0.5445 MB / 494.6 MB, free: 6.473 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 7.044e-05/0.1333, allocations: 49.7 kB / 494.6 MB, free: 6.418 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002332/0.1335, allocations: 249.4 kB / 494.9 MB, free: 6.172 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000158/0.1337, allocations: 138.3 kB / 495 MB, free: 6.035 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001999/0.1339, allocations: 126.3 kB / 495.1 MB, free: 5.906 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001896/0.1341, allocations: 366.8 kB / 495.5 MB, free: 5.539 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004639/0.1345, allocations: 169.2 kB / 495.6 MB, free: 5.375 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005523/0.1351, allocations: 279.5 kB / 495.9 MB, free: 5.07 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007971/0.1359, allocations: 330.9 kB / 496.2 MB, free: 4.734 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.597e-06/0.1359, allocations: 0 / 496.2 MB, free: 4.734 MB / 366.1 MB Notification: Performance of matching and sorting (n=72) (initialization): time 0.00113/0.1371, allocations: 0.4903 MB / 496.7 MB, free: 4.238 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.893e-05/0.1371, allocations: 8 kB / 496.7 MB, free: 4.23 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.743e-06/0.1371, allocations: 0 / 496.7 MB, free: 4.23 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.03e-05/0.1371, allocations: 12.08 kB / 496.7 MB, free: 4.219 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002896/0.1374, allocations: 63.84 kB / 496.8 MB, free: 4.156 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.371e-05/0.1374, allocations: 7.984 kB / 496.8 MB, free: 4.148 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000423/0.1379, allocations: 87.47 kB / 496.9 MB, free: 4.062 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.535e-05/0.1379, allocations: 16 kB / 496.9 MB, free: 4.047 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 ($PRE.table2.combiTimeTable.nextTimeEvent,$whenCondition3,$PRE.table1.combiTimeTable.nextTimeEvent,$whenCondition2,rSFlipFlop.pre.u,$PRE.rSFlipFlop.pre.u,rSFlipFlop.QI,rSFlipFlop.Q,timer.entryTime,$PRE.timer.entryTime,timer.u,triggeredTrapezoid.T,triggeredTrapezoid.rate,triggeredTrapezoid.endValue,onOffController.y,$PRE.onOffController.y,hysteresis.y,$PRE.hysteresis.y,logicalSwitch.y,zeroCrossing.u_pos,$PRE.zeroCrossing.u_pos,zeroCrossing.disable,$PRE.zeroCrossing.disable,zeroCrossing.enable,$PRE.zeroCrossing.enable,zeroCrossing.y,lessEqual.y,less.y,greaterEqual.y,greater.y,lessEqualThreshold.y,lessThreshold.y,greaterEqualThreshold.y,change1.y,change1.u,$PRE.change1.u,fallingEdge.not_u,$PRE.fallingEdge.not_u,fallingEdge.y,edge1.y,edge1.u,$PRE.edge1.u,pre1.y,pre1.u,$PRE.pre1.u,nand.y,nor.y,xor.y,and1.y,table2.combiTimeTable.nextTimeEventScaled,$PRE.table2.combiTimeTable.nextTimeEventScaled,table2.combiTimeTable.nextTimeEvent,table1.combiTimeTable.nextTimeEventScaled,$PRE.table1.combiTimeTable.nextTimeEventScaled,table1.combiTimeTable.nextTimeEvent,table1.y,$whenCondition4,$whenCondition5,$whenCondition1,booleanPulse.pulseStart,$PRE.booleanPulse.pulseStart,booleanPulse.y) * 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003119/0.1382, allocations: 226.9 kB / 497.1 MB, free: 3.812 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001165/0.1384, allocations: 59.52 kB / 497.2 MB, free: 3.754 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001379/0.1385, allocations: 69.41 kB / 497.3 MB, free: 3.688 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.277e-06/0.1385, allocations: 7.984 kB / 497.3 MB, free: 3.68 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.362e-06/0.1386, allocations: 0 / 497.3 MB, free: 3.68 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.638e-06/0.1386, allocations: 7.984 kB / 497.3 MB, free: 3.672 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002003/0.1406, allocations: 1.103 MB / 498.4 MB, free: 2.508 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.42e-06/0.1406, allocations: 4 kB / 498.4 MB, free: 2.504 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001713/0.1408, allocations: 43.91 kB / 498.4 MB, free: 2.461 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.773e-06/0.1408, allocations: 4 kB / 498.4 MB, free: 2.457 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.155e-05/0.1408, allocations: 11.98 kB / 498.4 MB, free: 2.445 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.346e-06/0.1408, allocations: 0 / 498.4 MB, free: 2.445 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.453e-06/0.1409, allocations: 4 kB / 498.5 MB, free: 2.441 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001128/0.142, allocations: 0.6007 MB / 499.1 MB, free: 1.82 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001212/0.1421, allocations: 120.5 kB / 499.2 MB, free: 1.684 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.909e-05/0.1422, allocations: 23.92 kB / 499.2 MB, free: 1.66 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000407/0.1426, allocations: 55.92 kB / 499.2 MB, free: 1.605 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001683/0.1428, allocations: 72.36 kB / 499.3 MB, free: 1.535 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.687e-05/0.1429, allocations: 23.98 kB / 499.3 MB, free: 1.512 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0004604/0.1433, allocations: 391.1 kB / 499.7 MB, free: 1.133 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.1434, allocations: 0 / 499.7 MB, free: 1.133 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0004747/0.1438, allocations: 139.5 kB / 499.9 MB, free: 0.9961 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002945/0.1468, allocations: 1.476 MB / 0.4896 GB, free: 15.63 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001251/0.1481, allocations: 482.3 kB / 0.49 GB, free: 15.16 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.825e-06/0.1481, allocations: 0 / 0.49 GB, free: 15.16 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005599/0.1486, allocations: 242.4 kB / 0.4903 GB, free: 14.92 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006655/0.1493, allocations: 112.3 kB / 0.4904 GB, free: 14.82 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007662/0.157, allocations: 4.754 MB / 0.495 GB, free: 9.941 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006862/0.1577, allocations: 0.8761 MB / 0.4959 GB, free: 9.043 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.000357/0.1581, allocations: 72.33 kB / 0.496 GB, free: 8.969 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003567/0.1585, allocations: 207.3 kB / 0.4961 GB, free: 8.766 MB / 382.1 MB Notification: Performance of SimCode: time 1.302e-06/0.1585, allocations: 0 / 0.4961 GB, free: 8.766 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2292/0.3877, allocations: 12.65 MB / 0.5085 GB, free: 41.23 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.317/8.705, allocations: 4.266 kB / 0.5085 GB, free: 41.23 MB / 382.1 MB (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.Logical.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.Logical.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.Logical.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.Logical.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.Logical_res.mat --tempDir=temp_ModelicaTest_4_1_0-beta_om_ModelicaTest_Blocks_Logical_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 ModelicaTest_4_1_0-beta_om_ModelicaTest_Blocks_Logical.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.Logical.pipe 2>&1)