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.001266/0.001266, allocations: 114.7 kB / 17.07 MB, free: 5.984 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.001204/0.001204, allocations: 193.4 kB / 18 MB, free: 5.066 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.407/1.407, allocations: 222.9 MB / 241.7 MB, free: 15.14 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001526/0.001526, allocations: 47.92 kB / 350.8 MB, free: 3.727 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2492/0.2507, allocations: 49.43 MB / 400.2 MB, free: 8.402 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.BooleanNetwork1): time 0.00466/0.2554, allocations: 2.453 MB / 402.7 MB, free: 6.34 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002675/0.2581, allocations: 1.329 MB / 404 MB, free: 5.008 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003348/0.2585, allocations: 11.94 kB / 404 MB, free: 4.996 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000925/0.2594, allocations: 233 kB / 404.3 MB, free: 4.77 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005243/0.26, allocations: 163.1 kB / 404.4 MB, free: 4.609 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008745/0.2609, allocations: 293.6 kB / 404.7 MB, free: 4.324 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.000672/0.2616, allocations: 483.7 kB / 405.2 MB, free: 3.848 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003447/0.2619, allocations: 201.8 kB / 405.4 MB, free: 3.641 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002511/0.2622, allocations: 195.2 kB / 405.6 MB, free: 3.449 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002653/0.2624, allocations: 219 kB / 405.8 MB, free: 3.234 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 6.648e-05/0.2625, allocations: 32 kB / 405.8 MB, free: 3.203 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002712/0.2628, allocations: 119.9 kB / 405.9 MB, free: 3.086 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001511/0.263, allocations: 127.6 kB / 406.1 MB, free: 2.961 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002338/0.2632, allocations: 214.7 kB / 406.3 MB, free: 2.75 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000738/0.2639, allocations: 0.5669 MB / 406.8 MB, free: 2.184 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.619e-06/0.264, allocations: 4 kB / 406.8 MB, free: 2.18 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.303e-06/0.264, allocations: 0 / 406.8 MB, free: 2.18 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.113e-06/0.264, allocations: 0 / 406.8 MB, free: 2.18 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.001436/0.2654, allocations: 0.8665 MB / 407.7 MB, free: 1.25 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.666e-05/0.2655, allocations: 12.03 kB / 407.7 MB, free: 1.238 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.328e-05/0.2656, allocations: 70.72 kB / 407.8 MB, free: 1.16 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000111/0.2657, allocations: 60.56 kB / 407.8 MB, free: 1.102 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000578/0.2663, allocations: 410.8 kB / 408.2 MB, free: 0.6602 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.425e-05/0.2664, allocations: 54.7 kB / 408.3 MB, free: 0.6016 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.084e-05/0.2664, allocations: 40 kB / 408.3 MB, free: 0.5625 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006891/0.2671, allocations: 432.6 kB / 408.8 MB, free: 100 kB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.411e-05/0.2671, allocations: 0 / 408.8 MB, free: 100 kB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.552e-05/0.2672, allocations: 19.98 kB / 408.8 MB, free: 80 kB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.757e-05/0.2672, allocations: 16.44 kB / 408.8 MB, free: 64 kB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005346/0.2678, allocations: 265.5 kB / 409.1 MB, free: 15.8 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00201/0.2698, allocations: 1.671 MB / 410.7 MB, free: 14.04 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006187/0.2704, allocations: 303.9 kB / 411 MB, free: 13.72 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000247/0.2707, allocations: 122.5 kB / 411.1 MB, free: 13.59 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.202e-05/0.2708, allocations: 16.05 kB / 411.2 MB, free: 13.57 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005146/0.2713, allocations: 332.9 kB / 411.5 MB, free: 13.21 MB / 334.1 MB Notification: Performance of pre-optimization done (n=37): time 2.004e-06/0.2713, allocations: 0 / 411.5 MB, free: 13.21 MB / 334.1 MB Notification: Performance of matching and sorting (n=37): time 0.001011/0.2723, allocations: 488.2 kB / 412 MB, free: 12.72 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001045/0.2724, allocations: 162.2 kB / 412.1 MB, free: 12.53 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005849/0.273, allocations: 0.4896 MB / 412.6 MB, free: 12.03 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 4.678e-05/0.2731, allocations: 37.7 kB / 412.6 MB, free: 11.98 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002044/0.2733, allocations: 236.9 kB / 412.9 MB, free: 11.75 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.698e-05/0.2734, allocations: 91.38 kB / 413 MB, free: 11.66 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001724/0.2736, allocations: 114.2 kB / 413.1 MB, free: 11.54 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001825/0.2737, allocations: 358.8 kB / 413.4 MB, free: 11.18 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002549/0.274, allocations: 113.1 kB / 413.5 MB, free: 11.07 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003801/0.2744, allocations: 270.7 kB / 413.8 MB, free: 10.75 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006036/0.275, allocations: 418.5 kB / 414.2 MB, free: 10.27 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.64e-06/0.275, allocations: 3.938 kB / 414.2 MB, free: 10.27 MB / 334.1 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.0008622/0.2759, allocations: 486.7 kB / 414.7 MB, free: 9.781 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.604e-05/0.276, allocations: 37.69 kB / 414.7 MB, free: 9.738 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.06e-05/0.276, allocations: 4 kB / 414.7 MB, free: 9.734 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.868e-05/0.276, allocations: 8 kB / 414.7 MB, free: 9.727 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001539/0.2762, allocations: 40.38 kB / 414.8 MB, free: 9.688 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.761e-05/0.2762, allocations: 19.88 kB / 414.8 MB, free: 9.668 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002511/0.2765, allocations: 55.66 kB / 414.8 MB, free: 9.613 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.667e-05/0.2765, allocations: 20 kB / 414.9 MB, free: 9.594 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.0003291/0.2769, allocations: 252.6 kB / 415.1 MB, free: 9.332 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.596e-05/0.2769, allocations: 52.03 kB / 415.2 MB, free: 9.281 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005544/0.2775, allocations: 265.2 kB / 415.4 MB, free: 9.02 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.492e-06/0.2775, allocations: 4 kB / 415.4 MB, free: 9.016 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.898e-06/0.2775, allocations: 3.938 kB / 415.4 MB, free: 9.012 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.785e-06/0.2776, allocations: 3.984 kB / 415.4 MB, free: 9.008 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001169/0.2787, allocations: 0.7755 MB / 416.2 MB, free: 8.172 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.779e-06/0.2787, allocations: 0 / 416.2 MB, free: 8.172 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.338e-05/0.2788, allocations: 23.81 kB / 416.2 MB, free: 8.148 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.099e-06/0.2788, allocations: 4 kB / 416.2 MB, free: 8.145 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.35e-05/0.2789, allocations: 11.98 kB / 416.3 MB, free: 8.133 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.194e-05/0.2789, allocations: 4 kB / 416.3 MB, free: 8.129 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.023e-06/0.2789, allocations: 0 / 416.3 MB, free: 8.129 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008011/0.2797, allocations: 0.5151 MB / 416.8 MB, free: 7.59 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001062/0.2798, allocations: 128.7 kB / 416.9 MB, free: 7.445 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.844e-05/0.2799, allocations: 12 kB / 416.9 MB, free: 7.434 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002112/0.2801, allocations: 23.97 kB / 416.9 MB, free: 7.41 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001233/0.2802, allocations: 43.95 kB / 417 MB, free: 7.367 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.883e-05/0.2803, allocations: 15.98 kB / 417 MB, free: 7.352 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0003796/0.2807, allocations: 319.1 kB / 417.3 MB, free: 7.039 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.2807, allocations: 0 / 417.3 MB, free: 7.039 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0005255/0.2812, 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.002654/0.2839, allocations: 1.409 MB / 418.8 MB, free: 5.625 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0008127/0.2847, allocations: 391 kB / 419.2 MB, free: 5.23 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.737e-06/0.2847, allocations: 0 / 419.2 MB, free: 5.23 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003725/0.2851, allocations: 236.3 kB / 419.4 MB, free: 4.988 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005811/0.2857, allocations: 92.41 kB / 419.5 MB, free: 4.902 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0056/0.2913, allocations: 4.03 MB / 423.6 MB, free: 0.668 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000525/0.2919, allocations: 0.8364 MB / 424.4 MB, free: 15.81 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0002616/0.2921, allocations: 83.55 kB / 424.5 MB, free: 15.72 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002544/0.2924, allocations: 171.3 kB / 424.7 MB, free: 15.55 MB / 350.1 MB Notification: Performance of SimCode: time 8.62e-07/0.2924, allocations: 0 / 424.7 MB, free: 15.55 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03411/0.3265, allocations: 10.07 MB / 434.7 MB, free: 5.602 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.726/9.052, allocations: 3.984 kB / 434.7 MB, free: 5.598 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Blocks.Examples.BooleanNetwork1_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Blocks_Examples_BooleanNetwork1_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 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.mat","/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