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/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) 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) Running command: translateModel(Modelica.Blocks.Examples.BooleanNetwork1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,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.0.0_Modelica.Blocks.Examples.BooleanNetwork1") translateModel(Modelica.Blocks.Examples.BooleanNetwork1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,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.0.0_Modelica.Blocks.Examples.BooleanNetwork1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001043/0.001043, allocations: 186.5 kB / 17.27 MB, free: 4.504 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.281/1.281, allocations: 222.9 MB / 240.9 MB, free: 10.98 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000887/0.000887, allocations: 106.2 kB / 291.2 MB, free: 10.93 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0008059/0.000806, allocations: 43.94 kB / 350 MB, free: 84 kB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2167/0.2176, allocations: 49.44 MB / 399.5 MB, free: 33.36 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.BooleanNetwork1): time 0.003623/0.2212, allocations: 2.486 MB / 401.9 MB, free: 30.86 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001845/0.2231, allocations: 1.316 MB / 403.3 MB, free: 29.54 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002655/0.2234, allocations: 11.94 kB / 403.3 MB, free: 29.53 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0006597/0.2241, allocations: 208.2 kB / 403.5 MB, free: 29.33 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003585/0.2245, allocations: 135.4 kB / 403.6 MB, free: 29.2 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006046/0.2251, allocations: 259.7 kB / 403.9 MB, free: 28.95 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003918/0.2255, allocations: 463.7 kB / 404.3 MB, free: 28.5 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002725/0.2258, allocations: 205.8 kB / 404.5 MB, free: 28.28 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001964/0.226, allocations: 171.2 kB / 404.7 MB, free: 28.11 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002001/0.2262, allocations: 207 kB / 404.9 MB, free: 27.91 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 5.545e-05/0.2262, allocations: 20 kB / 404.9 MB, free: 27.89 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001983/0.2264, allocations: 103.9 kB / 405 MB, free: 27.79 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 9.668e-05/0.2265, allocations: 115.6 kB / 405.1 MB, free: 27.68 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000139/0.2267, allocations: 206.7 kB / 405.3 MB, free: 27.47 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004101/0.2271, allocations: 0.4998 MB / 405.8 MB, free: 26.97 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.206e-06/0.2271, allocations: 0 / 405.8 MB, free: 26.97 MB / 298.7 MB Notification: Performance of FrontEnd: time 8.92e-07/0.2271, allocations: 0 / 405.8 MB, free: 26.97 MB / 298.7 MB Notification: Performance of Transformations before backend: time 9.137e-06/0.2271, allocations: 0 / 405.8 MB, free: 26.97 MB / 298.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.001248/0.2284, allocations: 0.8437 MB / 406.7 MB, free: 26.07 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.843e-05/0.2284, allocations: 12.03 kB / 406.7 MB, free: 26.05 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000134/0.2286, allocations: 56.28 kB / 406.7 MB, free: 26 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004369/0.229, allocations: 391 kB / 407.1 MB, free: 25.58 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.977e-05/0.2291, allocations: 62.64 kB / 407.2 MB, free: 25.51 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.178e-05/0.2291, allocations: 40 kB / 407.2 MB, free: 25.47 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005429/0.2297, allocations: 432.6 kB / 407.6 MB, free: 25.01 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.594e-05/0.2297, allocations: 0 / 407.6 MB, free: 25.01 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.252e-05/0.2298, allocations: 16 kB / 407.7 MB, free: 25 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.385e-05/0.2298, allocations: 12.44 kB / 407.7 MB, free: 24.98 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004004/0.2302, allocations: 265.5 kB / 407.9 MB, free: 24.73 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001505/0.2317, allocations: 1.686 MB / 409.6 MB, free: 22.95 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004706/0.2322, allocations: 296 kB / 409.9 MB, free: 22.64 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001781/0.2324, allocations: 126.5 kB / 410 MB, free: 22.5 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.509e-05/0.2325, allocations: 12.06 kB / 410 MB, free: 22.49 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003576/0.2328, allocations: 324.6 kB / 410.4 MB, free: 22.14 MB / 298.7 MB Notification: Performance of pre-optimization done (n=37): time 1.834e-06/0.2328, allocations: 0 / 410.4 MB, free: 22.14 MB / 298.7 MB Notification: Performance of matching and sorting (n=37): time 0.0007947/0.2336, allocations: 486.5 kB / 410.8 MB, free: 21.65 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.395e-05/0.2337, allocations: 166.2 kB / 411 MB, free: 21.45 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003766/0.2341, allocations: 0.4894 MB / 411.5 MB, free: 20.95 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.768e-05/0.2341, allocations: 37.7 kB / 411.5 MB, free: 20.91 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001039/0.2342, allocations: 228.6 kB / 411.7 MB, free: 20.68 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.224e-05/0.2343, allocations: 90.94 kB / 411.8 MB, free: 20.59 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001118/0.2344, allocations: 114.2 kB / 411.9 MB, free: 20.47 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 7.75e-05/0.2345, allocations: 362.7 kB / 412.3 MB, free: 20.11 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001907/0.2347, allocations: 113.1 kB / 412.4 MB, free: 20 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002462/0.2349, allocations: 270.7 kB / 412.7 MB, free: 19.68 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000417/0.2354, allocations: 423.2 kB / 413.1 MB, free: 19.2 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.03e-06/0.2354, allocations: 0 / 413.1 MB, free: 19.2 MB / 298.7 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.0006483/0.236, allocations: 483.7 kB / 413.6 MB, free: 18.71 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.732e-05/0.2361, allocations: 33.7 kB / 413.6 MB, free: 18.67 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.328e-06/0.2361, allocations: 8.156 kB / 413.6 MB, free: 18.66 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.883e-05/0.2361, allocations: 11.94 kB / 413.6 MB, free: 18.65 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001165/0.2362, allocations: 40.38 kB / 413.6 MB, free: 18.61 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.164e-05/0.2363, allocations: 19.92 kB / 413.7 MB, free: 18.59 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002165/0.2365, allocations: 55.52 kB / 413.7 MB, free: 18.54 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.082e-05/0.2365, allocations: 23.98 kB / 413.7 MB, free: 18.52 MB / 298.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.0002149/0.2367, allocations: 256.5 kB / 414 MB, free: 18.25 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.549e-05/0.2368, allocations: 51.44 kB / 414 MB, free: 18.2 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000413/0.2372, allocations: 263.5 kB / 414.3 MB, free: 17.93 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.921e-06/0.2373, allocations: 4 kB / 414.3 MB, free: 17.93 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.61e-06/0.2373, allocations: 0 / 414.3 MB, free: 17.93 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.042e-06/0.2373, allocations: 3.938 kB / 414.3 MB, free: 17.92 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008135/0.2381, allocations: 0.779 MB / 415.1 MB, free: 17.09 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.167e-06/0.2381, allocations: 4 kB / 415.1 MB, free: 17.08 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.309e-05/0.2382, allocations: 19.86 kB / 415.1 MB, free: 17.06 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.338e-06/0.2382, allocations: 4 kB / 415.1 MB, free: 17.06 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.413e-05/0.2382, allocations: 8 kB / 415.1 MB, free: 17.05 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.998e-06/0.2382, allocations: 4 kB / 415.1 MB, free: 17.05 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.392e-06/0.2382, allocations: 3.938 kB / 415.1 MB, free: 17.04 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009527/0.2392, allocations: 1.272 MB / 416.4 MB, free: 15.71 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.566e-05/0.2393, allocations: 112.6 kB / 416.5 MB, free: 15.58 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.888e-05/0.2393, allocations: 12 kB / 416.5 MB, free: 15.57 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001942/0.2395, allocations: 27.91 kB / 416.6 MB, free: 15.54 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001165/0.2397, allocations: 43.94 kB / 416.6 MB, free: 15.5 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.377e-05/0.2397, allocations: 16 kB / 416.6 MB, free: 15.48 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0002886/0.24, allocations: 327.1 kB / 416.9 MB, free: 15.17 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.11e-07/0.24, allocations: 0 / 416.9 MB, free: 15.17 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0005878/0.2406, allocations: 123.7 kB / 417 MB, free: 15.05 MB / 298.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,booleanTable.combiTimeTable.nextTimeEventScaled,onDelay.t_next,onDelay.delaySignal,$whenCondition3,$whenCondition2,booleanTable.combiTimeTable.nextTimeEvent,rSFlipFlop.pre.u) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (36): * Single equations (assignments): 30 * 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.0009961/0.2416, allocations: 461.6 kB / 417.5 MB, free: 14.75 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0005548/0.2422, allocations: 398.8 kB / 417.9 MB, free: 14.35 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.585e-06/0.2422, allocations: 0 / 417.9 MB, free: 14.35 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002736/0.2425, allocations: 240.1 kB / 418.1 MB, free: 14.1 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005238/0.243, allocations: 81.5 kB / 418.2 MB, free: 14.02 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001455/0.2445, allocations: 1.145 MB / 419.3 MB, free: 12.83 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000245/0.2447, allocations: 0.8559 MB / 420.2 MB, free: 11.95 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0002041/0.2449, allocations: 75.81 kB / 420.3 MB, free: 11.88 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.774e-05/0.245, allocations: 39.42 kB / 420.3 MB, free: 11.84 MB / 298.7 MB Notification: Performance of SimCode: time 5.51e-07/0.245, allocations: 0 / 420.3 MB, free: 11.84 MB / 298.7 MB Notification: Performance of Templates: time 0.009066/0.2541, allocations: 5.307 MB / 425.6 MB, free: 6.566 MB / 298.7 MB make -j1 -f Modelica_4.0.0_Modelica.Blocks.Examples.BooleanNetwork1.makefile (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=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Blocks.Examples.BooleanNetwork1.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Blocks.Examples.BooleanNetwork1_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Blocks/Examples/BooleanNetwork1/BooleanNetwork1.csv","../files/Modelica_4.0.0_Modelica.Blocks.Examples.BooleanNetwork1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches