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.001997/0.001997, allocations: 113.2 kB / 20.43 MB, free: 1.449 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.002106/0.002106, allocations: 212.8 kB / 23.74 MB, free: 4.656 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.492/1.492, allocations: 230.6 MB / 257.5 MB, free: 8.031 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.001667/0.001667, allocations: 51.91 kB / 377.8 MB, free: 3.148 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2409/0.2425, allocations: 53.37 MB / 431.1 MB, free: 6.863 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.BooleanNetwork1): time 0.004555/0.2471, allocations: 2.507 MB / 433.7 MB, free: 4.352 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003105/0.2502, allocations: 1.5 MB / 435.2 MB, free: 2.844 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003235/0.2505, allocations: 15.88 kB / 435.2 MB, free: 2.828 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00101/0.2515, allocations: 258.8 kB / 435.4 MB, free: 2.574 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006606/0.2522, allocations: 203 kB / 435.6 MB, free: 2.375 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008351/0.253, allocations: 275.3 kB / 435.9 MB, free: 2.105 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008085/0.2538, allocations: 479.7 kB / 436.4 MB, free: 1.637 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003728/0.2542, allocations: 154.1 kB / 436.5 MB, free: 1.48 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003385/0.2545, allocations: 191.3 kB / 436.7 MB, free: 1.293 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003663/0.2549, allocations: 234.9 kB / 436.9 MB, free: 1.062 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 9.639e-05/0.255, allocations: 36 kB / 437 MB, free: 1.027 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003295/0.2553, allocations: 135.8 kB / 437.1 MB, free: 0.8945 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001648/0.2555, allocations: 127.6 kB / 437.2 MB, free: 0.7695 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000251/0.2557, allocations: 218.6 kB / 437.4 MB, free: 0.5547 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009185/0.2567, allocations: 0.5735 MB / 438 MB, free: 15.98 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.338e-06/0.2567, allocations: 0 / 438 MB, free: 15.98 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.463e-06/0.2567, allocations: 3.938 kB / 438 MB, free: 15.97 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.804e-05/0.2567, allocations: 0 / 438 MB, free: 15.97 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.001834/0.2585, allocations: 0.7988 MB / 438.8 MB, free: 15.13 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.465e-05/0.2586, allocations: 12.03 kB / 438.8 MB, free: 15.12 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.972e-05/0.2587, allocations: 70.72 kB / 438.9 MB, free: 15.04 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003671/0.259, allocations: 72.55 kB / 439 MB, free: 14.97 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006554/0.2597, allocations: 341.4 kB / 439.3 MB, free: 14.61 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001004/0.2598, allocations: 92.7 kB / 439.4 MB, free: 14.51 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.502e-05/0.2599, allocations: 40 kB / 439.4 MB, free: 14.47 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007545/0.2606, allocations: 420.7 kB / 439.8 MB, free: 14.02 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.86e-05/0.2606, allocations: 4 kB / 439.8 MB, free: 14.02 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.8e-05/0.2607, allocations: 19.98 kB / 439.9 MB, free: 14 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.421e-05/0.2607, allocations: 12.44 kB / 439.9 MB, free: 13.99 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005603/0.2613, allocations: 257.5 kB / 440.1 MB, free: 13.73 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002374/0.2636, allocations: 1.632 MB / 441.7 MB, free: 12.02 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000619/0.2643, allocations: 275.8 kB / 442 MB, free: 11.73 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002458/0.2645, allocations: 114.5 kB / 442.1 MB, free: 11.61 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.687e-05/0.2646, allocations: 8 kB / 442.1 MB, free: 11.6 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005933/0.2652, allocations: 325.3 kB / 442.5 MB, free: 11.24 MB / 350.1 MB Notification: Performance of pre-optimization done (n=37): time 1.964e-06/0.2652, allocations: 0 / 442.5 MB, free: 11.24 MB / 350.1 MB Notification: Performance of matching and sorting (n=37): time 0.00107/0.2662, allocations: 474.7 kB / 442.9 MB, free: 10.77 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000126/0.2664, allocations: 166.2 kB / 443.1 MB, free: 10.57 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007368/0.2671, allocations: 497.4 kB / 443.6 MB, free: 10.07 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.448e-05/0.2672, allocations: 45.7 kB / 443.6 MB, free: 10.02 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002269/0.2674, allocations: 240.9 kB / 443.8 MB, free: 9.781 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001027/0.2675, allocations: 87.36 kB / 443.9 MB, free: 9.695 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001952/0.2677, allocations: 118.1 kB / 444 MB, free: 9.574 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002121/0.2679, allocations: 362.7 kB / 444.4 MB, free: 9.211 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000279/0.2682, allocations: 112.9 kB / 444.5 MB, free: 9.098 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003968/0.2686, allocations: 266 kB / 444.8 MB, free: 8.777 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006282/0.2692, allocations: 414.7 kB / 445.2 MB, free: 8.305 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.759e-06/0.2692, allocations: 4 kB / 445.2 MB, free: 8.301 MB / 350.1 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.0008629/0.2701, allocations: 458.6 kB / 445.6 MB, free: 7.84 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.598e-05/0.2701, allocations: 38.16 kB / 445.7 MB, free: 7.797 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.004e-05/0.2701, allocations: 8 kB / 445.7 MB, free: 7.789 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.689e-05/0.2701, allocations: 4 kB / 445.7 MB, free: 7.785 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000151/0.2703, allocations: 47.84 kB / 445.7 MB, free: 7.738 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.399e-05/0.2703, allocations: 8.156 kB / 445.7 MB, free: 7.73 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002816/0.2706, allocations: 63.58 kB / 445.8 MB, free: 7.668 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.938e-05/0.2706, allocations: 20 kB / 445.8 MB, free: 7.648 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.0003117/0.2709, allocations: 256.5 kB / 446.1 MB, free: 7.383 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.349e-05/0.271, allocations: 47.67 kB / 446.1 MB, free: 7.336 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007562/0.2718, allocations: 388.4 kB / 446.5 MB, free: 6.949 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.973e-06/0.2718, allocations: 4 kB / 446.5 MB, free: 6.945 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.909e-06/0.2718, allocations: 0 / 446.5 MB, free: 6.945 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.925e-06/0.2718, allocations: 4 kB / 446.5 MB, free: 6.941 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001194/0.273, allocations: 0.72 MB / 447.2 MB, free: 6.168 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.737e-06/0.273, allocations: 0 / 447.2 MB, free: 6.168 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.482e-05/0.2731, allocations: 15.92 kB / 447.2 MB, free: 6.152 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.762e-06/0.2731, allocations: 4.062 kB / 447.2 MB, free: 6.148 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.98e-05/0.2731, allocations: 12 kB / 447.2 MB, free: 6.137 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.33e-06/0.2731, allocations: 3.984 kB / 447.3 MB, free: 6.133 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.707e-06/0.2731, allocations: 4 kB / 447.3 MB, free: 6.129 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008263/0.2739, allocations: 0.4955 MB / 447.8 MB, free: 5.609 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.056e-05/0.274, allocations: 47.64 kB / 447.8 MB, free: 5.562 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.272e-05/0.2741, allocations: 12 kB / 447.8 MB, free: 5.551 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002215/0.2743, allocations: 19.98 kB / 447.8 MB, free: 5.531 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001465/0.2745, allocations: 47.86 kB / 447.9 MB, free: 5.484 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.166e-05/0.2745, allocations: 16 kB / 447.9 MB, free: 5.469 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0004118/0.2749, allocations: 335.1 kB / 448.2 MB, free: 5.141 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.2749, allocations: 0 / 448.2 MB, free: 5.141 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005172/0.2754, allocations: 111.8 kB / 448.3 MB, free: 5.031 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 (34): * Single equations (assignments): 28 * 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.002804/0.2782, allocations: 1.385 MB / 449.7 MB, free: 3.77 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0008107/0.2791, allocations: 359.6 kB / 450.1 MB, free: 3.406 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 5.32e-06/0.2791, allocations: 8.25 kB / 450.1 MB, free: 3.398 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003519/0.2794, allocations: 199.2 kB / 450.3 MB, free: 3.191 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005824/0.28, allocations: 77.08 kB / 450.3 MB, free: 3.121 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00619/0.2862, allocations: 4.032 MB / 454.4 MB, free: 14.88 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005727/0.2868, allocations: 0.8434 MB / 455.2 MB, free: 14.01 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002453/0.287, allocations: 75.8 kB / 455.3 MB, free: 13.93 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002531/0.2873, allocations: 159.4 kB / 455.4 MB, free: 13.78 MB / 366.1 MB Notification: Performance of SimCode: time 6.31e-07/0.2873, allocations: 0 / 455.4 MB, free: 13.78 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04417/0.3314, allocations: 10.3 MB / 465.7 MB, free: 3.582 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.02/12.35, allocations: 0 / 465.7 MB, free: 3.582 MB / 366.1 MB " [Timeout remaining time 647] (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: 14.982773473020643]