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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001697/0.001697, allocations: 103.5 kB / 20.43 MB, free: 1.199 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001949/0.001949, allocations: 192.2 kB / 23.71 MB, free: 4.426 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.384/1.384, allocations: 225.7 MB / 252.5 MB, free: 12.82 MB / 206.1 MB " [Timeout remaining time 178] 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"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001505/0.001505, allocations: 48.08 kB / 370.4 MB, free: 9.684 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2345/0.236, allocations: 52.18 MB / 422.6 MB, free: 14.52 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.BooleanNetwork1): time 0.004082/0.2401, allocations: 2.374 MB / 424.9 MB, free: 12.13 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002263/0.2423, allocations: 1.29 MB / 426.2 MB, free: 10.84 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001526/0.2425, allocations: 11.88 kB / 426.3 MB, free: 10.83 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007082/0.2432, allocations: 235 kB / 426.5 MB, free: 10.6 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003785/0.2436, allocations: 167.2 kB / 426.6 MB, free: 10.43 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000669/0.2442, allocations: 305.3 kB / 426.9 MB, free: 10.14 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005133/0.2447, allocations: 483.7 kB / 427.4 MB, free: 9.668 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002903/0.245, allocations: 142.1 kB / 427.6 MB, free: 9.523 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002286/0.2453, allocations: 203.1 kB / 427.8 MB, free: 9.324 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002459/0.2455, allocations: 199 kB / 427.9 MB, free: 9.129 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.848e-05/0.2456, allocations: 36 kB / 428 MB, free: 9.094 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002467/0.2458, allocations: 131.9 kB / 428.1 MB, free: 8.965 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000137/0.2459, allocations: 123.6 kB / 428.2 MB, free: 8.844 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001748/0.2461, allocations: 171 kB / 428.4 MB, free: 8.676 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006577/0.2468, allocations: 0.5695 MB / 429 MB, free: 8.105 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.256e-06/0.2468, allocations: 0 / 429 MB, free: 8.105 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.202e-06/0.2468, allocations: 0 / 429 MB, free: 8.105 MB / 334.1 MB Notification: Performance of Transformations before backend: time 8.126e-06/0.2468, allocations: 4 kB / 429 MB, free: 8.102 MB / 334.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.001323/0.2481, allocations: 0.7872 MB / 429.8 MB, free: 7.27 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.39e-05/0.2482, allocations: 8.031 kB / 429.8 MB, free: 7.262 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.68e-05/0.2482, allocations: 78.72 kB / 429.8 MB, free: 7.176 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001086/0.2483, allocations: 60.56 kB / 429.9 MB, free: 7.117 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005424/0.2489, allocations: 328.1 kB / 430.2 MB, free: 6.77 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.117e-05/0.249, allocations: 88.34 kB / 430.3 MB, free: 6.672 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.039e-05/0.249, allocations: 43.98 kB / 430.4 MB, free: 6.629 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006827/0.2497, allocations: 453.5 kB / 430.8 MB, free: 6.145 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.324e-05/0.2497, allocations: 0 / 430.8 MB, free: 6.145 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.385e-05/0.2498, allocations: 15.98 kB / 430.8 MB, free: 6.129 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.492e-05/0.2498, allocations: 12.44 kB / 430.8 MB, free: 6.117 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005164/0.2503, allocations: 299.2 kB / 431.1 MB, free: 5.816 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00195/0.2523, allocations: 1.562 MB / 432.7 MB, free: 4.176 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006114/0.2529, allocations: 305.7 kB / 433 MB, free: 3.844 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002445/0.2531, allocations: 148.2 kB / 433.1 MB, free: 3.684 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.284e-05/0.2532, allocations: 12 kB / 433.1 MB, free: 3.672 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005117/0.2537, allocations: 358.3 kB / 433.5 MB, free: 3.277 MB / 334.1 MB Notification: Performance of pre-optimization done (n=37): time 1.763e-06/0.2537, allocations: 0 / 433.5 MB, free: 3.277 MB / 334.1 MB Notification: Performance of matching and sorting (n=37): time 0.001088/0.2548, allocations: 0.5387 MB / 434 MB, free: 2.715 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.504e-05/0.2549, allocations: 144.5 kB / 434.2 MB, free: 2.543 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005726/0.2554, allocations: 0.4934 MB / 434.7 MB, free: 2.039 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 4.577e-05/0.2555, allocations: 37.7 kB / 434.7 MB, free: 1.996 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001916/0.2557, allocations: 237 kB / 434.9 MB, free: 1.762 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.677e-05/0.2558, allocations: 91.36 kB / 435 MB, free: 1.672 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001599/0.2559, allocations: 118.1 kB / 435.1 MB, free: 1.551 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001846/0.2561, allocations: 358.8 kB / 435.5 MB, free: 1.191 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002542/0.2564, allocations: 146.6 kB / 435.6 MB, free: 1.043 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000394/0.2567, allocations: 323.8 kB / 435.9 MB, free: 0.6562 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005816/0.2573, allocations: 422.6 kB / 436.3 MB, free: 180 kB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.276e-06/0.2573, allocations: 0 / 436.3 MB, free: 180 kB / 334.1 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.0008499/0.2582, allocations: 0.5042 MB / 436.9 MB, free: 15.65 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.401e-05/0.2582, allocations: 37.69 kB / 436.9 MB, free: 15.61 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.536e-06/0.2582, allocations: 4.469 kB / 436.9 MB, free: 15.6 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.182e-05/0.2583, allocations: 12 kB / 436.9 MB, free: 15.59 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000141/0.2584, allocations: 43.84 kB / 436.9 MB, free: 15.55 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.306e-05/0.2584, allocations: 11.94 kB / 437 MB, free: 15.54 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002307/0.2586, allocations: 51.72 kB / 437 MB, free: 15.48 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.284e-05/0.2587, allocations: 20 kB / 437 MB, free: 15.46 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.0002859/0.259, allocations: 257 kB / 437.3 MB, free: 15.2 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.281e-05/0.259, allocations: 47.72 kB / 437.3 MB, free: 15.15 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008043/0.2598, allocations: 456.6 kB / 437.8 MB, free: 14.69 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.712e-06/0.2599, allocations: 4 kB / 437.8 MB, free: 14.68 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.301e-06/0.2599, allocations: 3.938 kB / 437.8 MB, free: 14.68 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.953e-06/0.2599, allocations: 3.984 kB / 437.8 MB, free: 14.68 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001085/0.261, allocations: 0.7043 MB / 438.5 MB, free: 13.92 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.575e-06/0.261, allocations: 0 / 438.5 MB, free: 13.92 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.726e-05/0.261, allocations: 27.86 kB / 438.5 MB, free: 13.89 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.186e-06/0.261, allocations: 4 kB / 438.5 MB, free: 13.89 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.941e-05/0.2611, allocations: 12 kB / 438.5 MB, free: 13.88 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.224e-06/0.2611, allocations: 0 / 438.5 MB, free: 13.88 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.339e-06/0.2611, allocations: 3.984 kB / 438.5 MB, free: 13.88 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007654/0.2618, allocations: 0.5485 MB / 439.1 MB, free: 13.3 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.398e-05/0.2619, allocations: 55.45 kB / 439.1 MB, free: 13.24 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.3e-05/0.262, allocations: 16 kB / 439.2 MB, free: 13.23 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002021/0.2622, allocations: 27.97 kB / 439.2 MB, free: 13.2 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001076/0.2623, allocations: 39.94 kB / 439.2 MB, free: 13.16 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.112e-05/0.2623, allocations: 16 kB / 439.2 MB, free: 13.14 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0003542/0.2627, allocations: 327.1 kB / 439.6 MB, free: 12.82 MB / 350.1 MB Notification: Performance of sort global known variables: time 8.1e-08/0.2627, allocations: 0 / 439.6 MB, free: 12.82 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004625/0.2631, allocations: 119.8 kB / 439.7 MB, free: 12.71 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: 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,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 (37): * Single equations (assignments): 31 * 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.00272/0.2658, allocations: 1.468 MB / 441.1 MB, free: 11.38 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0007416/0.2666, allocations: 434.4 kB / 441.6 MB, free: 10.93 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.723e-06/0.2666, allocations: 0 / 441.6 MB, free: 10.93 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00036/0.2669, allocations: 241 kB / 441.8 MB, free: 10.68 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000537/0.2675, allocations: 88.31 kB / 441.9 MB, free: 10.6 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00585/0.2733, allocations: 4.186 MB / 446.1 MB, free: 6.184 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002559/0.2736, allocations: 248.9 kB / 446.3 MB, free: 5.918 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0002221/0.2738, allocations: 79.53 kB / 446.4 MB, free: 5.84 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002447/0.2741, allocations: 163.4 kB / 446.6 MB, free: 5.68 MB / 350.1 MB Notification: Performance of SimCode: time 1.223e-06/0.2741, allocations: 0 / 446.6 MB, free: 5.68 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04079/0.3148, allocations: 11.08 MB / 457.6 MB, free: 10.69 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.94/11.26, allocations: 6.344 kB / 457.6 MB, free: 10.69 MB / 366.1 MB " [Timeout remaining time 649] (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 --stepSize=0.00197981 --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) [Timeout 52.5] 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) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 13.761680761352181]