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.001371/0.001371, allocations: 109.2 kB / 17.06 MB, free: 6.016 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.00133/0.00133, allocations: 192 kB / 18 MB, free: 5.102 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.395/1.395, allocations: 222.9 MB / 241.7 MB, free: 15.14 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001458/0.001459, allocations: 43.92 kB / 350.8 MB, free: 3.742 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2627/0.2642, allocations: 49.45 MB / 400.2 MB, free: 8.418 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.BooleanNetwork1): time 0.004288/0.2685, allocations: 2.446 MB / 402.7 MB, free: 6.336 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002566/0.2711, allocations: 1.325 MB / 404 MB, free: 5.008 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002262/0.2713, allocations: 11.94 kB / 404 MB, free: 4.996 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007992/0.2722, allocations: 237 kB / 404.3 MB, free: 4.766 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004009/0.2726, allocations: 163.2 kB / 404.4 MB, free: 4.605 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007369/0.2733, allocations: 293.5 kB / 404.7 MB, free: 4.32 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005833/0.2739, allocations: 491.7 kB / 405.2 MB, free: 3.836 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003407/0.2743, allocations: 201.8 kB / 405.4 MB, free: 3.629 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002502/0.2745, allocations: 195.2 kB / 405.6 MB, free: 3.438 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002635/0.2748, allocations: 211 kB / 405.8 MB, free: 3.23 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 7.685e-05/0.2749, allocations: 36 kB / 405.8 MB, free: 3.195 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002601/0.2751, allocations: 119.9 kB / 405.9 MB, free: 3.078 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001488/0.2753, allocations: 127.6 kB / 406.1 MB, free: 2.953 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00023/0.2755, allocations: 222.6 kB / 406.3 MB, free: 2.734 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007742/0.2763, allocations: 0.5592 MB / 406.8 MB, free: 2.176 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.407e-06/0.2763, allocations: 0 / 406.8 MB, free: 2.176 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.413e-06/0.2763, allocations: 0 / 406.8 MB, free: 2.176 MB / 318.1 MB Notification: Performance of Transformations before backend: time 9.158e-06/0.2764, 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.001441/0.2778, allocations: 0.8703 MB / 407.7 MB, free: 1.242 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.867e-05/0.2779, allocations: 12.03 kB / 407.7 MB, free: 1.23 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.936e-05/0.2779, allocations: 74.72 kB / 407.8 MB, free: 1.148 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001076/0.2781, allocations: 60.56 kB / 407.8 MB, free: 1.09 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000563/0.2786, allocations: 406.8 kB / 408.2 MB, free: 0.6523 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.422e-05/0.2787, allocations: 58.7 kB / 408.3 MB, free: 0.5898 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.09e-05/0.2788, allocations: 39.94 kB / 408.3 MB, free: 0.5508 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007121/0.2795, allocations: 432.7 kB / 408.8 MB, free: 88 kB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.423e-05/0.2795, allocations: 0 / 408.8 MB, free: 88 kB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.286e-05/0.2796, allocations: 16 kB / 408.8 MB, free: 72 kB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.695e-05/0.2796, allocations: 12.44 kB / 408.8 MB, free: 60 kB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005165/0.2801, allocations: 273.5 kB / 409.1 MB, free: 15.79 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002017/0.2821, allocations: 1.671 MB / 410.7 MB, free: 14.04 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006188/0.2828, allocations: 292 kB / 411 MB, free: 13.72 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002527/0.283, allocations: 126.5 kB / 411.1 MB, free: 13.59 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.737e-05/0.2831, allocations: 16 kB / 411.2 MB, free: 13.57 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005334/0.2837, allocations: 333 kB / 411.5 MB, free: 13.21 MB / 334.1 MB Notification: Performance of pre-optimization done (n=37): time 4.148e-06/0.2837, allocations: 0 / 411.5 MB, free: 13.21 MB / 334.1 MB Notification: Performance of matching and sorting (n=37): time 0.001011/0.2847, allocations: 489.1 kB / 412 MB, free: 12.72 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001161/0.2848, allocations: 166.2 kB / 412.1 MB, free: 12.52 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005746/0.2854, allocations: 493.4 kB / 412.6 MB, free: 12.03 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 4.667e-05/0.2854, allocations: 41.7 kB / 412.6 MB, free: 11.98 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002044/0.2857, allocations: 232.9 kB / 412.9 MB, free: 11.75 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.411e-05/0.2858, allocations: 91.38 kB / 413 MB, free: 11.66 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000162/0.2859, allocations: 118.2 kB / 413.1 MB, free: 11.54 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001887/0.2861, allocations: 358.8 kB / 413.4 MB, free: 11.18 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002439/0.2864, allocations: 109.1 kB / 413.5 MB, free: 11.07 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003832/0.2868, allocations: 274.6 kB / 413.8 MB, free: 10.75 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006191/0.2874, allocations: 422.8 kB / 414.2 MB, free: 10.27 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.196e-06/0.2874, allocations: 0 / 414.2 MB, free: 10.27 MB / 334.1 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.0008156/0.2882, allocations: 486.5 kB / 414.7 MB, free: 9.777 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.351e-05/0.2883, allocations: 33.7 kB / 414.7 MB, free: 9.738 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.546e-06/0.2883, allocations: 4 kB / 414.7 MB, free: 9.734 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.963e-05/0.2883, allocations: 8.469 kB / 414.7 MB, free: 9.727 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001512/0.2885, allocations: 51.84 kB / 414.8 MB, free: 9.676 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.238e-05/0.2885, allocations: 7.938 kB / 414.8 MB, free: 9.668 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002452/0.2888, allocations: 59.64 kB / 414.8 MB, free: 9.609 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.515e-05/0.2888, allocations: 24.16 kB / 414.9 MB, free: 9.586 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.0002847/0.2891, allocations: 248.6 kB / 415.1 MB, free: 9.328 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.541e-05/0.2892, allocations: 47.7 kB / 415.2 MB, free: 9.281 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005123/0.2897, allocations: 272.9 kB / 415.4 MB, free: 9.016 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.212e-06/0.2897, allocations: 4 kB / 415.4 MB, free: 9.012 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.608e-06/0.2897, allocations: 7.938 kB / 415.4 MB, free: 9.004 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.27e-06/0.2897, allocations: 0 / 415.4 MB, free: 9.004 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001144/0.2909, allocations: 0.7716 MB / 416.2 MB, free: 8.172 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.695e-06/0.2909, allocations: 7.875 kB / 416.2 MB, free: 8.164 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.14e-05/0.291, allocations: 23.92 kB / 416.2 MB, free: 8.141 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.337e-06/0.291, allocations: 0 / 416.2 MB, free: 8.141 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.876e-05/0.291, allocations: 12 kB / 416.3 MB, free: 8.129 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.588e-06/0.291, allocations: 3.984 kB / 416.3 MB, free: 8.125 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.382e-06/0.291, allocations: 3.938 kB / 416.3 MB, free: 8.121 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007626/0.2918, allocations: 0.5136 MB / 416.8 MB, free: 7.582 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000105/0.2919, allocations: 120.7 kB / 416.9 MB, free: 7.445 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.718e-05/0.292, allocations: 19.98 kB / 416.9 MB, free: 7.426 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000201/0.2922, allocations: 19.98 kB / 416.9 MB, free: 7.406 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001108/0.2923, allocations: 35.95 kB / 417 MB, free: 7.371 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.712e-05/0.2924, allocations: 15.98 kB / 417 MB, free: 7.355 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0003862/0.2928, allocations: 323.1 kB / 417.3 MB, free: 7.039 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.2928, allocations: 0 / 417.3 MB, free: 7.039 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0004828/0.2933, allocations: 127.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.002576/0.2958, allocations: 1.414 MB / 418.8 MB, free: 5.617 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.000762/0.2966, allocations: 391 kB / 419.2 MB, free: 5.223 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.324e-06/0.2966, allocations: 0 / 419.2 MB, free: 5.223 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003705/0.297, allocations: 243 kB / 419.5 MB, free: 4.977 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005559/0.2976, allocations: 81.77 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.005842/0.3034, allocations: 4.026 MB / 423.6 MB, free: 0.668 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005451/0.304, allocations: 0.8403 MB / 424.4 MB, free: 15.8 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0002375/0.3043, allocations: 83.48 kB / 424.5 MB, free: 15.72 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002459/0.3045, allocations: 163.4 kB / 424.6 MB, free: 15.56 MB / 350.1 MB Notification: Performance of SimCode: time 6.91e-07/0.3045, allocations: 0 / 424.6 MB, free: 15.56 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03513/0.3396, allocations: 10.08 MB / 434.7 MB, free: 5.602 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.53/8.87, allocations: 11.98 kB / 434.7 MB, free: 5.59 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