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.001222/0.001222, allocations: 80.8 kB / 21.49 MB, free: 2.992 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.001038/0.001038, allocations: 169.1 kB / 24.91 MB, free: 9.199 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 1.002/1.002, allocations: 177.1 MB / 205.3 MB, free: 5.496 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.413e-06/1.413e-06, allocations: 0 / 273.5 MB, free: 1.258 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.716e-05/1.858e-05, allocations: 2.312 kB / 273.5 MB, free: 1.254 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.BooleanNetwork1): time 0.002996/0.003014, allocations: 2.524 MB / 276 MB, free: 14.71 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001961/0.004975, allocations: 1.488 MB / 277.5 MB, free: 13.22 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001829/0.005158, allocations: 11.88 kB / 277.5 MB, free: 13.21 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0005125/0.00567, allocations: 238.8 kB / 277.8 MB, free: 12.97 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003631/0.006033, allocations: 210.8 kB / 278 MB, free: 12.77 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004611/0.006494, allocations: 263.2 kB / 278.2 MB, free: 12.51 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.000443/0.006937, allocations: 491.5 kB / 278.7 MB, free: 12.03 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002066/0.007144, allocations: 148.3 kB / 278.8 MB, free: 11.88 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002609/0.007405, allocations: 275.3 kB / 279.1 MB, free: 11.61 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000172/0.007577, allocations: 171.5 kB / 279.3 MB, free: 11.44 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 3.851e-05/0.007616, allocations: 36 kB / 279.3 MB, free: 11.4 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002154/0.007831, allocations: 131.8 kB / 279.4 MB, free: 11.27 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 9.968e-05/0.007931, allocations: 131.5 kB / 279.6 MB, free: 11.14 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 9.932e-05/0.00803, allocations: 147.5 kB / 279.7 MB, free: 11 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00042/0.00845, allocations: 442.2 kB / 280.1 MB, free: 10.57 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.295e-06/0.008452, allocations: 0 / 280.1 MB, free: 10.57 MB / 266.7 MB Notification: Performance of FrontEnd: time 6.81e-07/0.008453, allocations: 0 / 280.1 MB, free: 10.57 MB / 266.7 MB Notification: Performance of Transformations before backend: time 7.053e-06/0.00846, allocations: 0 / 280.1 MB, free: 10.57 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.0007666/0.009227, allocations: 0.7544 MB / 280.9 MB, free: 9.773 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.657e-05/0.009253, allocations: 12.03 kB / 280.9 MB, free: 9.762 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002122/0.009465, allocations: 88.84 kB / 281 MB, free: 9.676 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003178/0.009783, allocations: 288.6 kB / 281.3 MB, free: 9.363 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.528e-05/0.009838, allocations: 88.91 kB / 281.4 MB, free: 9.266 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.877e-05/0.009867, allocations: 36.38 kB / 281.4 MB, free: 9.23 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003164/0.01018, allocations: 368.7 kB / 281.8 MB, free: 8.828 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.024e-05/0.01019, allocations: 4 kB / 281.8 MB, free: 8.824 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.961e-05/0.01021, allocations: 20 kB / 281.8 MB, free: 8.805 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.875e-05/0.01023, allocations: 12.5 kB / 281.8 MB, free: 8.793 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001447/0.01038, allocations: 150.6 kB / 281.9 MB, free: 8.637 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009795/0.01136, allocations: 1.302 MB / 283.2 MB, free: 7.285 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002531/0.01161, allocations: 309.7 kB / 283.5 MB, free: 6.945 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.047e-05/0.01168, allocations: 80.27 kB / 283.6 MB, free: 6.852 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.169e-05/0.01171, allocations: 15.98 kB / 283.6 MB, free: 6.836 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002179/0.01193, allocations: 309.2 kB / 283.9 MB, free: 6.488 MB / 266.7 MB Notification: Performance of pre-optimization done (n=37): time 1.453e-06/0.01193, allocations: 4 kB / 283.9 MB, free: 6.484 MB / 266.7 MB Notification: Performance of matching and sorting (n=37): time 0.0002947/0.01223, allocations: 327.2 kB / 284.3 MB, free: 6.141 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.909e-05/0.01227, allocations: 144.4 kB / 284.4 MB, free: 5.969 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002365/0.01251, allocations: 400.7 kB / 284.8 MB, free: 5.562 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.767e-05/0.01254, allocations: 37.7 kB / 284.8 MB, free: 5.52 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.898e-05/0.01263, allocations: 201.8 kB / 285 MB, free: 5.32 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.604e-05/0.01268, allocations: 99.27 kB / 285.1 MB, free: 5.223 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.307e-05/0.01278, allocations: 114 kB / 285.2 MB, free: 5.105 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 8.839e-05/0.01287, allocations: 362.7 kB / 285.6 MB, free: 4.742 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.179e-05/0.01294, allocations: 81.5 kB / 285.7 MB, free: 4.652 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000123/0.01306, allocations: 240.6 kB / 285.9 MB, free: 4.348 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002175/0.01328, allocations: 325.9 kB / 286.2 MB, free: 3.961 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.625e-06/0.01328, allocations: 0 / 286.2 MB, free: 3.961 MB / 266.7 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.0002866/0.01357, allocations: 331.3 kB / 286.6 MB, free: 3.617 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.428e-05/0.0136, allocations: 41.69 kB / 286.6 MB, free: 3.57 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.287e-06/0.01361, allocations: 4 kB / 286.6 MB, free: 3.566 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.435e-05/0.01362, allocations: 8 kB / 286.6 MB, free: 3.559 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.623e-05/0.01372, allocations: 47.84 kB / 286.7 MB, free: 3.512 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.135e-06/0.01373, allocations: 11.94 kB / 286.7 MB, free: 3.5 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001245/0.01385, allocations: 51.72 kB / 286.7 MB, free: 3.449 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.167e-05/0.01388, allocations: 16 kB / 286.7 MB, free: 3.434 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.0001492/0.01402, allocations: 211.6 kB / 286.9 MB, free: 3.207 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.602e-05/0.01407, allocations: 43.95 kB / 287 MB, free: 3.164 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002507/0.01432, allocations: 260.5 kB / 287.2 MB, free: 2.883 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.218e-06/0.01433, allocations: 4 kB / 287.2 MB, free: 2.879 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.923e-06/0.01433, allocations: 0 / 287.2 MB, free: 2.879 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.981e-06/0.01433, allocations: 3.984 kB / 287.2 MB, free: 2.875 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004353/0.01477, allocations: 465.6 kB / 287.7 MB, free: 2.395 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.644e-06/0.01477, allocations: 0 / 287.7 MB, free: 2.395 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.046e-05/0.01481, allocations: 19.92 kB / 287.7 MB, free: 2.375 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.208e-06/0.01482, allocations: 7.938 kB / 287.7 MB, free: 2.367 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.691e-05/0.01483, allocations: 11.98 kB / 287.7 MB, free: 2.355 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.066e-06/0.01484, allocations: 4 kB / 287.7 MB, free: 2.352 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.383e-06/0.01484, allocations: 0 / 287.7 MB, free: 2.352 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002495/0.01509, allocations: 418.8 kB / 288.1 MB, free: 1.906 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.616e-05/0.01512, allocations: 43.64 kB / 288.2 MB, free: 1.863 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.695e-05/0.01516, allocations: 16 kB / 288.2 MB, free: 1.848 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.923e-05/0.01525, allocations: 23.98 kB / 288.2 MB, free: 1.824 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.395e-05/0.01533, allocations: 46.77 kB / 288.3 MB, free: 1.777 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.947e-05/0.01535, allocations: 15.98 kB / 288.3 MB, free: 1.762 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.000105/0.01546, allocations: 140.7 kB / 288.4 MB, free: 1.621 MB / 266.7 MB Notification: Performance of sort global known variables: time 6e-08/0.01546, allocations: 0 / 288.4 MB, free: 1.621 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0003005/0.01576, allocations: 115.8 kB / 288.5 MB, free: 1.508 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.001023/0.01678, allocations: 0.5527 MB / 289.1 MB, free: 1.188 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.000287/0.01707, allocations: 320.3 kB / 289.4 MB, free: 0.8477 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 7.785e-06/0.01708, allocations: 4 kB / 289.4 MB, free: 0.8438 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001261/0.0172, allocations: 193.8 kB / 289.6 MB, free: 0.6328 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002739/0.01748, allocations: 95.89 kB / 289.7 MB, free: 0.543 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.09056/0.108, allocations: 0.7332 MB / 290.4 MB, free: 24.72 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.942e-05/0.1081, allocations: 119.5 kB / 290.5 MB, free: 24.65 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0001856/0.1083, allocations: 46.59 kB / 290.6 MB, free: 24.64 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001943/0.1085, allocations: 142.6 kB / 290.7 MB, free: 24.6 MB / 266.7 MB Notification: Performance of SimCode: time 1.062e-06/0.1085, allocations: 0 / 290.7 MB, free: 24.6 MB / 266.7 MB Notification: Performance of Templates: time 0.008981/0.1175, allocations: 5.769 MB / 296.5 MB, free: 24 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 -s gbode -gbm=radauIIA3 -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.8337747752666473]