Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Blocks.Examples.BooleanNetwork1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001638/0.001638, allocations: 111.1 kB / 20.44 MB, free: 1.176 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002004/0.002004, allocations: 210.3 kB / 23.73 MB, free: 4.379 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.409/1.409, allocations: 230.6 MB / 257.5 MB, free: 7.797 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Blocks.Examples.BooleanNetwork1,fileNamePrefix="Modelica_4_1_0_Modelica_Blocks_Examples_BooleanNetwork1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.BooleanNetwork1,fileNamePrefix="Modelica_4_1_0_Modelica_Blocks_Examples_BooleanNetwork1",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001503/0.001503, allocations: 43.92 kB / 377.7 MB, free: 2.934 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2516/0.2531, allocations: 53.36 MB / 431.1 MB, free: 6.625 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.BooleanNetwork1): time 0.00423/0.2573, allocations: 2.406 MB / 433.5 MB, free: 4.215 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002643/0.2599, allocations: 1.426 MB / 434.9 MB, free: 2.781 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001754/0.2601, allocations: 11.94 kB / 434.9 MB, free: 2.77 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000804/0.2609, allocations: 246.9 kB / 435.2 MB, free: 2.527 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005017/0.2614, allocations: 211 kB / 435.4 MB, free: 2.32 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006428/0.2621, allocations: 267.3 kB / 435.6 MB, free: 2.059 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006386/0.2627, allocations: 487.6 kB / 436.1 MB, free: 1.582 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002917/0.263, allocations: 154.1 kB / 436.3 MB, free: 1.426 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002412/0.2632, allocations: 199.2 kB / 436.4 MB, free: 1.23 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002773/0.2635, allocations: 227 kB / 436.7 MB, free: 1.008 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.861e-05/0.2636, allocations: 36 kB / 436.7 MB, free: 0.9727 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002384/0.2638, allocations: 123.9 kB / 436.8 MB, free: 0.8516 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001593/0.264, allocations: 131.5 kB / 437 MB, free: 0.7227 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001812/0.2642, allocations: 167 kB / 437.1 MB, free: 0.5586 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000694/0.2648, allocations: 0.5696 MB / 437.7 MB, free: 15.99 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.338e-06/0.2649, allocations: 3.938 kB / 437.7 MB, free: 15.98 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.323e-06/0.2649, allocations: 4 kB / 437.7 MB, free: 15.98 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.288e-06/0.2649, allocations: 0 / 437.7 MB, free: 15.98 MB / 350.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.001506/0.2664, allocations: 0.7988 MB / 438.5 MB, free: 15.14 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.752e-05/0.2664, allocations: 8.031 kB / 438.5 MB, free: 15.13 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.816e-05/0.2665, allocations: 74.72 kB / 438.6 MB, free: 15.05 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002936/0.2668, allocations: 68.55 kB / 438.6 MB, free: 14.98 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005762/0.2674, allocations: 332.5 kB / 439 MB, free: 14.63 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.842e-05/0.2675, allocations: 88.72 kB / 439.1 MB, free: 14.53 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.024e-05/0.2675, allocations: 36 kB / 439.1 MB, free: 14.5 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007277/0.2683, allocations: 453.5 kB / 439.5 MB, free: 14.01 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.513e-05/0.2683, allocations: 4 kB / 439.5 MB, free: 14.01 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.561e-05/0.2683, allocations: 16 kB / 439.6 MB, free: 13.99 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.329e-05/0.2683, allocations: 12.44 kB / 439.6 MB, free: 13.98 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005087/0.2689, allocations: 295.2 kB / 439.9 MB, free: 13.68 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002056/0.2709, allocations: 1.57 MB / 441.4 MB, free: 12.04 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000606/0.2715, allocations: 305.5 kB / 441.7 MB, free: 11.7 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002534/0.2718, allocations: 148.2 kB / 441.9 MB, free: 11.54 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.144e-05/0.2718, allocations: 4 kB / 441.9 MB, free: 11.54 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000549/0.2724, allocations: 355 kB / 442.2 MB, free: 11.15 MB / 350.1 MB Notification: Performance of pre-optimization done (n=37): time 2.054e-06/0.2724, allocations: 3.938 kB / 442.2 MB, free: 11.14 MB / 350.1 MB Notification: Performance of matching and sorting (n=37): time 0.001044/0.2734, allocations: 0.5272 MB / 442.7 MB, free: 10.59 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001069/0.2735, allocations: 144.5 kB / 442.9 MB, free: 10.42 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006207/0.2741, allocations: 0.4935 MB / 443.4 MB, free: 9.918 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.73e-05/0.2742, allocations: 45.69 kB / 443.4 MB, free: 9.867 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002112/0.2744, allocations: 236.9 kB / 443.7 MB, free: 9.633 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.19e-05/0.2745, allocations: 95.3 kB / 443.7 MB, free: 9.539 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001557/0.2746, allocations: 114.2 kB / 443.9 MB, free: 9.422 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001997/0.2748, allocations: 358.7 kB / 444.2 MB, free: 9.062 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002593/0.2751, allocations: 146.6 kB / 444.4 MB, free: 8.91 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003859/0.2755, allocations: 315.6 kB / 444.7 MB, free: 8.535 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005524/0.276, allocations: 406.6 kB / 445.1 MB, free: 8.07 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.035e-06/0.276, allocations: 4 kB / 445.1 MB, free: 8.066 MB / 350.1 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.0007782/0.2768, allocations: 496.2 kB / 445.5 MB, free: 7.562 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.553e-05/0.2769, allocations: 38.17 kB / 445.6 MB, free: 7.52 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.906e-06/0.2769, allocations: 11.94 kB / 445.6 MB, free: 7.508 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.043e-05/0.2769, allocations: 4 kB / 445.6 MB, free: 7.504 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001421/0.277, allocations: 43.91 kB / 445.6 MB, free: 7.461 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.252e-05/0.2771, allocations: 7.938 kB / 445.7 MB, free: 7.453 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002259/0.2773, allocations: 51.72 kB / 445.7 MB, free: 7.402 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.712e-05/0.2773, allocations: 19.98 kB / 445.7 MB, free: 7.383 MB / 350.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.0002728/0.2776, allocations: 256.7 kB / 446 MB, free: 7.117 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.732e-05/0.2777, allocations: 51.7 kB / 446 MB, free: 7.066 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007442/0.2784, allocations: 420.5 kB / 446.4 MB, free: 6.641 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.815e-06/0.2784, allocations: 4 kB / 446.4 MB, free: 6.637 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.521e-06/0.2784, allocations: 0 / 446.4 MB, free: 6.637 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.135e-06/0.2784, allocations: 3.984 kB / 446.4 MB, free: 6.633 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001063/0.2795, allocations: 0.6826 MB / 447.1 MB, free: 5.898 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.295e-06/0.2795, allocations: 0 / 447.1 MB, free: 5.898 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.807e-05/0.2796, allocations: 24.05 kB / 447.1 MB, free: 5.875 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.136e-06/0.2796, allocations: 4 kB / 447.2 MB, free: 5.871 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.006e-05/0.2796, allocations: 12 kB / 447.2 MB, free: 5.859 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.305e-06/0.2796, allocations: 3.938 kB / 447.2 MB, free: 5.855 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.456e-06/0.2796, allocations: 3.984 kB / 447.2 MB, free: 5.852 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007344/0.2803, allocations: 0.5241 MB / 447.7 MB, free: 5.293 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.93e-05/0.2804, allocations: 47.66 kB / 447.7 MB, free: 5.246 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.267e-05/0.2805, allocations: 12 kB / 447.8 MB, free: 5.234 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000202/0.2807, allocations: 23.97 kB / 447.8 MB, free: 5.211 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001128/0.2808, allocations: 55.75 kB / 447.8 MB, free: 5.156 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.354e-05/0.2808, allocations: 19.98 kB / 447.9 MB, free: 5.137 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0003563/0.2812, allocations: 335.1 kB / 448.2 MB, free: 4.809 MB / 350.1 MB Notification: Performance of sort global known variables: time 1e-07/0.2812, allocations: 96 / 448.2 MB, free: 4.809 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004445/0.2816, allocations: 111.7 kB / 448.3 MB, free: 4.699 MB / 350.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,onDelay.t_next,onDelay.delaySignal,$whenCondition3,$whenCondition2,booleanTable.combiTimeTable.nextTimeEvent,booleanTable.combiTimeTable.nextTimeEventScaled,rSFlipFlop.pre.u) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (35): * Single equations (assignments): 29 * 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.00257/0.2842, allocations: 1.436 MB / 449.7 MB, free: 3.41 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0007177/0.2849, allocations: 442.2 kB / 450.2 MB, free: 2.953 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.615e-06/0.2849, allocations: 0 / 450.2 MB, free: 2.953 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003474/0.2853, allocations: 239 kB / 450.4 MB, free: 2.703 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000565/0.2858, allocations: 84.22 kB / 450.5 MB, free: 2.625 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005355/0.2912, allocations: 4.182 MB / 454.7 MB, free: 14.2 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002475/0.2914, allocations: 242.6 kB / 454.9 MB, free: 13.94 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002095/0.2916, allocations: 79.64 kB / 455 MB, free: 13.86 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002376/0.2919, allocations: 159.4 kB / 455.1 MB, free: 13.7 MB / 366.1 MB Notification: Performance of SimCode: time 4.51e-07/0.2919, allocations: 0 / 455.1 MB, free: 13.7 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0567/0.3486, allocations: 10.89 MB / 466 MB, free: 2.922 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.07/11.42, allocations: 11.05 kB / 466 MB, free: 2.914 MB / 366.1 MB " [Timeout remaining time 648] (rm -f Modelica_4.1.0_Modelica.Blocks.Examples.BooleanNetwork1.pipe ; mkfifo Modelica_4.1.0_Modelica.Blocks.Examples.BooleanNetwork1.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Blocks.Examples.BooleanNetwork1.pipe >> ../files/Modelica_4.1.0_Modelica.Blocks.Examples.BooleanNetwork1.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Blocks.Examples.BooleanNetwork1_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Blocks_Examples_BooleanNetwork1_fmu --startTime=0 --stopTime=10 --stepSize=0.00197981 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Blocks_Examples_BooleanNetwork1.fmu > Modelica_4.1.0_Modelica.Blocks.Examples.BooleanNetwork1.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Blocks.Examples.BooleanNetwork1_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Blocks/Examples/BooleanNetwork1/BooleanNetwork1.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Blocks.Examples.BooleanNetwork1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 13.941334576986264]