Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Blocks.Examples.BooleanNetwork1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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_3.2.3_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_3.2.3_Modelica.Blocks.Examples.BooleanNetwork1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001308/0.001308, allocations: 172.2 kB / 14.1 MB, free: 1.223 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.552/1.552, allocations: 205.2 MB / 219.8 MB, free: 14.26 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008809/0.000881, allocations: 74.67 kB / 267.9 MB, free: 14.1 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.402e-05/2.412e-05, allocations: 4 kB / 322.4 MB, free: 17.36 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1008/0.1008, allocations: 47.57 MB / 370 MB, free: 1.723 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3501/0.451, allocations: 82.55 MB / 452.6 MB, free: 10.8 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002305/0.4512, allocations: 75.66 kB / 452.6 MB, free: 10.77 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02461/0.4759, allocations: 9.059 MB / 461.7 MB, free: 3.066 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.412e-06/0.4759, allocations: 0 / 461.7 MB, free: 3.066 MB / 330.7 MB Notification: Performance of Transformations before backend: time 3.115e-05/0.476, allocations: 12 kB / 461.7 MB, free: 3.055 MB / 330.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.001095/0.4771, allocations: 0.7297 MB / 462.4 MB, free: 2.301 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.322e-05/0.4771, allocations: 8.031 kB / 462.4 MB, free: 2.293 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001205/0.4772, allocations: 55.34 kB / 462.5 MB, free: 2.238 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006149/0.4779, allocations: 380.9 kB / 462.9 MB, free: 1.863 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.466e-05/0.4779, allocations: 58.98 kB / 462.9 MB, free: 1.812 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.311e-05/0.478, allocations: 40.27 kB / 463 MB, free: 1.785 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006037/0.4786, allocations: 416.6 kB / 463.4 MB, free: 1.371 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.207e-05/0.4786, allocations: 4 kB / 463.4 MB, free: 1.367 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.935e-05/0.4787, allocations: 12 kB / 463.4 MB, free: 1.355 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.901e-05/0.4787, allocations: 20.38 kB / 463.4 MB, free: 1.336 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003917/0.4791, allocations: 241.5 kB / 463.6 MB, free: 1.098 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001867/0.481, allocations: 1.675 MB / 465.3 MB, free: 15.34 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004699/0.4815, allocations: 287.9 kB / 465.6 MB, free: 15.03 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001716/0.4817, allocations: 122.5 kB / 465.7 MB, free: 14.9 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.061e-05/0.4817, allocations: 12.23 kB / 465.7 MB, free: 14.89 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003804/0.4821, allocations: 316.6 kB / 466 MB, free: 14.54 MB / 346.7 MB Notification: Performance of pre-optimization done (n=37): time 1.673e-06/0.4821, allocations: 0 / 466 MB, free: 14.54 MB / 346.7 MB Notification: Performance of matching and sorting (n=37): time 0.000619/0.4828, allocations: 370.2 kB / 466.4 MB, free: 14.16 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001031/0.4829, allocations: 178.1 kB / 466.6 MB, free: 13.95 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005382/0.4834, allocations: 438.4 kB / 467 MB, free: 13.52 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 4.637e-05/0.4835, allocations: 41.69 kB / 467 MB, free: 13.47 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001711/0.4837, allocations: 224.7 kB / 467.3 MB, free: 13.25 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.874e-05/0.4838, allocations: 86.94 kB / 467.3 MB, free: 13.16 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.969e-05/0.4838, allocations: 8 kB / 467.4 MB, free: 13.16 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001601/0.4839, allocations: 354.8 kB / 467.7 MB, free: 12.8 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001991/0.4842, allocations: 113.1 kB / 467.8 MB, free: 12.69 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002972/0.4845, allocations: 254.7 kB / 468.1 MB, free: 12.38 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002508/0.4847, allocations: 171.8 kB / 468.2 MB, free: 12.21 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.767e-06/0.4847, allocations: 0 / 468.2 MB, free: 12.21 MB / 346.7 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.0006898/0.4854, allocations: 462.4 kB / 468.7 MB, free: 11.74 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.82e-05/0.4855, allocations: 37.69 kB / 468.7 MB, free: 11.7 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.179e-05/0.4855, allocations: 4.078 kB / 468.7 MB, free: 11.7 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.39e-05/0.4855, allocations: 11.95 kB / 468.7 MB, free: 11.68 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001494/0.4857, allocations: 43.86 kB / 468.8 MB, free: 11.64 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.907e-05/0.4857, allocations: 15.97 kB / 468.8 MB, free: 11.62 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002318/0.486, allocations: 48.08 kB / 468.8 MB, free: 11.58 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.803e-05/0.486, allocations: 24 kB / 468.9 MB, free: 11.55 MB / 346.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,$PRE.triggeredAdd.y,triggeredAdd.y,$whenCondition5,$whenCondition4,$whenCondition1,$PRE.booleanTable.combiTimeTable.nextTimeEvent,$whenCondition2,$whenCondition3,onDelay.u,onDelay.y,onDelay.delaySignal,onDelay.t_next,booleanTable.combiTimeTable.nextTimeEvent,$PRE.booleanTable.combiTimeTable.nextTimeEventScaled,booleanTable.combiTimeTable.nextTimeEventScaled,rSFlipFlop.Q,rSFlipFlop.QI,$PRE.rSFlipFlop.pre.u,rSFlipFlop.pre.u,rSFlipFlop.S,rSFlipFlop.R,triggeredAdd.local_set,triggeredAdd.local_reset,$whenCondition6,and1.u[1],and1.u[2],$PRE.booleanPulse1.pulseStart,booleanPulse1.pulseStart,$PRE.booleanPulse2.pulseStart,booleanPulse2.pulseStart,or1.u[1],xor1.u[1],nand1.u[1],or2.u[1],nor1.y,$PRE.rising.u,rising.u,set1.u[1],set1.u[2],$PRE.set1.y,set1.y,set1.firstActiveIndex,$PRE.falling.not_u,falling.not_u,$PRE.changing.u,changing.u,changing.y,set1.expr[1],set1.expr[2],showValue6.active,showValue5.active,showValue1.number,showValue4.active,showValue3.active,showValue2.active,showValue.active) * Number of discrete 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001784/0.4862, allocations: 187.8 kB / 469 MB, free: 11.36 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.935e-05/0.4863, allocations: 43.53 kB / 469.1 MB, free: 11.31 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006498/0.487, allocations: 414.6 kB / 469.5 MB, free: 10.89 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.49e-06/0.487, allocations: 4 kB / 469.5 MB, free: 10.88 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.634e-06/0.487, allocations: 3.953 kB / 469.5 MB, free: 10.88 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.166e-05/0.487, allocations: 3.984 kB / 469.5 MB, free: 10.88 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001024/0.488, allocations: 0.7791 MB / 470.3 MB, free: 10.04 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.32e-06/0.4881, allocations: 11.94 kB / 470.3 MB, free: 10.03 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.69e-05/0.4881, allocations: 23.88 kB / 470.3 MB, free: 10 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.807e-06/0.4881, allocations: 0 / 470.3 MB, free: 10 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.085e-05/0.4882, allocations: 15.98 kB / 470.3 MB, free: 9.988 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.324e-06/0.4882, allocations: 0 / 470.3 MB, free: 9.988 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.525e-06/0.4882, allocations: 0 / 470.3 MB, free: 9.988 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006213/0.4888, allocations: 0.5255 MB / 470.9 MB, free: 9.422 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001196/0.4889, allocations: 124.6 kB / 471 MB, free: 9.281 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.394e-05/0.489, allocations: 12 kB / 471 MB, free: 9.27 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002171/0.4892, allocations: 27.97 kB / 471 MB, free: 9.242 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001184/0.4894, allocations: 39.95 kB / 471.1 MB, free: 9.203 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.873e-05/0.4894, allocations: 23.98 kB / 471.1 MB, free: 9.18 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0003413/0.4898, allocations: 313.2 kB / 471.4 MB, free: 8.875 MB / 346.7 MB Notification: Performance of sort global known variables: time 2.2e-07/0.4898, allocations: 0 / 471.4 MB, free: 8.875 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0004398/0.4902, allocations: 116.2 kB / 471.5 MB, free: 8.762 MB / 346.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,rSFlipFlop.S,rSFlipFlop.R,$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 (rising.u,falling.not_u,set1.y,changing.u,triggeredAdd.y,onDelay.t_next,onDelay.delaySignal,$whenCondition3,$whenCondition2,booleanTable.combiTimeTable.nextTimeEvent,booleanTable.combiTimeTable.nextTimeEventScaled,rSFlipFlop.pre.u) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0009563/0.4912, allocations: 423.8 kB / 471.9 MB, free: 8.352 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0006119/0.4918, allocations: 403 kB / 472.3 MB, free: 7.945 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.535e-06/0.4918, allocations: 0 / 472.3 MB, free: 7.945 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002802/0.4921, allocations: 239.1 kB / 472.5 MB, free: 7.699 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004736/0.4926, allocations: 94.48 kB / 472.6 MB, free: 7.609 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009845/0.4936, allocations: 0.5994 MB / 473.2 MB, free: 6.984 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003671/0.494, allocations: 0.848 MB / 474.1 MB, free: 6.105 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0001996/0.4942, allocations: 83.41 kB / 474.2 MB, free: 6.023 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000105/0.4943, allocations: 39.42 kB / 474.2 MB, free: 5.984 MB / 346.7 MB Notification: Performance of SimCode: time 2.61e-07/0.4943, allocations: 0 / 474.2 MB, free: 5.984 MB / 346.7 MB Notification: Performance of Templates: time 0.009607/0.5039, allocations: 5.129 MB / 479.3 MB, free: 0.8516 MB / 346.7 MB make -j1 -f Modelica_3.2.3_Modelica.Blocks.Examples.BooleanNetwork1.makefile (rm -f Modelica_3.2.3_Modelica.Blocks.Examples.BooleanNetwork1.pipe ; mkfifo Modelica_3.2.3_Modelica.Blocks.Examples.BooleanNetwork1.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Blocks.Examples.BooleanNetwork1.pipe >> ../files/Modelica_3.2.3_Modelica.Blocks.Examples.BooleanNetwork1.sim & ./Modelica_3.2.3_Modelica.Blocks.Examples.BooleanNetwork1 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Blocks.Examples.BooleanNetwork1.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Blocks.Examples.BooleanNetwork1_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Blocks/Examples/BooleanNetwork1/BooleanNetwork1.csv","../files/Modelica_3.2.3_Modelica.Blocks.Examples.BooleanNetwork1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches