Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Blocks.Examples.BooleanNetwork1.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) 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(Modelica.Blocks.Examples.BooleanNetwork1,fileNamePrefix="Modelica_trunk_Modelica_Blocks_Examples_BooleanNetwork1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.BooleanNetwork1,fileNamePrefix="Modelica_trunk_Modelica_Blocks_Examples_BooleanNetwork1",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001083/0.001083, allocations: 103.7 kB / 17.63 MB, free: 5.543 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001245/0.001245, allocations: 208.6 kB / 18.58 MB, free: 4.602 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.319/1.319, allocations: 227.4 MB / 246.8 MB, free: 10.61 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001211/0.001211, allocations: 63.53 kB / 307 MB, free: 0.5508 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0817/0.08292, allocations: 50.53 MB / 357.6 MB, free: 14.03 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.BooleanNetwork1): time 0.00437/0.08733, allocations: 2.483 MB / 360.1 MB, free: 11.53 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002754/0.09011, allocations: 1.469 MB / 361.5 MB, free: 10.05 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000271/0.0904, allocations: 11.94 kB / 361.5 MB, free: 10.04 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007205/0.09115, allocations: 234.9 kB / 361.8 MB, free: 9.809 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006003/0.09177, allocations: 203 kB / 362 MB, free: 9.609 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008085/0.09259, allocations: 263.3 kB / 362.2 MB, free: 9.352 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007377/0.09334, allocations: 479.7 kB / 362.7 MB, free: 8.883 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004025/0.09375, allocations: 213.8 kB / 362.9 MB, free: 8.66 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003058/0.09407, allocations: 195.2 kB / 363.1 MB, free: 8.469 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002961/0.09437, allocations: 214.9 kB / 363.3 MB, free: 8.258 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 7.902e-05/0.09446, allocations: 36 kB / 363.3 MB, free: 8.223 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002892/0.09475, allocations: 115.9 kB / 363.4 MB, free: 8.109 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001483/0.09491, allocations: 123.6 kB / 363.6 MB, free: 7.988 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002319/0.09515, allocations: 226.6 kB / 363.8 MB, free: 7.766 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006559/0.09581, allocations: 0.5298 MB / 364.3 MB, free: 7.234 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.108e-06/0.09583, allocations: 3.938 kB / 364.3 MB, free: 7.23 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.303e-06/0.09584, allocations: 4 kB / 364.3 MB, free: 7.227 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.347e-05/0.09586, allocations: 0 / 364.3 MB, free: 7.227 MB / 302.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.001377/0.09724, allocations: 0.8553 MB / 365.2 MB, free: 6.312 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.714e-05/0.09729, allocations: 15.97 kB / 365.2 MB, free: 6.297 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.827e-05/0.09737, allocations: 70.72 kB / 365.3 MB, free: 6.219 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002568/0.09763, allocations: 64.27 kB / 365.3 MB, free: 6.156 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004908/0.09813, allocations: 390.9 kB / 365.7 MB, free: 5.734 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.383e-05/0.09822, allocations: 71.02 kB / 365.8 MB, free: 5.656 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.651e-05/0.09828, allocations: 36 kB / 365.8 MB, free: 5.621 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006566/0.09895, allocations: 428.7 kB / 366.2 MB, free: 5.16 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.269e-05/0.09897, allocations: 0 / 366.2 MB, free: 5.16 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.831e-05/0.09901, allocations: 23.98 kB / 366.3 MB, free: 5.137 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.552e-05/0.09904, allocations: 12.44 kB / 366.3 MB, free: 5.125 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004692/0.09952, allocations: 269.4 kB / 366.5 MB, free: 4.859 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001813/0.1013, allocations: 1.674 MB / 368.2 MB, free: 3.098 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000557/0.1019, allocations: 307.8 kB / 368.5 MB, free: 2.77 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000222/0.1021, allocations: 126.5 kB / 368.6 MB, free: 2.637 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.645e-05/0.1022, allocations: 8 kB / 368.6 MB, free: 2.629 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004258/0.1026, allocations: 327.7 kB / 369 MB, free: 2.27 MB / 302.1 MB Notification: Performance of pre-optimization done (n=37): time 3.948e-06/0.1027, allocations: 3.984 kB / 369 MB, free: 2.266 MB / 302.1 MB Notification: Performance of matching and sorting (n=37): time 0.0008973/0.1036, allocations: 470.6 kB / 369.4 MB, free: 1.793 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.124e-05/0.1037, allocations: 158.2 kB / 369.6 MB, free: 1.602 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004962/0.1042, allocations: 0.4934 MB / 370.1 MB, free: 1.102 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.95e-05/0.1042, allocations: 41.69 kB / 370.1 MB, free: 1.055 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001583/0.1044, allocations: 236.5 kB / 370.3 MB, free: 0.8203 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.598e-05/0.1045, allocations: 82.98 kB / 370.4 MB, free: 0.7383 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001395/0.1046, allocations: 118.1 kB / 370.5 MB, free: 0.6172 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001284/0.1047, allocations: 362.7 kB / 370.9 MB, free: 260 kB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002307/0.105, allocations: 117.1 kB / 371 MB, free: 144 kB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.1406/0.2456, allocations: 261.3 kB / 371.3 MB, free: 19.84 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005655/0.2462, allocations: 404.9 kB / 371.7 MB, free: 19.63 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.471e-06/0.2462, allocations: 1.812 kB / 371.7 MB, free: 19.63 MB / 302.1 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.0008048/0.247, allocations: 466 kB / 372.1 MB, free: 19.54 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.773e-05/0.2471, allocations: 38.38 kB / 372.1 MB, free: 19.51 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.093e-05/0.2471, allocations: 4.188 kB / 372.2 MB, free: 19.51 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.145e-05/0.2471, allocations: 6.594 kB / 372.2 MB, free: 19.51 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001445/0.2473, allocations: 42.45 kB / 372.2 MB, free: 19.5 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.61e-05/0.2473, allocations: 11.69 kB / 372.2 MB, free: 19.5 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000247/0.2475, allocations: 54.14 kB / 372.3 MB, free: 19.5 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.481e-05/0.2476, allocations: 23.38 kB / 372.3 MB, free: 19.5 MB / 302.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.0002633/0.2479, allocations: 256 kB / 372.5 MB, free: 19.34 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.31e-05/0.2479, allocations: 46.78 kB / 372.6 MB, free: 19.34 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004221/0.2484, allocations: 240.5 kB / 372.8 MB, free: 19.3 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.942e-06/0.2484, allocations: 6.406 kB / 372.8 MB, free: 19.3 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.342e-06/0.2484, allocations: 1.844 kB / 372.8 MB, free: 19.3 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.344e-06/0.2484, allocations: 2.922 kB / 372.8 MB, free: 19.3 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008876/0.2493, allocations: 0.7411 MB / 373.6 MB, free: 19 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.955e-06/0.2493, allocations: 0.5938 kB / 373.6 MB, free: 19 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.401e-05/0.2494, allocations: 17.78 kB / 373.6 MB, free: 19 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.926e-06/0.2494, allocations: 2.5 kB / 373.6 MB, free: 19 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.549e-05/0.2494, allocations: 10.53 kB / 373.6 MB, free: 19 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.076e-06/0.2494, allocations: 3.141 kB / 373.6 MB, free: 19 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.865e-06/0.2494, allocations: 9.25 kB / 373.6 MB, free: 18.99 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006043/0.25, allocations: 486 kB / 374.1 MB, free: 18.81 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.388e-05/0.2501, allocations: 124.5 kB / 374.2 MB, free: 18.72 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.846e-05/0.2502, allocations: 11.75 kB / 374.2 MB, free: 18.72 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002154/0.2504, allocations: 26.72 kB / 374.2 MB, free: 18.71 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001155/0.2505, allocations: 44.25 kB / 374.3 MB, free: 18.71 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.064e-05/0.2506, allocations: 16.55 kB / 374.3 MB, free: 18.71 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0003529/0.2509, allocations: 329.5 kB / 374.6 MB, free: 18.58 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2509, allocations: 3.344 kB / 374.6 MB, free: 18.58 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004369/0.2514, allocations: 112.2 kB / 374.7 MB, free: 18.56 MB / 302.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: 35 (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,changing.y,$whenCondition6,$whenCondition5,$whenCondition4,and1.u[1],and1.u[2],booleanPulse1.pulseStart,booleanPulse2.pulseStart,or1.u[1],xor1.u[1],nand1.u[1],or2.u[1],nor1.y,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 (34): * Single equations (assignments): 28 * 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.001545/0.2529, allocations: 1.374 MB / 376.1 MB, free: 17.66 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0006205/0.2536, allocations: 414.8 kB / 376.5 MB, free: 17.48 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.365e-06/0.2536, allocations: 1.312 kB / 376.5 MB, free: 17.48 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002917/0.2539, allocations: 234.9 kB / 376.8 MB, free: 17.36 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005289/0.2544, allocations: 88.33 kB / 376.8 MB, free: 17.33 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004109/0.2585, allocations: 4.075 MB / 380.9 MB, free: 14.77 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002394/0.2588, allocations: 0.839 MB / 381.8 MB, free: 14.05 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001959/0.259, allocations: 80.3 kB / 381.8 MB, free: 14.04 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001772/0.2592, allocations: 158.5 kB / 382 MB, free: 13.92 MB / 302.1 MB Notification: Performance of SimCode: time 2.4e-07/0.2592, allocations: 0 / 382 MB, free: 13.92 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02494/0.2841, allocations: 9.678 MB / 391.7 MB, free: 10.77 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.746/8.03, allocations: 15.98 kB / 391.7 MB, free: 10.76 MB / 302.1 MB (rm -f Modelica_trunk_Modelica.Blocks.Examples.BooleanNetwork1.pipe ; mkfifo Modelica_trunk_Modelica.Blocks.Examples.BooleanNetwork1.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Blocks.Examples.BooleanNetwork1.pipe >> ../files/Modelica_trunk_Modelica.Blocks.Examples.BooleanNetwork1.sim & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Blocks.Examples.BooleanNetwork1_res.csv --start-time 0 --stop-time 10 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.004 Modelica_trunk_Modelica_Blocks_Examples_BooleanNetwork1.fmu > Modelica_trunk_Modelica.Blocks.Examples.BooleanNetwork1.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Blocks.Examples.BooleanNetwork1_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Blocks/Examples/BooleanNetwork1/BooleanNetwork1.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Blocks.Examples.BooleanNetwork1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches