Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Blocks.Examples.BooleanNetwork1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Blocks.Examples.BooleanNetwork1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001699/0.001699, allocations: 115.6 kB / 18.46 MB, free: 4.598 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002007/0.002007, allocations: 208.8 kB / 19.41 MB, free: 3.652 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 2.32/2.32, allocations: 227.4 MB / 247.6 MB, free: 10.48 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002131/0.002131, allocations: 59.91 kB / 359.4 MB, free: 12.92 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4883/0.4904, allocations: 50.55 MB / 409.9 MB, free: 1.602 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.BooleanNetwork1): time 0.007665/0.4981, allocations: 2.479 MB / 412.4 MB, free: 15.11 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.004922/0.5031, allocations: 1.469 MB / 413.9 MB, free: 13.63 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005284/0.5037, allocations: 11.94 kB / 413.9 MB, free: 13.62 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001488/0.5052, allocations: 234.9 kB / 414.1 MB, free: 13.39 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001125/0.5064, allocations: 203 kB / 414.3 MB, free: 13.19 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00146/0.5078, allocations: 259 kB / 414.6 MB, free: 12.94 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001105/0.509, allocations: 491.8 kB / 415.1 MB, free: 12.46 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005927/0.5096, allocations: 209.8 kB / 415.3 MB, free: 12.24 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004174/0.51, allocations: 195.2 kB / 415.5 MB, free: 12.05 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003925/0.5104, allocations: 215 kB / 415.7 MB, free: 11.84 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 9.638e-05/0.5106, allocations: 32 kB / 415.7 MB, free: 11.81 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004436/0.511, allocations: 127.8 kB / 415.8 MB, free: 11.68 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002239/0.5113, allocations: 119.6 kB / 415.9 MB, free: 11.57 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003195/0.5116, allocations: 222.7 kB / 416.2 MB, free: 11.35 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001066/0.5127, allocations: 0.5654 MB / 416.7 MB, free: 10.79 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.915e-06/0.5127, allocations: 0 / 416.7 MB, free: 10.79 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.836e-06/0.5127, allocations: 0 / 416.7 MB, free: 10.79 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.206e-05/0.5128, allocations: 4 kB / 416.7 MB, free: 10.78 MB / 334.1 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.002353/0.5151, allocations: 0.8515 MB / 417.6 MB, free: 9.867 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.641e-05/0.5152, allocations: 11.97 kB / 417.6 MB, free: 9.855 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004637/0.5157, allocations: 68.27 kB / 417.7 MB, free: 9.789 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009076/0.5166, allocations: 399 kB / 418 MB, free: 9.359 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001165/0.5167, allocations: 55.27 kB / 418.1 MB, free: 9.301 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.51e-05/0.5169, allocations: 43.94 kB / 418.1 MB, free: 9.258 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001167/0.518, allocations: 428.7 kB / 418.6 MB, free: 8.797 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.259e-05/0.5181, allocations: 0 / 418.6 MB, free: 8.797 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.049e-05/0.5182, allocations: 23.98 kB / 418.6 MB, free: 8.773 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.44e-05/0.5182, allocations: 12.44 kB / 418.6 MB, free: 8.762 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008976/0.5191, allocations: 269.5 kB / 418.9 MB, free: 8.496 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00292/0.5221, allocations: 1.67 MB / 420.5 MB, free: 6.742 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008383/0.5229, allocations: 287.9 kB / 420.8 MB, free: 6.434 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003585/0.5233, allocations: 134.5 kB / 420.9 MB, free: 6.293 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.789e-05/0.5234, allocations: 11.98 kB / 420.9 MB, free: 6.281 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006907/0.5241, allocations: 319.9 kB / 421.3 MB, free: 5.93 MB / 334.1 MB Notification: Performance of pre-optimization done (n=37): time 3.507e-06/0.5241, allocations: 7.938 kB / 421.3 MB, free: 5.922 MB / 334.1 MB Notification: Performance of matching and sorting (n=37): time 0.001407/0.5256, allocations: 474.2 kB / 421.7 MB, free: 5.449 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001178/0.5257, allocations: 166.2 kB / 421.9 MB, free: 5.25 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008392/0.5265, allocations: 0.4895 MB / 422.4 MB, free: 4.75 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 5.949e-05/0.5266, allocations: 37.7 kB / 422.4 MB, free: 4.707 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002801/0.5269, allocations: 240.5 kB / 422.7 MB, free: 4.469 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001263/0.5271, allocations: 86.91 kB / 422.7 MB, free: 4.383 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002351/0.5273, allocations: 118.2 kB / 422.9 MB, free: 4.262 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0002023/0.5275, allocations: 362.7 kB / 423.2 MB, free: 3.898 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004068/0.5279, allocations: 117.1 kB / 423.3 MB, free: 3.785 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005344/0.5285, allocations: 266.7 kB / 423.6 MB, free: 3.461 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008176/0.5293, allocations: 394.6 kB / 424 MB, free: 3.008 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.887e-06/0.5293, allocations: 0 / 424 MB, free: 3.008 MB / 334.1 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.001244/0.5306, allocations: 470.2 kB / 424.4 MB, free: 2.535 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.751e-05/0.5307, allocations: 41.69 kB / 424.5 MB, free: 2.488 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.449e-05/0.5307, allocations: 4 kB / 424.5 MB, free: 2.484 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.08e-05/0.5308, allocations: 8 kB / 424.5 MB, free: 2.477 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002316/0.531, allocations: 35.92 kB / 424.5 MB, free: 2.441 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.345e-05/0.531, allocations: 12.41 kB / 424.5 MB, free: 2.43 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004261/0.5315, allocations: 55.56 kB / 424.6 MB, free: 2.375 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.132e-05/0.5316, allocations: 20.31 kB / 424.6 MB, free: 2.355 MB / 334.1 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.0004843/0.532, allocations: 264.4 kB / 424.9 MB, free: 2.078 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001446/0.5322, allocations: 51.42 kB / 424.9 MB, free: 2.027 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007393/0.533, allocations: 229.2 kB / 425.1 MB, free: 1.801 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.468e-06/0.533, allocations: 7.938 kB / 425.1 MB, free: 1.793 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.082e-05/0.533, allocations: 4 kB / 425.1 MB, free: 1.789 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.216e-06/0.533, allocations: 0 / 425.1 MB, free: 1.789 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001662/0.5347, allocations: 0.7415 MB / 425.9 MB, free: 0.9883 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.11e-06/0.5347, allocations: 0 / 425.9 MB, free: 0.9883 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001012/0.5348, allocations: 15.92 kB / 425.9 MB, free: 0.9727 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.007e-05/0.5349, allocations: 4 kB / 425.9 MB, free: 0.9688 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.214e-05/0.5349, allocations: 12 kB / 425.9 MB, free: 0.957 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.558e-06/0.5349, allocations: 4 kB / 425.9 MB, free: 0.9531 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.166e-06/0.5349, allocations: 0 / 425.9 MB, free: 0.9531 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001159/0.5361, allocations: 0.4885 MB / 426.4 MB, free: 448 kB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001636/0.5363, allocations: 116.6 kB / 426.5 MB, free: 312 kB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001093/0.5364, allocations: 16 kB / 426.5 MB, free: 296 kB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003953/0.5368, allocations: 23.98 kB / 426.6 MB, free: 272 kB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002194/0.5371, allocations: 43.88 kB / 426.6 MB, free: 228 kB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.181e-05/0.5372, allocations: 16 kB / 426.6 MB, free: 212 kB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0006729/0.5379, allocations: 327.1 kB / 426.9 MB, free: 15.89 MB / 350.1 MB Notification: Performance of sort global known variables: time 5.11e-07/0.5379, allocations: 4 kB / 426.9 MB, free: 15.88 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0009655/0.5389, allocations: 119.9 kB / 427.1 MB, free: 15.77 MB / 350.1 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,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 (34): * Single equations (assignments): 28 * 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.001926/0.5408, allocations: 454.3 kB / 427.5 MB, free: 15.45 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.00137/0.5422, allocations: 390.3 kB / 427.9 MB, free: 15.06 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 5.58e-06/0.5422, allocations: 0 / 427.9 MB, free: 15.06 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006572/0.5429, allocations: 242.7 kB / 428.1 MB, free: 14.81 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001111/0.544, allocations: 92.27 kB / 428.2 MB, free: 14.73 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002649/0.5467, allocations: 0.8178 MB / 429 MB, free: 13.87 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000647/0.5474, allocations: 0.8395 MB / 429.9 MB, free: 13 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002115/0.5476, allocations: 43.42 kB / 429.9 MB, free: 12.96 MB / 350.1 MB Notification: Performance of SimCode: time 7.41e-07/0.5476, allocations: 0 / 429.9 MB, free: 12.96 MB / 350.1 MB Notification: Performance of Templates: time 0.01528/0.5629, allocations: 6.215 MB / 436.1 MB, free: 6.754 MB / 350.1 MB make -j1 -f Modelica_trunk_Modelica.Blocks.Examples.BooleanNetwork1.makefile (rm -f Modelica_trunk_Modelica.Blocks.Examples.BooleanNetwork1.pipe ; mkfifo Modelica_trunk_Modelica.Blocks.Examples.BooleanNetwork1.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Blocks.Examples.BooleanNetwork1.pipe >> ../files/Modelica_trunk_Modelica.Blocks.Examples.BooleanNetwork1.sim & ./Modelica_trunk_Modelica.Blocks.Examples.BooleanNetwork1 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Blocks.Examples.BooleanNetwork1.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Blocks.Examples.BooleanNetwork1_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Blocks/Examples/BooleanNetwork1/BooleanNetwork1.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Blocks.Examples.BooleanNetwork1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches