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.0009414/0.0009414, allocations: 80.8 kB / 21.49 MB, free: 2.988 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.0009814/0.0009814, allocations: 169.3 kB / 24.91 MB, free: 9.184 MB / 18.57 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 0.9492/0.9492, allocations: 177.1 MB / 205.3 MB, free: 5.48 MB / 186.7 MB " [Timeout remaining time 179] 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: 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_4.1.0_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_4.1.0_Modelica.Blocks.Examples.BooleanNetwork1") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.403e-06/1.403e-06, allocations: 0 / 273.4 MB, free: 1.293 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.554e-05/1.694e-05, allocations: 2.312 kB / 273.4 MB, free: 1.289 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.BooleanNetwork1): time 0.002832/0.002849, allocations: 2.484 MB / 275.9 MB, free: 14.79 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001972/0.004821, allocations: 1.488 MB / 277.4 MB, free: 13.3 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001822/0.005003, allocations: 11.88 kB / 277.4 MB, free: 13.29 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0005561/0.005559, allocations: 242.8 kB / 277.7 MB, free: 13.05 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003864/0.005945, allocations: 202.9 kB / 277.9 MB, free: 12.85 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005735/0.006519, allocations: 279.1 kB / 278.1 MB, free: 12.57 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004574/0.006976, allocations: 487.6 kB / 278.6 MB, free: 12.1 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002152/0.007191, allocations: 156.3 kB / 278.8 MB, free: 11.94 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002781/0.007469, allocations: 275.3 kB / 279 MB, free: 11.67 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001807/0.00765, allocations: 167.5 kB / 279.2 MB, free: 11.5 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 4.271e-05/0.007693, allocations: 36 kB / 279.2 MB, free: 11.47 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002094/0.007902, allocations: 127.7 kB / 279.4 MB, free: 11.34 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001096/0.008012, allocations: 131.5 kB / 279.5 MB, free: 11.21 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001515/0.008163, allocations: 139.6 kB / 279.6 MB, free: 11.08 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005942/0.008758, allocations: 442.1 kB / 280.1 MB, free: 10.64 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.105e-06/0.008761, allocations: 4 kB / 280.1 MB, free: 10.64 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.122e-06/0.008762, allocations: 0 / 280.1 MB, free: 10.64 MB / 266.7 MB Notification: Performance of Transformations before backend: time 5.24e-06/0.008767, allocations: 0 / 280.1 MB, free: 10.64 MB / 266.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.0007825/0.009549, allocations: 0.7544 MB / 280.8 MB, free: 9.848 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.016e-05/0.00958, allocations: 12.03 kB / 280.8 MB, free: 9.836 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002238/0.009803, allocations: 84.86 kB / 280.9 MB, free: 9.754 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003143/0.01012, allocations: 300.6 kB / 281.2 MB, free: 9.43 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.662e-05/0.01017, allocations: 80.97 kB / 281.3 MB, free: 9.34 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.363e-05/0.01021, allocations: 40.38 kB / 281.3 MB, free: 9.301 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003213/0.01053, allocations: 360.8 kB / 281.7 MB, free: 8.906 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.007e-05/0.01054, allocations: 0 / 281.7 MB, free: 8.906 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.081e-05/0.01056, allocations: 19.98 kB / 281.7 MB, free: 8.887 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.961e-05/0.01058, allocations: 20.44 kB / 281.7 MB, free: 8.867 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001638/0.01074, allocations: 154.7 kB / 281.9 MB, free: 8.707 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009942/0.01174, allocations: 1.294 MB / 283.2 MB, free: 7.363 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00053/0.01227, allocations: 317.6 kB / 283.5 MB, free: 7.016 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.503e-05/0.01234, allocations: 92.19 kB / 283.6 MB, free: 6.91 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.567e-05/0.01238, allocations: 8 kB / 283.6 MB, free: 6.902 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002283/0.01261, allocations: 309.3 kB / 283.9 MB, free: 6.555 MB / 266.7 MB Notification: Performance of pre-optimization done (n=37): time 2.164e-06/0.01261, allocations: 0 / 283.9 MB, free: 6.555 MB / 266.7 MB Notification: Performance of matching and sorting (n=37): time 0.0003175/0.01293, allocations: 327.1 kB / 284.2 MB, free: 6.211 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.262e-05/0.01298, allocations: 144.4 kB / 284.3 MB, free: 6.039 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002455/0.01322, allocations: 404.7 kB / 284.7 MB, free: 5.629 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 3.031e-05/0.01325, allocations: 37.7 kB / 284.8 MB, free: 5.586 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.435e-05/0.01334, allocations: 205.8 kB / 285 MB, free: 5.383 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.354e-05/0.01339, allocations: 87.28 kB / 285 MB, free: 5.297 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.506e-05/0.01349, allocations: 122 kB / 285.2 MB, free: 5.172 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 9.844e-05/0.01359, allocations: 362.7 kB / 285.5 MB, free: 4.809 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.317e-05/0.01366, allocations: 73.52 kB / 285.6 MB, free: 4.727 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001339/0.01379, allocations: 244.6 kB / 285.8 MB, free: 4.418 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002326/0.01403, allocations: 325.9 kB / 286.1 MB, free: 4.031 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.945e-06/0.01403, allocations: 0 / 286.1 MB, free: 4.031 MB / 266.7 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.0002902/0.01432, allocations: 330.8 kB / 286.5 MB, free: 3.688 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.944e-05/0.01435, allocations: 33.7 kB / 286.5 MB, free: 3.648 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.272e-06/0.01435, allocations: 4 kB / 286.5 MB, free: 3.645 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.444e-05/0.01437, allocations: 8 kB / 286.5 MB, free: 3.637 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.786e-05/0.01446, allocations: 48.31 kB / 286.6 MB, free: 3.59 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.909e-06/0.01447, allocations: 20.19 kB / 286.6 MB, free: 3.57 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001187/0.01459, allocations: 47.72 kB / 286.6 MB, free: 3.523 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.005e-05/0.01461, allocations: 20 kB / 286.6 MB, free: 3.504 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,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.0001462/0.01475, allocations: 199.4 kB / 286.8 MB, free: 3.289 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.66e-05/0.0148, allocations: 43.95 kB / 286.9 MB, free: 3.246 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002598/0.01506, allocations: 264.5 kB / 287.1 MB, free: 2.961 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.557e-06/0.01506, allocations: 7.938 kB / 287.1 MB, free: 2.953 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.827e-06/0.01507, allocations: 4 kB / 287.2 MB, free: 2.949 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.819e-06/0.01507, allocations: 0 / 287.2 MB, free: 2.949 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004677/0.01554, allocations: 461.6 kB / 287.6 MB, free: 2.473 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.404e-06/0.01554, allocations: 0 / 287.6 MB, free: 2.473 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.915e-05/0.01558, allocations: 15.92 kB / 287.6 MB, free: 2.457 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.32e-06/0.01559, allocations: 7.938 kB / 287.6 MB, free: 2.449 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.561e-05/0.0156, allocations: 8 kB / 287.6 MB, free: 2.441 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.124e-06/0.0156, allocations: 0 / 287.6 MB, free: 2.441 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.142e-06/0.0156, allocations: 8 kB / 287.6 MB, free: 2.434 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002612/0.01587, allocations: 426.8 kB / 288.1 MB, free: 1.98 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.707e-05/0.0159, allocations: 39.66 kB / 288.1 MB, free: 1.941 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.764e-05/0.01594, allocations: 11.94 kB / 288.1 MB, free: 1.93 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.563e-05/0.01604, allocations: 19.98 kB / 288.1 MB, free: 1.91 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.927e-05/0.01611, allocations: 46.75 kB / 288.2 MB, free: 1.863 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.782e-05/0.01613, allocations: 12 kB / 288.2 MB, free: 1.852 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001091/0.01624, allocations: 144.7 kB / 288.3 MB, free: 1.707 MB / 266.7 MB Notification: Performance of sort global known variables: time 6e-08/0.01624, allocations: 0 / 288.3 MB, free: 1.707 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002972/0.01654, allocations: 119.8 kB / 288.4 MB, free: 1.59 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: 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.001103/0.01764, allocations: 0.5421 MB / 289 MB, free: 1.273 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0002926/0.01793, allocations: 329.2 kB / 289.3 MB, free: 0.9258 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 7.454e-06/0.01794, allocations: 8.062 kB / 289.3 MB, free: 0.918 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000126/0.01807, allocations: 181.8 kB / 289.5 MB, free: 0.7188 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002821/0.01835, allocations: 109.8 kB / 289.6 MB, free: 0.6211 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.09559/0.1139, allocations: 0.7311 MB / 290.3 MB, free: 24.84 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.209e-05/0.114, allocations: 119.2 kB / 290.4 MB, free: 24.77 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0001882/0.1142, allocations: 45.11 kB / 290.5 MB, free: 24.76 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002088/0.1144, allocations: 142.5 kB / 290.6 MB, free: 24.71 MB / 266.7 MB Notification: Performance of SimCode: time 1.283e-06/0.1144, allocations: 0.7812 kB / 290.6 MB, free: 24.71 MB / 266.7 MB Notification: Performance of Templates: time 0.009899/0.1243, allocations: 5.763 MB / 296.4 MB, free: 24.09 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Blocks.Examples.BooleanNetwork1.makefile [Timeout 660] (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 & ./Modelica_4.1.0_Modelica.Blocks.Examples.BooleanNetwork1 -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Blocks.Examples.BooleanNetwork1.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_Modelica.Blocks.Examples.BooleanNetwork1_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/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: 2.6685093361884356]