Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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.001207/0.001207, allocations: 85.08 kB / 23 MB, free: 1.504 MB / 18.57 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.001802/0.001802, allocations: 172.7 kB / 26.4 MB, free: 8.152 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.001/1.001, allocations: 158.6 MB / 188.3 MB, free: 2.816 MB / 170.7 MB " [Timeout remaining time 179] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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: translateModel(Modelica.Blocks.Examples.BooleanNetwork1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5051,variableFilter="time|and1.u.[0-9,]+.|booleanTable.y|changing.u|nand1.u.[0-9,]+.|onDelay.u|or1.u.[0-9,]+.|or2.u.[0-9,]+.|rSFlipFlop.pre.u|rising.u|set1.y|triggeredAdd.y|xor1.u.[0-9,]+.",fileNamePrefix="Modelica_3.2.3_Modelica.Blocks.Examples.BooleanNetwork1") translateModel(Modelica.Blocks.Examples.BooleanNetwork1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5051,variableFilter="time|and1.u.[0-9,]+.|booleanTable.y|changing.u|nand1.u.[0-9,]+.|onDelay.u|or1.u.[0-9,]+.|or2.u.[0-9,]+.|rSFlipFlop.pre.u|rising.u|set1.y|triggeredAdd.y|xor1.u.[0-9,]+.",fileNamePrefix="Modelica_3.2.3_Modelica.Blocks.Examples.BooleanNetwork1") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.343e-06/1.343e-06, allocations: 3.938 kB / 252.2 MB, free: 7.266 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.45e-05/2.584e-05, allocations: 2.312 kB / 252.2 MB, free: 7.262 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.BooleanNetwork1): time 0.003249/0.003275, allocations: 2.453 MB / 254.7 MB, free: 4.793 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.001735/0.00501, allocations: 1.232 MB / 255.9 MB, free: 3.551 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001701/0.00518, allocations: 11.88 kB / 255.9 MB, free: 3.539 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0007628/0.005943, allocations: 246.8 kB / 256.2 MB, free: 3.297 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003057/0.006248, allocations: 171.1 kB / 256.3 MB, free: 3.129 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000509/0.006757, allocations: 279.2 kB / 256.6 MB, free: 2.855 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005183/0.007276, allocations: 479.6 kB / 257.1 MB, free: 2.383 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002402/0.007516, allocations: 146.1 kB / 257.2 MB, free: 2.238 MB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000295/0.007811, allocations: 271.3 kB / 257.5 MB, free: 1.973 MB / 234.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002226/0.008034, allocations: 171.5 kB / 257.7 MB, free: 1.805 MB / 234.7 MB Notification: Performance of NFPackage.collectConstants: time 4.28e-05/0.008076, allocations: 40 kB / 257.7 MB, free: 1.766 MB / 234.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002275/0.008304, allocations: 135.8 kB / 257.8 MB, free: 1.633 MB / 234.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001143/0.008418, allocations: 123.6 kB / 258 MB, free: 1.508 MB / 234.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001083/0.008526, allocations: 139.5 kB / 258.1 MB, free: 1.371 MB / 234.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005237/0.00905, allocations: 450.2 kB / 258.5 MB, free: 0.9297 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.787e-06/0.009054, allocations: 0 / 258.5 MB, free: 0.9297 MB / 234.7 MB Notification: Performance of FrontEnd: time 1.212e-06/0.009055, allocations: 0 / 258.5 MB, free: 0.9297 MB / 234.7 MB Notification: Performance of Transformations before backend: time 6.602e-06/0.009062, allocations: 0 / 258.5 MB, free: 0.9297 MB / 234.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.0009238/0.009985, allocations: 0.8792 MB / 259.4 MB, free: 0 / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.736e-05/0.01002, allocations: 20.03 kB / 259.4 MB, free: 15.98 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000122/0.01014, allocations: 88.53 kB / 259.5 MB, free: 15.89 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003631/0.01051, allocations: 331.3 kB / 259.8 MB, free: 15.54 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.777e-05/0.01058, allocations: 88.95 kB / 259.9 MB, free: 15.44 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.438e-05/0.01061, allocations: 36.38 kB / 260 MB, free: 15.4 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004269/0.01104, allocations: 386.2 kB / 260.3 MB, free: 14.98 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.215e-05/0.01105, allocations: 0 / 260.3 MB, free: 14.98 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.237e-05/0.01107, allocations: 16 kB / 260.4 MB, free: 14.96 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.194e-05/0.0111, allocations: 16.48 kB / 260.4 MB, free: 14.95 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001761/0.01128, allocations: 156.5 kB / 260.5 MB, free: 14.79 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001374/0.01265, allocations: 1.876 MB / 262.4 MB, free: 12.84 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003107/0.01296, allocations: 258.9 kB / 262.7 MB, free: 12.54 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.878e-05/0.01305, allocations: 96.72 kB / 262.7 MB, free: 12.43 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.74e-05/0.0131, allocations: 19.94 kB / 262.8 MB, free: 12.41 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002576/0.01336, allocations: 319.8 kB / 263.1 MB, free: 12.05 MB / 250.7 MB Notification: Performance of pre-optimization done (n=37): time 1.904e-06/0.01336, allocations: 4 kB / 263.1 MB, free: 12.05 MB / 250.7 MB Notification: Performance of matching and sorting (n=37): time 0.0004802/0.01384, allocations: 414.8 kB / 263.5 MB, free: 11.62 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.212e-05/0.0139, allocations: 132.5 kB / 263.6 MB, free: 11.46 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003271/0.01423, allocations: 466.2 kB / 264.1 MB, free: 10.98 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 3.426e-05/0.01426, allocations: 41.7 kB / 264.1 MB, free: 10.94 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000144/0.01441, allocations: 291.5 kB / 264.4 MB, free: 10.64 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.138e-05/0.01447, allocations: 91.27 kB / 264.5 MB, free: 10.55 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001161/0.01459, allocations: 135.7 kB / 264.6 MB, free: 10.41 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0001484/0.01473, allocations: 0.539 MB / 265.2 MB, free: 9.863 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.783e-05/0.01481, allocations: 74.66 kB / 265.2 MB, free: 9.785 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001639/0.01498, allocations: 298.3 kB / 265.5 MB, free: 9.402 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002724/0.01525, allocations: 357.7 kB / 265.9 MB, free: 8.965 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.386e-06/0.01525, allocations: 0 / 265.9 MB, free: 8.965 MB / 250.7 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.0003999/0.01565, allocations: 416.5 kB / 266.3 MB, free: 8.539 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.715e-05/0.01569, allocations: 45.78 kB / 266.3 MB, free: 8.488 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.374e-06/0.0157, allocations: 4 kB / 266.3 MB, free: 8.484 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.045e-05/0.01571, allocations: 4 kB / 266.3 MB, free: 8.48 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.332e-05/0.0158, allocations: 47.91 kB / 266.4 MB, free: 8.434 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.815e-06/0.01581, allocations: 11.94 kB / 266.4 MB, free: 8.422 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001341/0.01594, allocations: 47.66 kB / 266.4 MB, free: 8.375 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.99e-05/0.01597, allocations: 20 kB / 266.5 MB, free: 8.355 MB / 250.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,showValue.active,showValue2.active,showValue3.active,showValue4.active,showValue1.number,showValue5.active,showValue6.active,set1.expr[1],set1.expr[2],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,triggeredAdd.local_reset,triggeredAdd.local_set) * 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.0001852/0.01616, allocations: 247.3 kB / 266.7 MB, free: 8.098 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.261e-05/0.01622, allocations: 63.66 kB / 266.8 MB, free: 8.035 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003769/0.0166, allocations: 345.1 kB / 267.1 MB, free: 7.68 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.088e-06/0.0166, allocations: 4 kB / 267.1 MB, free: 7.676 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.488e-06/0.0166, allocations: 8.062 kB / 267.1 MB, free: 7.668 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.001e-06/0.01661, allocations: 3.984 kB / 267.1 MB, free: 7.664 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000578/0.01719, allocations: 0.5758 MB / 267.7 MB, free: 7.051 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.154e-06/0.01719, allocations: 0 / 267.7 MB, free: 7.051 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.004e-05/0.01723, allocations: 23.92 kB / 267.7 MB, free: 7.027 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.987e-06/0.01723, allocations: 4 kB / 267.7 MB, free: 7.023 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.687e-05/0.01725, allocations: 8 kB / 267.7 MB, free: 7.016 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.347e-06/0.01726, allocations: 4 kB / 267.7 MB, free: 7.012 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.463e-06/0.01726, allocations: 0 / 267.7 MB, free: 7.012 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003714/0.01763, allocations: 0.5369 MB / 268.3 MB, free: 6.438 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.818e-05/0.01767, allocations: 43.62 kB / 268.3 MB, free: 6.395 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.891e-05/0.0177, allocations: 16 kB / 268.3 MB, free: 6.379 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.901e-05/0.0178, allocations: 15.98 kB / 268.3 MB, free: 6.363 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.468e-05/0.01788, allocations: 43.8 kB / 268.4 MB, free: 6.32 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.209e-05/0.0179, allocations: 19.98 kB / 268.4 MB, free: 6.301 MB / 250.7 MB Notification: Performance of sorting global known variables: time 0.000145/0.01805, allocations: 267 kB / 268.7 MB, free: 6.039 MB / 250.7 MB Notification: Performance of sort global known variables: time 8.1e-08/0.01805, allocations: 0 / 268.7 MB, free: 6.039 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0003281/0.01837, allocations: 119.7 kB / 268.8 MB, free: 5.922 MB / 250.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.0009559/0.01933, allocations: 445.9 kB / 269.2 MB, free: 5.527 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.0003479/0.01968, allocations: 339.6 kB / 269.5 MB, free: 5.168 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 1.704e-06/0.01968, allocations: 256 / 269.5 MB, free: 5.168 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001523/0.01983, allocations: 212.5 kB / 269.8 MB, free: 4.938 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003701/0.0202, allocations: 101.9 kB / 269.9 MB, free: 4.84 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008774/0.02108, allocations: 0.7363 MB / 270.6 MB, free: 4.059 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.49e-05/0.02115, allocations: 114.3 kB / 270.7 MB, free: 3.93 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 0.0001218/0.02128, allocations: 59.27 kB / 270.8 MB, free: 3.867 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001844/0.02146, allocations: 170.1 kB / 270.9 MB, free: 3.699 MB / 250.7 MB Notification: Performance of SimCode: time 8.42e-07/0.02146, allocations: 4 kB / 270.9 MB, free: 3.695 MB / 250.7 MB Notification: Performance of Templates: time 0.009768/0.03123, allocations: 6.346 MB / 277.3 MB, free: 13.35 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_3.2.3_Modelica.Blocks.Examples.BooleanNetwork1.makefile [Timeout 660] (rm -f Modelica_3.2.3_Modelica.Blocks.Examples.BooleanNetwork1.pipe ; mkfifo Modelica_3.2.3_Modelica.Blocks.Examples.BooleanNetwork1.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Blocks.Examples.BooleanNetwork1.pipe >> ../files/Modelica_3.2.3_Modelica.Blocks.Examples.BooleanNetwork1.sim & ./Modelica_3.2.3_Modelica.Blocks.Examples.BooleanNetwork1 -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Blocks.Examples.BooleanNetwork1.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_3.2.3_Modelica.Blocks.Examples.BooleanNetwork1_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Blocks/Examples/BooleanNetwork1/BooleanNetwork1.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.227960145100951]