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.001349/0.001349, allocations: 85.05 kB / 21.5 MB, free: 2.988 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.001369/0.001369, allocations: 141.7 kB / 24.89 MB, free: 8.785 MB / 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.011/1.011, allocations: 173.4 MB / 201.5 MB, free: 8.762 MB / 186.7 MB " [Timeout remaining time 179] 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.[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.0.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.0.0_Modelica.Blocks.Examples.BooleanNetwork1") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.553e-06/1.553e-06, allocations: 0 / 268.5 MB, free: 6.027 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.795e-05/1.951e-05, allocations: 2.312 kB / 268.5 MB, free: 6.023 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.BooleanNetwork1): time 0.005106/0.005126, allocations: 2.455 MB / 270.9 MB, free: 3.555 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.004799/0.009925, allocations: 1.34 MB / 272.3 MB, free: 2.211 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001509/0.01008, allocations: 15.88 kB / 272.3 MB, free: 2.195 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0006267/0.0107, allocations: 242.8 kB / 272.5 MB, free: 1.957 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003016/0.011, allocations: 171.1 kB / 272.7 MB, free: 1.789 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005/0.0115, allocations: 303 kB / 273 MB, free: 1.492 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004285/0.01193, allocations: 479.6 kB / 273.4 MB, free: 1.023 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002293/0.01216, allocations: 159.9 kB / 273.6 MB, free: 0.8555 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007207/0.01288, allocations: 271.3 kB / 273.9 MB, free: 0.5898 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001627/0.01305, allocations: 167.5 kB / 274 MB, free: 436 kB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 4.144e-05/0.01309, allocations: 36 kB / 274.1 MB, free: 400 kB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001597/0.01325, allocations: 135.8 kB / 274.2 MB, free: 264 kB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001079/0.01335, allocations: 123.6 kB / 274.3 MB, free: 140 kB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 9.882e-05/0.01345, allocations: 139.5 kB / 274.5 MB, free: 0 / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003754/0.01383, allocations: 450.1 kB / 274.9 MB, free: 15.56 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.824e-06/0.01383, allocations: 0 / 274.9 MB, free: 15.56 MB / 266.7 MB Notification: Performance of FrontEnd: time 7.71e-07/0.01383, allocations: 0 / 274.9 MB, free: 15.56 MB / 266.7 MB Notification: Performance of Transformations before backend: time 3.536e-06/0.01383, allocations: 0 / 274.9 MB, free: 15.56 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.0007068/0.01454, allocations: 0.7467 MB / 275.6 MB, free: 14.77 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.098e-05/0.01457, allocations: 8.922 kB / 275.7 MB, free: 14.77 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.147e-05/0.01464, allocations: 68.88 kB / 275.7 MB, free: 14.7 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002983/0.01494, allocations: 300.5 kB / 276 MB, free: 14.38 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.979e-05/0.015, allocations: 84.72 kB / 276.1 MB, free: 14.28 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.439e-05/0.01504, allocations: 44 kB / 276.1 MB, free: 14.24 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003255/0.01536, allocations: 364.4 kB / 276.5 MB, free: 13.84 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.438e-06/0.01537, allocations: 0 / 276.5 MB, free: 13.84 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.911e-05/0.01539, allocations: 16 kB / 276.5 MB, free: 13.82 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.894e-05/0.01541, allocations: 12.5 kB / 276.5 MB, free: 13.81 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001461/0.01556, allocations: 162.2 kB / 276.7 MB, free: 13.64 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008743/0.01643, allocations: 1.306 MB / 278 MB, free: 12.29 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002467/0.01668, allocations: 305.7 kB / 278.3 MB, free: 11.95 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.862e-05/0.01674, allocations: 92.2 kB / 278.4 MB, free: 11.84 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.468e-05/0.01678, allocations: 11.98 kB / 278.4 MB, free: 11.83 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002133/0.01699, allocations: 316.3 kB / 278.7 MB, free: 11.48 MB / 266.7 MB Notification: Performance of pre-optimization done (n=37): time 1.182e-06/0.01699, allocations: 0 / 278.7 MB, free: 11.48 MB / 266.7 MB Notification: Performance of matching and sorting (n=37): time 0.0003022/0.0173, allocations: 324.2 kB / 279 MB, free: 11.13 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.379e-05/0.01735, allocations: 148.4 kB / 279.2 MB, free: 10.96 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002283/0.01758, allocations: 400.6 kB / 279.5 MB, free: 10.55 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.631e-05/0.0176, allocations: 41.7 kB / 279.6 MB, free: 10.5 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.164e-05/0.01769, allocations: 189.8 kB / 279.8 MB, free: 10.31 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.239e-05/0.01774, allocations: 95.27 kB / 279.9 MB, free: 10.22 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.947e-05/0.01783, allocations: 118.1 kB / 280 MB, free: 10.1 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 9.522e-05/0.01792, allocations: 366.7 kB / 280.3 MB, free: 9.73 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.511e-05/0.01799, allocations: 73.52 kB / 280.4 MB, free: 9.652 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001285/0.01812, allocations: 240.6 kB / 280.6 MB, free: 9.344 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002158/0.01833, allocations: 319 kB / 281 MB, free: 8.961 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.667e-06/0.01834, allocations: 4 kB / 281 MB, free: 8.957 MB / 266.7 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.000265/0.0186, allocations: 338.8 kB / 281.3 MB, free: 8.605 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.498e-05/0.01863, allocations: 41.62 kB / 281.3 MB, free: 8.559 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.992e-06/0.01863, allocations: 4 kB / 281.3 MB, free: 8.555 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.338e-05/0.01865, allocations: 11.98 kB / 281.3 MB, free: 8.543 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.073e-05/0.01873, allocations: 47.84 kB / 281.4 MB, free: 8.496 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.321e-06/0.01873, allocations: 8 kB / 281.4 MB, free: 8.488 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001025/0.01884, allocations: 44.17 kB / 281.4 MB, free: 8.445 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.46e-05/0.01886, allocations: 24 kB / 281.5 MB, free: 8.422 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.0001301/0.01899, allocations: 195.4 kB / 281.7 MB, free: 8.215 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.233e-05/0.01903, allocations: 43.95 kB / 281.7 MB, free: 8.172 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002603/0.01929, allocations: 289 kB / 282 MB, free: 7.871 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.508e-06/0.0193, allocations: 4 kB / 282 MB, free: 7.867 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.914e-06/0.0193, allocations: 0 / 282 MB, free: 7.867 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.47e-06/0.0193, allocations: 7.984 kB / 282 MB, free: 7.859 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004406/0.01975, allocations: 0.5203 MB / 282.5 MB, free: 7.312 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.445e-06/0.01975, allocations: 3.938 kB / 282.5 MB, free: 7.309 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.366e-05/0.01978, allocations: 19.92 kB / 282.5 MB, free: 7.289 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.607e-06/0.01978, allocations: 4 kB / 282.5 MB, free: 7.285 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.422e-05/0.0198, allocations: 8 kB / 282.6 MB, free: 7.277 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.333e-06/0.0198, allocations: 0 / 282.6 MB, free: 7.277 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.024e-06/0.0198, allocations: 4 kB / 282.6 MB, free: 7.273 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002487/0.02005, allocations: 429.3 kB / 283 MB, free: 6.82 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.536e-05/0.02009, allocations: 47.58 kB / 283 MB, free: 6.773 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.597e-05/0.02012, allocations: 20 kB / 283 MB, free: 6.754 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.983e-05/0.02021, allocations: 15.98 kB / 283.1 MB, free: 6.738 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.488e-05/0.02028, allocations: 35.94 kB / 283.1 MB, free: 6.703 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.263e-05/0.0203, allocations: 23.98 kB / 283.1 MB, free: 6.68 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.000106/0.02041, allocations: 147.5 kB / 283.3 MB, free: 6.535 MB / 266.7 MB Notification: Performance of sort global known variables: time 5e-08/0.02041, allocations: 4 kB / 283.3 MB, free: 6.531 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002489/0.02065, allocations: 123.7 kB / 283.4 MB, free: 6.41 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.00107/0.02172, allocations: 0.5499 MB / 283.9 MB, free: 6.086 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0002655/0.02199, allocations: 324.2 kB / 284.3 MB, free: 5.742 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 5.16e-06/0.022, allocations: 4.938 kB / 284.3 MB, free: 5.738 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000133/0.02213, allocations: 193.8 kB / 284.4 MB, free: 5.527 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002621/0.02239, allocations: 101 kB / 284.5 MB, free: 5.434 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007176/0.02311, allocations: 0.7446 MB / 285.3 MB, free: 4.648 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.885e-05/0.02318, allocations: 118.3 kB / 285.4 MB, free: 4.516 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 9.967e-05/0.02328, allocations: 63.52 kB / 285.5 MB, free: 4.449 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001657/0.02344, allocations: 147.3 kB / 285.6 MB, free: 4.305 MB / 266.7 MB Notification: Performance of SimCode: time 7.92e-07/0.02344, allocations: 0 / 285.6 MB, free: 4.305 MB / 266.7 MB Notification: Performance of Templates: time 0.1004/0.1239, allocations: 6.034 MB / 291.6 MB, free: 28.06 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=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Blocks.Examples.BooleanNetwork1.pipe 2>&1) [Timeout 240] 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","",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.827405584976077]