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.001463/0.001463, allocations: 99.02 kB / 17.58 MB, free: 5.418 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.001741/0.001741, allocations: 192 kB / 18.51 MB, free: 4.508 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.36/1.36, allocations: 205.1 MB / 224.4 MB, free: 12.31 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.001257/0.001257, allocations: 51.92 kB / 280.7 MB, free: 3.098 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08075/0.08202, allocations: 46.63 MB / 327.4 MB, free: 4.398 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.BooleanNetwork1): time 0.004926/0.087, allocations: 2.445 MB / 329.8 MB, free: 1.93 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.002258/0.08929, allocations: 1.252 MB / 331.1 MB, free: 0.668 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003055/0.08962, allocations: 11.94 kB / 331.1 MB, free: 0.6562 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007753/0.09043, allocations: 234.9 kB / 331.3 MB, free: 436 kB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000456/0.09089, allocations: 163.2 kB / 331.5 MB, free: 272 kB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000736/0.09164, allocations: 275.5 kB / 331.7 MB, free: 15.99 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005761/0.09223, allocations: 471.7 kB / 332.2 MB, free: 15.54 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003514/0.09259, allocations: 209.8 kB / 332.4 MB, free: 15.32 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002787/0.09288, allocations: 191.2 kB / 332.6 MB, free: 15.13 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002559/0.09314, allocations: 211 kB / 332.8 MB, free: 14.93 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 7.983e-05/0.09323, allocations: 36 kB / 332.8 MB, free: 14.89 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002531/0.09349, allocations: 127.9 kB / 333 MB, free: 14.77 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001534/0.09366, allocations: 127.5 kB / 333.1 MB, free: 14.64 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002179/0.09388, allocations: 218.7 kB / 333.3 MB, free: 14.43 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006319/0.09452, allocations: 0.5297 MB / 333.8 MB, free: 13.89 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.467e-06/0.09454, allocations: 0 / 333.8 MB, free: 13.89 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.222e-06/0.09454, allocations: 0 / 333.8 MB, free: 13.89 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.798e-05/0.09457, allocations: 0 / 333.8 MB, free: 13.89 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.001461/0.09603, allocations: 0.8551 MB / 334.7 MB, free: 12.98 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.142e-05/0.09608, allocations: 8.031 kB / 334.7 MB, free: 12.97 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.874e-05/0.09618, allocations: 78.72 kB / 334.8 MB, free: 12.89 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000126/0.09631, allocations: 56.28 kB / 334.8 MB, free: 12.83 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005115/0.09683, allocations: 390.9 kB / 335.2 MB, free: 12.41 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001229/0.09696, allocations: 63.02 kB / 335.3 MB, free: 12.34 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.708e-05/0.09702, allocations: 39.98 kB / 335.3 MB, free: 12.3 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006554/0.09769, allocations: 428.7 kB / 335.7 MB, free: 11.84 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.328e-05/0.09771, allocations: 3.938 kB / 335.7 MB, free: 11.84 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.686e-05/0.09775, allocations: 16 kB / 335.7 MB, free: 11.82 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.424e-05/0.09778, allocations: 12.44 kB / 335.7 MB, free: 11.81 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000465/0.09826, allocations: 273.5 kB / 336 MB, free: 11.54 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001799/0.1001, allocations: 1.674 MB / 337.7 MB, free: 9.781 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005721/0.1006, allocations: 307.8 kB / 338 MB, free: 9.453 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002302/0.1009, allocations: 130.5 kB / 338.1 MB, free: 9.316 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.515e-05/0.101, allocations: 8 kB / 338.1 MB, free: 9.309 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004484/0.1014, allocations: 343.6 kB / 338.5 MB, free: 8.934 MB / 286.1 MB Notification: Performance of pre-optimization done (n=37): time 2.144e-06/0.1014, allocations: 0 / 338.5 MB, free: 8.934 MB / 286.1 MB Notification: Performance of matching and sorting (n=37): time 0.0009759/0.1024, allocations: 478.6 kB / 338.9 MB, free: 8.453 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.934e-05/0.1025, allocations: 166.2 kB / 339.1 MB, free: 8.254 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005015/0.103, allocations: 489.2 kB / 339.6 MB, free: 7.77 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 4.838e-05/0.1031, allocations: 45.7 kB / 339.6 MB, free: 7.719 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001801/0.1033, allocations: 228.6 kB / 339.8 MB, free: 7.492 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.776e-05/0.1034, allocations: 90.97 kB / 339.9 MB, free: 7.402 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001737/0.1035, allocations: 118.2 kB / 340 MB, free: 7.281 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001561/0.1037, allocations: 354.7 kB / 340.4 MB, free: 6.926 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002447/0.104, allocations: 117.1 kB / 340.5 MB, free: 6.812 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003615/0.1043, allocations: 262.7 kB / 340.8 MB, free: 6.496 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006024/0.1049, allocations: 434.6 kB / 341.2 MB, free: 6.004 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.59e-06/0.105, allocations: 4 kB / 341.2 MB, free: 6 MB / 286.1 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.0008424/0.1058, allocations: 470.3 kB / 341.6 MB, free: 5.527 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.17e-05/0.1059, allocations: 42.11 kB / 341.7 MB, free: 5.48 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.007e-05/0.1059, allocations: 8 kB / 341.7 MB, free: 5.473 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.857e-05/0.1059, allocations: 4 kB / 341.7 MB, free: 5.469 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001447/0.1061, allocations: 47.84 kB / 341.7 MB, free: 5.422 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.49e-05/0.1061, allocations: 11.94 kB / 341.8 MB, free: 5.41 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002575/0.1063, allocations: 51.66 kB / 341.8 MB, free: 5.359 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.408e-05/0.1064, allocations: 20 kB / 341.8 MB, free: 5.34 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.0002857/0.1067, allocations: 256.5 kB / 342.1 MB, free: 5.074 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.706e-05/0.1068, allocations: 47.44 kB / 342.1 MB, free: 5.027 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004947/0.1073, allocations: 257.2 kB / 342.4 MB, free: 4.762 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.985e-06/0.1073, allocations: 8 kB / 342.4 MB, free: 4.754 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.716e-05/0.1073, allocations: 4.062 kB / 342.4 MB, free: 4.75 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.091e-06/0.1073, allocations: 0 / 342.4 MB, free: 4.75 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001047/0.1084, allocations: 0.7789 MB / 343.2 MB, free: 3.914 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.699e-06/0.1084, allocations: 0 / 343.2 MB, free: 3.914 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.658e-05/0.1085, allocations: 27.86 kB / 343.2 MB, free: 3.887 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.731e-06/0.1085, allocations: 3.938 kB / 343.2 MB, free: 3.883 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.793e-05/0.1085, allocations: 15.98 kB / 343.2 MB, free: 3.867 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.756e-06/0.1085, allocations: 0 / 343.2 MB, free: 3.867 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.695e-06/0.1085, allocations: 4 kB / 343.2 MB, free: 3.863 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007004/0.1092, allocations: 0.5093 MB / 343.7 MB, free: 3.328 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.351e-05/0.1093, allocations: 120.6 kB / 343.8 MB, free: 3.191 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.137e-05/0.1094, allocations: 15.92 kB / 343.9 MB, free: 3.176 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002139/0.1096, allocations: 19.98 kB / 343.9 MB, free: 3.156 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001192/0.1097, allocations: 39.95 kB / 343.9 MB, free: 3.117 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.831e-05/0.1098, allocations: 23.98 kB / 343.9 MB, free: 3.094 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0003441/0.1101, allocations: 323.1 kB / 344.3 MB, free: 2.785 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.1101, allocations: 0 / 344.3 MB, free: 2.785 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0005016/0.1107, allocations: 116 kB / 344.4 MB, free: 2.672 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.001973/0.1126, allocations: 1.405 MB / 345.8 MB, free: 1.242 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0007039/0.1134, allocations: 431.2 kB / 346.2 MB, free: 0.8086 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.485e-06/0.1134, allocations: 0 / 346.2 MB, free: 0.8086 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003613/0.1137, allocations: 239.1 kB / 346.4 MB, free: 0.5625 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005463/0.1143, allocations: 90.05 kB / 346.5 MB, free: 484 kB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00503/0.1193, allocations: 4.067 MB / 350.6 MB, free: 12.2 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003969/0.1197, allocations: 0.8478 MB / 351.4 MB, free: 11.33 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001982/0.12, allocations: 75.25 kB / 351.5 MB, free: 11.26 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000217/0.1202, allocations: 163.4 kB / 351.7 MB, free: 11.1 MB / 302.1 MB Notification: Performance of SimCode: time 3.81e-07/0.1202, allocations: 0 / 351.7 MB, free: 11.1 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02854/0.1487, allocations: 9.902 MB / 361.6 MB, free: 1.117 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.736/7.884, allocations: 11.92 kB / 361.6 MB, free: 1.105 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 & python3 -m fmpy simulate --output-file Modelica_3.2.3_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_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.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Blocks/Examples/BooleanNetwork1/BooleanNetwork1.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Blocks.Examples.BooleanNetwork1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches