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.001482/0.001482, allocations: 92.62 kB / 20.96 MB, free: 3.477 MB / 18.57 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.001569/0.001569, allocations: 149.4 kB / 24.26 MB, free: 188 kB / 18.57 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.528/1.528, allocations: 173.4 MB / 200.8 MB, free: 9.316 MB / 186.7 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: translateModel(Modelica.Blocks.Examples.BooleanNetwork1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5051,variableFilter="time|and1.u.1.|and1.u.2.|and1.u.3.|booleanTable.y|changing.u|nand1.u.1.|nand1.u.2.|onDelay.u|or1.u.1.|or1.u.2.|or2.u.1.|or2.u.2.|rSFlipFlop.pre.u|rising.u|set1.y|triggeredAdd.y|xor1.u.1.|xor1.u.2.",fileNamePrefix="Modelica_4.0.0_Modelica.Blocks.Examples.BooleanNetwork1") translateModel(Modelica.Blocks.Examples.BooleanNetwork1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5051,variableFilter="time|and1.u.1.|and1.u.2.|and1.u.3.|booleanTable.y|changing.u|nand1.u.1.|nand1.u.2.|onDelay.u|or1.u.1.|or1.u.2.|or2.u.1.|or2.u.2.|rSFlipFlop.pre.u|rising.u|set1.y|triggeredAdd.y|xor1.u.1.|xor1.u.2.",fileNamePrefix="Modelica_4.0.0_Modelica.Blocks.Examples.BooleanNetwork1") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.974e-06/1.974e-06, allocations: 0 / 267.3 MB, free: 6.73 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.681e-05/2.879e-05, allocations: 2.312 kB / 267.3 MB, free: 6.727 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.BooleanNetwork1): time 0.004528/0.004557, allocations: 2.375 MB / 269.7 MB, free: 4.336 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.0031/0.007657, allocations: 1.293 MB / 271 MB, free: 3.039 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002648/0.007922, allocations: 15.88 kB / 271 MB, free: 3.023 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001071/0.008993, allocations: 246.8 kB / 271.2 MB, free: 2.781 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004917/0.009484, allocations: 167.1 kB / 271.4 MB, free: 2.617 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008608/0.01034, allocations: 303.1 kB / 271.7 MB, free: 2.32 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0006447/0.01099, allocations: 479.6 kB / 272.2 MB, free: 1.852 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003279/0.01132, allocations: 142.3 kB / 272.3 MB, free: 1.703 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003919/0.01171, allocations: 271.3 kB / 272.6 MB, free: 1.438 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002986/0.01201, allocations: 171.5 kB / 272.7 MB, free: 1.27 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 7.831e-05/0.01209, allocations: 36 kB / 272.8 MB, free: 1.234 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003225/0.01241, allocations: 135.8 kB / 272.9 MB, free: 1.102 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001801/0.01259, allocations: 127.6 kB / 273 MB, free: 0.9766 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002027/0.01279, allocations: 135.5 kB / 273.2 MB, free: 0.8438 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00125/0.01404, allocations: 0.5761 MB / 273.7 MB, free: 272 kB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.153e-06/0.01405, allocations: 0 / 273.7 MB, free: 272 kB / 250.7 MB Notification: Performance of FrontEnd: time 2.034e-06/0.01405, allocations: 0 / 273.7 MB, free: 272 kB / 250.7 MB Notification: Performance of Transformations before backend: time 1.488e-05/0.01407, allocations: 0 / 273.7 MB, free: 272 kB / 250.7 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.002561/0.01663, allocations: 0.7893 MB / 274.5 MB, free: 15.43 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.951e-05/0.01668, allocations: 8.922 kB / 274.5 MB, free: 15.42 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002735/0.01695, allocations: 96.56 kB / 274.6 MB, free: 15.33 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008555/0.0178, allocations: 335.8 kB / 275 MB, free: 14.97 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001564/0.01796, allocations: 82.47 kB / 275 MB, free: 14.88 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.563e-05/0.01806, allocations: 43.98 kB / 275.1 MB, free: 14.84 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001159/0.01922, allocations: 441.7 kB / 275.5 MB, free: 14.36 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.811e-05/0.01923, allocations: 0 / 275.5 MB, free: 14.36 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.865e-05/0.0193, allocations: 27.92 kB / 275.5 MB, free: 14.34 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.643e-05/0.01934, allocations: 20.44 kB / 275.6 MB, free: 14.32 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008968/0.02024, allocations: 298.8 kB / 275.9 MB, free: 14.02 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00324/0.02348, allocations: 1.508 MB / 277.4 MB, free: 12.44 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001121/0.0246, allocations: 313.5 kB / 277.7 MB, free: 12.1 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000486/0.02508, allocations: 144.2 kB / 277.8 MB, free: 11.95 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.38e-05/0.02517, allocations: 12 kB / 277.8 MB, free: 11.93 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009508/0.02612, allocations: 355.1 kB / 278.2 MB, free: 11.54 MB / 266.7 MB Notification: Performance of pre-optimization done (n=37): time 3.105e-06/0.02612, allocations: 0 / 278.2 MB, free: 11.54 MB / 266.7 MB Notification: Performance of matching and sorting (n=37): time 0.002102/0.02822, allocations: 0.5556 MB / 278.7 MB, free: 10.96 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001795/0.0284, allocations: 152.4 kB / 278.9 MB, free: 10.79 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001134/0.02954, allocations: 493.4 kB / 279.4 MB, free: 10.29 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 8.773e-05/0.02962, allocations: 37.7 kB / 279.4 MB, free: 10.25 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003601/0.02998, allocations: 232.8 kB / 279.6 MB, free: 10.02 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001767/0.03016, allocations: 87.36 kB / 279.7 MB, free: 9.934 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003165/0.03048, allocations: 118.2 kB / 279.8 MB, free: 9.812 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0003257/0.0308, allocations: 354.8 kB / 280.2 MB, free: 9.457 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005382/0.03134, allocations: 146.6 kB / 280.3 MB, free: 9.309 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008251/0.03217, allocations: 320.6 kB / 280.6 MB, free: 8.926 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001305/0.03347, allocations: 431.5 kB / 281 MB, free: 8.438 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.134e-05/0.03348, allocations: 4 kB / 281 MB, free: 8.434 MB / 266.7 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.001962/0.03544, allocations: 0.52 MB / 281.6 MB, free: 7.895 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.646e-05/0.03552, allocations: 41.62 kB / 281.6 MB, free: 7.848 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.556e-05/0.03555, allocations: 4 kB / 281.6 MB, free: 7.844 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.107e-05/0.03559, allocations: 8 kB / 281.6 MB, free: 7.836 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000302/0.03589, allocations: 43.86 kB / 281.7 MB, free: 7.793 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.362e-05/0.03591, allocations: 7.984 kB / 281.7 MB, free: 7.785 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005237/0.03644, allocations: 59.59 kB / 281.7 MB, free: 7.727 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.297e-05/0.03653, allocations: 24 kB / 281.8 MB, free: 7.703 MB / 266.7 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.0005341/0.03706, allocations: 244.7 kB / 282 MB, free: 7.449 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002014/0.03727, allocations: 59.72 kB / 282 MB, free: 7.391 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001646/0.03891, allocations: 456.6 kB / 282.5 MB, free: 6.93 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.437e-05/0.03894, allocations: 11.98 kB / 282.5 MB, free: 6.918 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.514e-06/0.03894, allocations: 0 / 282.5 MB, free: 6.918 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.335e-05/0.03896, allocations: 3.984 kB / 282.5 MB, free: 6.914 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002092/0.04105, allocations: 0.6612 MB / 283.2 MB, free: 6.215 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.015e-05/0.04106, allocations: 4 kB / 283.2 MB, free: 6.211 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001299/0.04119, allocations: 15.92 kB / 283.2 MB, free: 6.195 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.492e-05/0.0412, allocations: 4 kB / 283.2 MB, free: 6.191 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.774e-05/0.04125, allocations: 8 kB / 283.2 MB, free: 6.184 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.869e-06/0.04126, allocations: 4 kB / 283.2 MB, free: 6.18 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.382e-06/0.04127, allocations: 3.984 kB / 283.2 MB, free: 6.176 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001734/0.043, allocations: 0.5657 MB / 283.8 MB, free: 5.578 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001493/0.04315, allocations: 51.64 kB / 283.8 MB, free: 5.527 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000128/0.04328, allocations: 12 kB / 283.8 MB, free: 5.516 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004114/0.04369, allocations: 27.97 kB / 283.9 MB, free: 5.488 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002167/0.04391, allocations: 39.94 kB / 283.9 MB, free: 5.449 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.056e-05/0.04399, allocations: 15.98 kB / 283.9 MB, free: 5.434 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0007417/0.04473, allocations: 319.1 kB / 284.2 MB, free: 5.125 MB / 266.7 MB Notification: Performance of sort global known variables: time 1.9e-07/0.04473, allocations: 0 / 284.2 MB, free: 5.125 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0009696/0.0457, allocations: 127.7 kB / 284.4 MB, free: 5 MB / 266.7 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.003318/0.04902, allocations: 491 kB / 284.8 MB, free: 4.695 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.001574/0.05059, allocations: 434.7 kB / 285.3 MB, free: 4.246 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 3.587e-06/0.05059, allocations: 0 / 285.3 MB, free: 4.246 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007592/0.05135, allocations: 237.8 kB / 285.5 MB, free: 3.996 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001166/0.05252, allocations: 101.6 kB / 285.6 MB, free: 3.898 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002839/0.05536, allocations: 0.8389 MB / 286.4 MB, free: 3.016 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004708/0.05583, allocations: 236.8 kB / 286.7 MB, free: 2.766 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0004353/0.05626, allocations: 79.41 kB / 286.7 MB, free: 2.684 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002191/0.05648, allocations: 44.48 kB / 286.8 MB, free: 2.641 MB / 266.7 MB Notification: Performance of SimCode: time 1.323e-06/0.05648, allocations: 0 / 286.8 MB, free: 2.641 MB / 266.7 MB Notification: Performance of Templates: time 0.1221/0.1786, allocations: 5.654 MB / 292.4 MB, free: 32.09 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Blocks.Examples.BooleanNetwork1.makefile [Timeout 660] (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 & ./Modelica_4.0.0_Modelica.Blocks.Examples.BooleanNetwork1 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Blocks.Examples.BooleanNetwork1.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.0.0_Modelica.Blocks.Examples.BooleanNetwork1_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Blocks/Examples/BooleanNetwork1/BooleanNetwork1.csv","/var/lib/jenkins/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: 4.748886844026856]