Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Blocks.Examples.BooleanNetwork1.conf.json 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/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) 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 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 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) Running command: "" <> buildModelFMU(Modelica.Blocks.Examples.BooleanNetwork1,fileNamePrefix="Modelica_3_2_3_Modelica_Blocks_Examples_BooleanNetwork1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.BooleanNetwork1,fileNamePrefix="Modelica_3_2_3_Modelica_Blocks_Examples_BooleanNetwork1",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001412/0.001412, allocations: 111.9 kB / 17.28 MB, free: 6.219 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001426/0.001426, allocations: 193.3 kB / 18.2 MB, free: 5.301 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.747/1.747, allocations: 205.1 MB / 224.1 MB, free: 12.35 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001188/0.001188, allocations: 51.92 kB / 280.2 MB, free: 3.41 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1263/0.1275, allocations: 46.64 MB / 326.9 MB, free: 4.699 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.BooleanNetwork1): time 0.004532/0.1321, allocations: 2.471 MB / 329.3 MB, free: 2.207 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.00239/0.1345, allocations: 1.236 MB / 330.6 MB, free: 0.9609 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001957/0.1347, allocations: 11.94 kB / 330.6 MB, free: 0.9492 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008204/0.1356, allocations: 207.3 kB / 330.8 MB, free: 0.7461 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003733/0.136, allocations: 147.4 kB / 330.9 MB, free: 0.6016 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006399/0.1366, allocations: 243.6 kB / 331.2 MB, free: 372 kB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005479/0.1372, allocations: 475.9 kB / 331.6 MB, free: 15.89 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003994/0.1376, allocations: 209.8 kB / 331.8 MB, free: 15.68 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002313/0.1378, allocations: 195.1 kB / 332 MB, free: 15.49 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002586/0.1381, allocations: 211.1 kB / 332.2 MB, free: 15.29 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 6.119e-05/0.1382, allocations: 36 kB / 332.3 MB, free: 15.25 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002447/0.1384, allocations: 123.9 kB / 332.4 MB, free: 15.13 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00015/0.1386, allocations: 131.5 kB / 332.5 MB, free: 15 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002156/0.1388, allocations: 214.7 kB / 332.7 MB, free: 14.79 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005805/0.1394, allocations: 0.5298 MB / 333.3 MB, free: 14.26 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.877e-06/0.1394, allocations: 0 / 333.3 MB, free: 14.26 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.724e-06/0.1394, allocations: 0 / 333.3 MB, free: 14.26 MB / 286.1 MB Notification: Performance of Transformations before backend: time 8.777e-06/0.1394, allocations: 8 kB / 333.3 MB, free: 14.25 MB / 286.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 88 * Number of variables: 88 Notification: Performance of Generate backend data structure: time 0.001468/0.1409, allocations: 0.8434 MB / 334.1 MB, free: 13.35 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.006e-05/0.141, allocations: 15.97 kB / 334.1 MB, free: 13.33 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.494e-05/0.1411, allocations: 74.72 kB / 334.2 MB, free: 13.25 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001127/0.1412, allocations: 56.28 kB / 334.3 MB, free: 13.2 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005504/0.1417, allocations: 394.9 kB / 334.6 MB, free: 12.77 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.46e-05/0.1418, allocations: 67 kB / 334.7 MB, free: 12.7 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.233e-05/0.1419, allocations: 40 kB / 334.8 MB, free: 12.66 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007311/0.1426, allocations: 432.6 kB / 335.2 MB, free: 12.2 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.763e-05/0.1427, allocations: 0 / 335.2 MB, free: 12.2 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.489e-05/0.1427, allocations: 20 kB / 335.2 MB, free: 12.18 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.337e-05/0.1428, allocations: 20.36 kB / 335.2 MB, free: 12.16 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004805/0.1433, allocations: 257.5 kB / 335.5 MB, free: 11.91 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002015/0.1453, allocations: 1.67 MB / 337.1 MB, free: 10.15 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006314/0.1459, allocations: 303.8 kB / 337.4 MB, free: 9.824 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002281/0.1462, allocations: 126.5 kB / 337.6 MB, free: 9.691 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.765e-05/0.1462, allocations: 19.98 kB / 337.6 MB, free: 9.672 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000524/0.1468, allocations: 331.6 kB / 337.9 MB, free: 9.309 MB / 286.1 MB Notification: Performance of pre-optimization done (n=37): time 3.817e-06/0.1468, allocations: 4 kB / 337.9 MB, free: 9.305 MB / 286.1 MB Notification: Performance of matching and sorting (n=37): time 0.0009637/0.1478, allocations: 482.6 kB / 338.4 MB, free: 8.82 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001009/0.1479, allocations: 166.2 kB / 338.5 MB, free: 8.621 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004834/0.1484, allocations: 489.2 kB / 339 MB, free: 8.137 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 4.244e-05/0.1484, allocations: 41.69 kB / 339.1 MB, free: 8.09 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001747/0.1486, allocations: 232.6 kB / 339.3 MB, free: 7.859 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.721e-05/0.1487, allocations: 82.98 kB / 339.4 MB, free: 7.777 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001369/0.1488, allocations: 114.2 kB / 339.5 MB, free: 7.66 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001413/0.149, allocations: 366.7 kB / 339.8 MB, free: 7.293 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002112/0.1492, allocations: 117.1 kB / 339.9 MB, free: 7.18 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000332/0.1495, allocations: 274.6 kB / 340.2 MB, free: 6.848 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006684/0.1502, allocations: 430.9 kB / 340.6 MB, free: 6.359 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.958e-06/0.1502, allocations: 0 / 340.6 MB, free: 6.359 MB / 286.1 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.0007844/0.151, allocations: 474.4 kB / 341.1 MB, free: 5.883 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.565e-05/0.1511, allocations: 37.7 kB / 341.1 MB, free: 5.84 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.38e-05/0.1511, allocations: 7.984 kB / 341.1 MB, free: 5.832 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.319e-05/0.1511, allocations: 8 kB / 341.2 MB, free: 5.824 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000145/0.1513, allocations: 39.86 kB / 341.2 MB, free: 5.785 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.638e-05/0.1513, allocations: 8 kB / 341.2 MB, free: 5.777 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002334/0.1515, allocations: 47.97 kB / 341.2 MB, free: 5.73 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.078e-05/0.1516, allocations: 24 kB / 341.3 MB, free: 5.707 MB / 286.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 18 * Number of states: 0 () * Number of discrete variables: 58 ($PRE.onDelay.u,$PRE.onDelay.t_next,triggeredAdd.y,$PRE.triggeredAdd.y,$whenCondition5,$whenCondition4,$PRE.booleanTable.combiTimeTable.nextTimeEvent,$whenCondition1,booleanTable.combiTimeTable.nextTimeEventScaled,$PRE.booleanTable.combiTimeTable.nextTimeEventScaled,booleanTable.combiTimeTable.nextTimeEvent,onDelay.t_next,onDelay.delaySignal,onDelay.y,onDelay.u,$whenCondition3,$whenCondition2,sampleTriggerReset.y,sampleTriggerSet.y,rSFlipFlop.pre.u,$PRE.rSFlipFlop.pre.u,rSFlipFlop.QI,rSFlipFlop.Q,triggeredAdd.local_set,triggeredAdd.local_reset,set1.expr[2],set1.expr[1],changing.y,changing.u,$PRE.changing.u,falling.not_u,$PRE.falling.not_u,set1.firstActiveIndex,set1.y,$PRE.set1.y,set1.u[2],set1.u[1],rising.u,$PRE.rising.u,nor1.y,or2.u[1],nand1.u[1],xor1.u[1],or1.u[1],booleanPulse2.pulseStart,$PRE.booleanPulse2.pulseStart,booleanPulse1.pulseStart,$PRE.booleanPulse1.pulseStart,and1.u[2],and1.u[1],$whenCondition6,showValue6.active,showValue5.active,showValue1.number,showValue4.active,showValue3.active,showValue2.active,showValue.active) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (57): * Single equations (assignments): 56 * Array equations: 0 * Algorithm blocks: 1 * 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.0003031/0.1519, allocations: 252.5 kB / 341.5 MB, free: 5.441 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.935e-05/0.152, allocations: 51.44 kB / 341.6 MB, free: 5.391 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005171/0.1525, allocations: 261.3 kB / 341.8 MB, free: 5.121 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.05e-06/0.1525, allocations: 8 kB / 341.8 MB, free: 5.113 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.941e-06/0.1525, allocations: 0 / 341.8 MB, free: 5.113 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.738e-06/0.1526, allocations: 7.984 kB / 341.8 MB, free: 5.105 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001107/0.1537, allocations: 0.775 MB / 342.6 MB, free: 4.273 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.535e-06/0.1537, allocations: 7.875 kB / 342.6 MB, free: 4.266 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.379e-05/0.1538, allocations: 19.92 kB / 342.6 MB, free: 4.246 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.833e-06/0.1538, allocations: 11.94 kB / 342.6 MB, free: 4.234 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.224e-05/0.1538, allocations: 11.98 kB / 342.7 MB, free: 4.223 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.368e-06/0.1538, allocations: 4 kB / 342.7 MB, free: 4.219 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.31e-07/0.1538, allocations: 0 / 342.7 MB, free: 4.219 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007572/0.1546, allocations: 0.5097 MB / 343.2 MB, free: 3.684 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.667e-05/0.1547, allocations: 124.6 kB / 343.3 MB, free: 3.543 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.055e-05/0.1548, allocations: 15.94 kB / 343.3 MB, free: 3.527 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001986/0.155, allocations: 19.98 kB / 343.3 MB, free: 3.508 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001228/0.1551, allocations: 39.94 kB / 343.4 MB, free: 3.469 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.322e-05/0.1551, allocations: 16 kB / 343.4 MB, free: 3.453 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0003575/0.1555, allocations: 327.1 kB / 343.7 MB, free: 3.137 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.1555, allocations: 0 / 343.7 MB, free: 3.137 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0004606/0.156, allocations: 112 kB / 343.8 MB, free: 3.027 MB / 286.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 37 (rSFlipFlop.Q,rSFlipFlop.QI,rSFlipFlop.pre.u,sampleTriggerSet.y,sampleTriggerReset.y,$whenCondition1,$whenCondition2,$whenCondition3,onDelay.u,onDelay.y,onDelay.delaySignal,onDelay.t_next,booleanTable.combiTimeTable.nextTimeEvent,booleanTable.combiTimeTable.nextTimeEventScaled,nor1.y,or2.u[1],changing.y,$cse1,$cse2,$whenCondition6,$whenCondition5,$whenCondition4,and1.u[1],and1.u[2],booleanPulse1.pulseStart,booleanPulse2.pulseStart,or1.u[1],xor1.u[1],nand1.u[1],rising.u,set1.u[1],set1.u[2],set1.y,set1.firstActiveIndex,falling.not_u,changing.u,triggeredAdd.y) * Number of discrete states: 12 (falling.not_u,rising.u,set1.y,changing.u,triggeredAdd.y,booleanTable.combiTimeTable.nextTimeEventScaled,onDelay.t_next,onDelay.delaySignal,$whenCondition3,$whenCondition2,booleanTable.combiTimeTable.nextTimeEvent,rSFlipFlop.pre.u) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (36): * Single equations (assignments): 30 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 5 * 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.002204/0.1582, allocations: 1.412 MB / 345.2 MB, free: 1.59 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0007675/0.159, allocations: 426.7 kB / 345.6 MB, free: 1.16 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.405e-06/0.159, allocations: 0 / 345.6 MB, free: 1.16 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003396/0.1593, allocations: 240.1 kB / 345.9 MB, free: 0.9141 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000541/0.1599, allocations: 94 kB / 346 MB, free: 0.8203 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005651/0.1656, allocations: 4.179 MB / 350.1 MB, free: 12.43 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000537/0.1661, allocations: 0.8439 MB / 351 MB, free: 11.57 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0002231/0.1663, allocations: 79.25 kB / 351.1 MB, free: 11.49 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002185/0.1666, allocations: 159.4 kB / 351.2 MB, free: 11.33 MB / 302.1 MB Notification: Performance of SimCode: time 3.11e-07/0.1666, allocations: 0 / 351.2 MB, free: 11.33 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0268/0.1934, allocations: 9.697 MB / 360.9 MB, free: 1.594 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003175/0.1938, allocations: 232.8 kB / 361.2 MB, free: 1.332 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.656/2.85, allocations: 0 / 361.2 MB, free: 1.332 MB / 302.1 MB (rm -f Modelica_3.2.3_Modelica.Blocks.Examples.BooleanNetwork1.pipe ; mkfifo Modelica_3.2.3_Modelica.Blocks.Examples.BooleanNetwork1.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Blocks.Examples.BooleanNetwork1.pipe >> ../files/Modelica_3.2.3_Modelica.Blocks.Examples.BooleanNetwork1.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Blocks.Examples.BooleanNetwork1_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Blocks_Examples_BooleanNetwork1_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Blocks_Examples_BooleanNetwork1.fmu > Modelica_3.2.3_Modelica.Blocks.Examples.BooleanNetwork1.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Blocks.Examples.BooleanNetwork1_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Blocks/Examples/BooleanNetwork1/BooleanNetwork1.csv","../files/Modelica_3.2.3_Modelica.Blocks.Examples.BooleanNetwork1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches