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.001843/0.001843, allocations: 91.61 kB / 20.96 MB, free: 3.461 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.002098/0.002098, allocations: 165.3 kB / 24.28 MB, free: 152 kB / 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.559/1.559, allocations: 177.1 MB / 204.6 MB, free: 5.629 MB / 186.7 MB " [Timeout remaining time 178] 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.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.1.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.1.0_Modelica.Blocks.Examples.BooleanNetwork1") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.653e-06/1.653e-06, allocations: 0 / 272.3 MB, free: 1.855 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.409e-05/2.574e-05, allocations: 2.312 kB / 272.3 MB, free: 1.852 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.BooleanNetwork1): time 0.004621/0.004646, allocations: 2.474 MB / 274.8 MB, free: 15.37 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.003455/0.008101, allocations: 1.445 MB / 276.2 MB, free: 13.91 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002167/0.008318, allocations: 15.88 kB / 276.3 MB, free: 13.9 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0008296/0.009147, allocations: 242.8 kB / 276.5 MB, free: 13.66 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0005529/0.0097, allocations: 210.8 kB / 276.7 MB, free: 13.45 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006914/0.01039, allocations: 275.2 kB / 277 MB, free: 13.18 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0006218/0.01101, allocations: 487.5 kB / 277.4 MB, free: 12.71 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003032/0.01132, allocations: 146.3 kB / 277.6 MB, free: 12.56 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003952/0.01171, allocations: 275.3 kB / 277.9 MB, free: 12.29 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002685/0.01198, allocations: 175.4 kB / 278 MB, free: 12.12 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 7.289e-05/0.01205, allocations: 36 kB / 278.1 MB, free: 12.08 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002737/0.01233, allocations: 123.8 kB / 278.2 MB, free: 11.96 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001724/0.0125, allocations: 135.5 kB / 278.3 MB, free: 11.83 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001869/0.01269, allocations: 131.6 kB / 278.4 MB, free: 11.7 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0008414/0.01353, allocations: 0.576 MB / 279 MB, free: 11.12 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.296e-06/0.01353, allocations: 0 / 279 MB, free: 11.12 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.372e-06/0.01353, allocations: 0 / 279 MB, free: 11.12 MB / 266.7 MB Notification: Performance of Transformations before backend: time 7.664e-06/0.01354, allocations: 0 / 279 MB, free: 11.12 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.00156/0.0151, allocations: 0.9102 MB / 279.9 MB, free: 10.16 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.973e-05/0.01514, allocations: 12.03 kB / 279.9 MB, free: 10.15 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003703/0.01551, allocations: 104.5 kB / 280 MB, free: 10.05 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000597/0.01611, allocations: 338.5 kB / 280.4 MB, free: 9.688 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001034/0.01621, allocations: 84.97 kB / 280.5 MB, free: 9.594 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.139e-05/0.01628, allocations: 44.3 kB / 280.5 MB, free: 9.551 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007834/0.01707, allocations: 454.3 kB / 280.9 MB, free: 9.055 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.603e-05/0.01708, allocations: 0 / 280.9 MB, free: 9.055 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.273e-05/0.01712, allocations: 20 kB / 281 MB, free: 9.035 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.5e-05/0.01715, allocations: 12.5 kB / 281 MB, free: 9.023 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005454/0.01769, allocations: 255.4 kB / 281.2 MB, free: 8.77 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003006/0.0207, allocations: 2.016 MB / 283.2 MB, free: 6.672 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000691/0.02139, allocations: 315.1 kB / 283.5 MB, free: 6.32 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002809/0.02167, allocations: 140.7 kB / 283.7 MB, free: 6.164 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.044e-05/0.02173, allocations: 8 kB / 283.7 MB, free: 6.156 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006276/0.02236, allocations: 364.6 kB / 284 MB, free: 5.75 MB / 266.7 MB Notification: Performance of pre-optimization done (n=37): time 2.605e-06/0.02236, allocations: 0 / 284 MB, free: 5.75 MB / 266.7 MB Notification: Performance of matching and sorting (n=37): time 0.001218/0.02358, allocations: 0.5021 MB / 284.5 MB, free: 5.223 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001348/0.02372, allocations: 140.5 kB / 284.7 MB, free: 5.055 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008286/0.02454, allocations: 0.561 MB / 285.2 MB, free: 4.477 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 5.948e-05/0.0246, allocations: 45.62 kB / 285.3 MB, free: 4.426 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002922/0.0249, allocations: 307.7 kB / 285.6 MB, free: 4.117 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001194/0.02502, allocations: 99.36 kB / 285.7 MB, free: 4.02 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002356/0.02525, allocations: 151.8 kB / 285.8 MB, free: 3.863 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.00035/0.0256, allocations: 0.5548 MB / 286.4 MB, free: 3.297 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002629/0.02586, allocations: 126.6 kB / 286.5 MB, free: 3.168 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004878/0.02635, allocations: 358.4 kB / 286.9 MB, free: 2.723 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006455/0.027, allocations: 436.7 kB / 287.3 MB, free: 2.211 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.477e-06/0.027, allocations: 0 / 287.3 MB, free: 2.211 MB / 266.7 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.0008881/0.02789, allocations: 0.4929 MB / 287.8 MB, free: 1.699 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.816e-05/0.02794, allocations: 33.7 kB / 287.8 MB, free: 1.66 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.11e-05/0.02795, allocations: 4 kB / 287.8 MB, free: 1.656 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.228e-05/0.02797, allocations: 8.469 kB / 287.8 MB, free: 1.648 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000169/0.02814, allocations: 47.91 kB / 287.9 MB, free: 1.602 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.322e-05/0.02815, allocations: 11.94 kB / 287.9 MB, free: 1.59 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002232/0.02838, allocations: 55.66 kB / 287.9 MB, free: 1.535 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.064e-05/0.02842, allocations: 20 kB / 288 MB, free: 1.516 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.0002884/0.0287, allocations: 255.4 kB / 288.2 MB, free: 1.246 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001095/0.02881, allocations: 71.64 kB / 288.3 MB, free: 1.176 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007954/0.02961, allocations: 399.8 kB / 288.7 MB, free: 0.7695 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.616e-06/0.02962, allocations: 4 kB / 288.7 MB, free: 0.7656 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.352e-06/0.02962, allocations: 4 kB / 288.7 MB, free: 0.7617 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.516e-06/0.02963, allocations: 3.984 kB / 288.7 MB, free: 0.7578 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001446/0.03108, allocations: 0.7004 MB / 289.4 MB, free: 12 kB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.779e-06/0.03108, allocations: 4 kB / 289.4 MB, free: 8 kB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.087e-05/0.03117, allocations: 23.91 kB / 289.4 MB, free: 15.98 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.153e-06/0.03118, allocations: 4.062 kB / 289.4 MB, free: 15.98 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.204e-05/0.03121, allocations: 15.94 kB / 289.4 MB, free: 15.96 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.385e-06/0.03122, allocations: 4 kB / 289.4 MB, free: 15.96 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.747e-06/0.03122, allocations: 4 kB / 289.4 MB, free: 15.96 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008812/0.0321, allocations: 0.5727 MB / 290 MB, free: 15.34 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.125e-05/0.03219, allocations: 55.52 kB / 290.1 MB, free: 15.29 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.429e-05/0.03226, allocations: 15.94 kB / 290.1 MB, free: 15.27 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000181/0.03244, allocations: 19.98 kB / 290.1 MB, free: 15.25 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001304/0.03257, allocations: 43.92 kB / 290.1 MB, free: 15.21 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.64e-05/0.0326, allocations: 12 kB / 290.2 MB, free: 15.2 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0003973/0.033, allocations: 327.1 kB / 290.5 MB, free: 14.88 MB / 282.7 MB Notification: Performance of sort global known variables: time 9e-08/0.033, allocations: 0 / 290.5 MB, free: 14.88 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0004713/0.03347, allocations: 115.8 kB / 290.6 MB, free: 14.77 MB / 282.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.002956/0.03643, allocations: 488.3 kB / 291.1 MB, free: 14.46 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.000806/0.03724, allocations: 447.6 kB / 291.5 MB, free: 14 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 1.964e-06/0.03724, allocations: 0 / 291.5 MB, free: 14 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003861/0.03762, allocations: 248.6 kB / 291.7 MB, free: 13.73 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005848/0.03821, allocations: 87.38 kB / 291.8 MB, free: 13.66 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001483/0.03969, allocations: 0.776 MB / 292.6 MB, free: 12.84 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003255/0.04002, allocations: 243.2 kB / 292.8 MB, free: 12.57 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0002007/0.04022, allocations: 67.48 kB / 292.9 MB, free: 12.5 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001194/0.04034, allocations: 44.48 kB / 293 MB, free: 12.46 MB / 282.7 MB Notification: Performance of SimCode: time 6.71e-07/0.04034, allocations: 0 / 293 MB, free: 12.46 MB / 282.7 MB Notification: Performance of Templates: time 0.01249/0.05283, allocations: 5.427 MB / 298.4 MB, free: 7.109 MB / 282.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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.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.742963769007474]