Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_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 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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_4_0_0_Modelica_Blocks_Examples_BooleanNetwork1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.BooleanNetwork1,fileNamePrefix="Modelica_4_0_0_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.001114/0.001114, allocations: 108.2 kB / 17.06 MB, free: 5.82 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.001228/0.001228, allocations: 195.9 kB / 18 MB, free: 4.965 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.306/1.306, allocations: 222.9 MB / 241.7 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00105/0.00105, allocations: 39.94 kB / 350.8 MB, free: 3.738 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2533/0.2544, allocations: 49.43 MB / 400.2 MB, free: 8.406 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.BooleanNetwork1): time 0.003745/0.2581, allocations: 2.461 MB / 402.7 MB, free: 6.336 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002193/0.2604, allocations: 1.329 MB / 404 MB, free: 5.004 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001873/0.2606, allocations: 7.938 kB / 404 MB, free: 4.996 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006962/0.2613, allocations: 234.7 kB / 404.3 MB, free: 4.77 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003689/0.2616, allocations: 167.1 kB / 404.4 MB, free: 4.605 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006745/0.2623, allocations: 291.3 kB / 404.7 MB, free: 4.32 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004709/0.2628, allocations: 487.7 kB / 405.2 MB, free: 3.84 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003067/0.2631, allocations: 209.8 kB / 405.4 MB, free: 3.625 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002054/0.2633, allocations: 191.2 kB / 405.6 MB, free: 3.438 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002137/0.2636, allocations: 211 kB / 405.8 MB, free: 3.23 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 5.841e-05/0.2636, allocations: 36 kB / 405.8 MB, free: 3.195 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002184/0.2639, allocations: 119.9 kB / 405.9 MB, free: 3.078 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001254/0.264, allocations: 123.6 kB / 406.1 MB, free: 2.957 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001887/0.2642, allocations: 222.7 kB / 406.3 MB, free: 2.738 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006174/0.2648, allocations: 0.5591 MB / 406.8 MB, free: 2.18 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.367e-06/0.2648, allocations: 3.938 kB / 406.8 MB, free: 2.176 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.222e-06/0.2648, allocations: 0 / 406.8 MB, free: 2.176 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.534e-06/0.2648, allocations: 0 / 406.8 MB, free: 2.176 MB / 318.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.001272/0.2661, allocations: 0.8654 MB / 407.7 MB, free: 1.25 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.515e-05/0.2662, allocations: 12.03 kB / 407.7 MB, free: 1.238 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.255e-05/0.2662, allocations: 78.72 kB / 407.8 MB, free: 1.152 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001044/0.2664, allocations: 64.55 kB / 407.9 MB, free: 1.09 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004929/0.2669, allocations: 402.8 kB / 408.2 MB, free: 0.6562 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.466e-05/0.2669, allocations: 58.69 kB / 408.3 MB, free: 0.5938 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.33e-05/0.267, allocations: 40 kB / 408.3 MB, free: 0.5547 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006251/0.2676, allocations: 432.6 kB / 408.8 MB, free: 92 kB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.471e-05/0.2677, allocations: 3.984 kB / 408.8 MB, free: 88 kB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.546e-05/0.2677, allocations: 16 kB / 408.8 MB, free: 72 kB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.641e-05/0.2677, allocations: 20.42 kB / 408.8 MB, free: 52 kB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004967/0.2682, allocations: 273.5 kB / 409.1 MB, free: 15.78 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00181/0.27, allocations: 1.663 MB / 410.7 MB, free: 14.04 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005809/0.2706, allocations: 288 kB / 411 MB, free: 13.72 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002361/0.2709, allocations: 134.5 kB / 411.1 MB, free: 13.58 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.425e-05/0.271, allocations: 12.06 kB / 411.2 MB, free: 13.57 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004618/0.2714, allocations: 336.9 kB / 411.5 MB, free: 13.2 MB / 334.1 MB Notification: Performance of pre-optimization done (n=37): time 1.884e-06/0.2714, allocations: 3.938 kB / 411.5 MB, free: 13.2 MB / 334.1 MB Notification: Performance of matching and sorting (n=37): time 0.001034/0.2725, allocations: 484.3 kB / 412 MB, free: 12.71 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.697e-05/0.2726, allocations: 170.1 kB / 412.1 MB, free: 12.51 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004975/0.2731, allocations: 493.4 kB / 412.6 MB, free: 12.02 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 4.194e-05/0.2731, allocations: 41.69 kB / 412.7 MB, free: 11.97 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001685/0.2733, allocations: 232.9 kB / 412.9 MB, free: 11.74 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.715e-05/0.2734, allocations: 95.36 kB / 413 MB, free: 11.65 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001526/0.2736, allocations: 118.2 kB / 413.1 MB, free: 11.53 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001362/0.2737, allocations: 354.8 kB / 413.4 MB, free: 11.17 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002342/0.274, allocations: 109.1 kB / 413.5 MB, free: 11.07 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003329/0.2743, allocations: 270.7 kB / 413.8 MB, free: 10.74 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000529/0.2748, allocations: 422.5 kB / 414.2 MB, free: 10.26 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.196e-06/0.2748, allocations: 0 / 414.2 MB, free: 10.26 MB / 334.1 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.0007296/0.2756, allocations: 482.5 kB / 414.7 MB, free: 9.777 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.063e-05/0.2756, allocations: 33.7 kB / 414.7 MB, free: 9.738 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.259e-05/0.2756, allocations: 7.984 kB / 414.7 MB, free: 9.73 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.071e-05/0.2757, allocations: 11.94 kB / 414.7 MB, free: 9.719 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001406/0.2758, allocations: 40.39 kB / 414.8 MB, free: 9.68 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.384e-05/0.2758, allocations: 15.88 kB / 414.8 MB, free: 9.664 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002488/0.2761, allocations: 59.64 kB / 414.9 MB, free: 9.605 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.244e-05/0.2761, allocations: 24 kB / 414.9 MB, free: 9.582 MB / 334.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.0002518/0.2764, allocations: 248.6 kB / 415.1 MB, free: 9.324 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.863e-05/0.2765, allocations: 47.72 kB / 415.2 MB, free: 9.277 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004828/0.277, allocations: 269.2 kB / 415.4 MB, free: 9.016 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.222e-06/0.277, allocations: 4 kB / 415.4 MB, free: 9.012 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.919e-06/0.277, allocations: 7.938 kB / 415.4 MB, free: 9.004 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.663e-06/0.277, allocations: 3.984 kB / 415.4 MB, free: 9 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00106/0.2781, allocations: 0.7677 MB / 416.2 MB, free: 8.172 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.511e-06/0.2781, allocations: 0 / 416.2 MB, free: 8.172 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.975e-05/0.2782, allocations: 27.8 kB / 416.2 MB, free: 8.145 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.909e-06/0.2782, allocations: 4 kB / 416.2 MB, free: 8.141 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.671e-05/0.2782, allocations: 11.98 kB / 416.3 MB, free: 8.129 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.997e-06/0.2782, allocations: 4 kB / 416.3 MB, free: 8.125 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.473e-06/0.2782, allocations: 0 / 416.3 MB, free: 8.125 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007538/0.279, allocations: 0.5096 MB / 416.8 MB, free: 7.59 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.32e-05/0.2791, allocations: 132.7 kB / 416.9 MB, free: 7.441 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.582e-05/0.2792, allocations: 12 kB / 416.9 MB, free: 7.43 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002146/0.2794, allocations: 23.98 kB / 416.9 MB, free: 7.406 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000104/0.2795, allocations: 39.94 kB / 417 MB, free: 7.367 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.271e-05/0.2795, allocations: 12 kB / 417 MB, free: 7.355 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0003272/0.2799, allocations: 327.1 kB / 417.3 MB, free: 7.035 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.2799, allocations: 0 / 417.3 MB, free: 7.035 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.000472/0.2804, allocations: 123.7 kB / 417.4 MB, free: 6.914 MB / 334.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.001919/0.2823, allocations: 1.411 MB / 418.8 MB, free: 5.621 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0007145/0.283, allocations: 391 kB / 419.2 MB, free: 5.227 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.835e-06/0.283, allocations: 0 / 419.2 MB, free: 5.227 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003439/0.2834, allocations: 236.1 kB / 419.4 MB, free: 4.984 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005596/0.2839, allocations: 92.55 kB / 419.5 MB, free: 4.898 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005275/0.2892, allocations: 4.022 MB / 423.6 MB, free: 0.6719 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004838/0.2897, allocations: 0.8442 MB / 424.4 MB, free: 15.8 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0002574/0.29, allocations: 83.56 kB / 424.5 MB, free: 15.72 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002305/0.2903, allocations: 167.3 kB / 424.6 MB, free: 15.55 MB / 350.1 MB Notification: Performance of SimCode: time 8.11e-07/0.2903, allocations: 0 / 424.6 MB, free: 15.55 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02951/0.3198, allocations: 10.08 MB / 434.7 MB, free: 5.594 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.165/8.485, allocations: 11.98 kB / 434.7 MB, free: 5.582 MB / 350.1 MB (rm -f Modelica_4.0.0_Modelica.Blocks.Examples.BooleanNetwork1.pipe ; mkfifo Modelica_4.0.0_Modelica.Blocks.Examples.BooleanNetwork1.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Blocks.Examples.BooleanNetwork1.pipe >> ../files/Modelica_4.0.0_Modelica.Blocks.Examples.BooleanNetwork1.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_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_4_0_0_Modelica_Blocks_Examples_BooleanNetwork1.fmu > Modelica_4.0.0_Modelica.Blocks.Examples.BooleanNetwork1.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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_4.0.0_Modelica.Blocks.Examples.BooleanNetwork1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches