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.001064/0.001065, allocations: 96.12 kB / 17.35 MB, free: 6.371 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001525/0.001525, allocations: 201.9 kB / 18.28 MB, free: 5.496 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.509/1.509, allocations: 227.7 MB / 246.8 MB, free: 11.5 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002582/0.0002582, allocations: 8 kB / 307.7 MB, free: 0.8281 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1124/0.1127, allocations: 51.53 MB / 359.3 MB, free: 13.3 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.BooleanNetwork1): time 0.003071/0.1158, allocations: 2.125 MB / 361.4 MB, free: 11.16 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002359/0.1182, allocations: 1.43 MB / 362.8 MB, free: 9.727 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001474/0.1183, allocations: 15.88 kB / 362.8 MB, free: 9.711 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005777/0.1189, allocations: 211.3 kB / 363 MB, free: 9.504 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003684/0.1193, allocations: 175.4 kB / 363.2 MB, free: 9.332 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004868/0.1198, allocations: 227.7 kB / 363.4 MB, free: 9.109 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.000431/0.1202, allocations: 459.7 kB / 363.9 MB, free: 8.66 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002977/0.1205, allocations: 201.8 kB / 364.1 MB, free: 8.449 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001714/0.1207, allocations: 151.2 kB / 364.2 MB, free: 8.301 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001895/0.1209, allocations: 171 kB / 364.4 MB, free: 8.133 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 4.036e-05/0.121, allocations: 12 kB / 364.4 MB, free: 8.121 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001746/0.1212, allocations: 91.88 kB / 364.5 MB, free: 8.031 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001003/0.1213, allocations: 91.56 kB / 364.6 MB, free: 7.941 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001713/0.1214, allocations: 216.4 kB / 364.8 MB, free: 7.723 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004664/0.1219, allocations: 498.4 kB / 365.3 MB, free: 7.234 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.985e-06/0.1219, allocations: 0 / 365.3 MB, free: 7.234 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.202e-06/0.1219, allocations: 0 / 365.3 MB, free: 7.234 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.55e-06/0.1219, allocations: 0 / 365.3 MB, free: 7.234 MB / 302.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.001109/0.1231, allocations: 0.7775 MB / 366.1 MB, free: 6.398 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.141e-05/0.1231, allocations: 8.031 kB / 366.1 MB, free: 6.391 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002212/0.1233, allocations: 64.27 kB / 366.1 MB, free: 6.328 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004547/0.1238, allocations: 394.9 kB / 366.5 MB, free: 5.902 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.541e-05/0.1239, allocations: 55.27 kB / 366.6 MB, free: 5.84 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.987e-05/0.1239, allocations: 43.94 kB / 366.6 MB, free: 5.797 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006154/0.1245, allocations: 428.7 kB / 367 MB, free: 5.34 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.252e-05/0.1246, allocations: 3.938 kB / 367 MB, free: 5.336 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.481e-05/0.1246, allocations: 19.98 kB / 367.1 MB, free: 5.316 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.182e-05/0.1246, allocations: 16.44 kB / 367.1 MB, free: 5.301 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000445/0.1251, allocations: 261.5 kB / 367.3 MB, free: 5.047 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001805/0.1269, allocations: 1.682 MB / 369 MB, free: 3.277 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005887/0.1275, allocations: 299.9 kB / 369.3 MB, free: 2.957 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002147/0.1277, allocations: 134.5 kB / 369.4 MB, free: 2.816 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.707e-05/0.1278, allocations: 7.984 kB / 369.4 MB, free: 2.809 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004303/0.1282, allocations: 327.6 kB / 369.8 MB, free: 2.449 MB / 302.1 MB Notification: Performance of pre-optimization done (n=37): time 3.747e-06/0.1282, allocations: 4 kB / 369.8 MB, free: 2.445 MB / 302.1 MB Notification: Performance of matching and sorting (n=37): time 0.0008873/0.1291, allocations: 472.3 kB / 370.2 MB, free: 1.973 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.226e-05/0.1292, allocations: 166.2 kB / 370.4 MB, free: 1.773 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000508/0.1297, allocations: 0.4972 MB / 370.9 MB, free: 1.266 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.169e-05/0.1298, allocations: 37.7 kB / 370.9 MB, free: 1.223 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002039/0.13, allocations: 232.6 kB / 371.1 MB, free: 0.9922 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.515e-05/0.1301, allocations: 90.94 kB / 371.2 MB, free: 0.9023 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000121/0.1302, allocations: 77.66 kB / 371.3 MB, free: 0.8203 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001581/0.1304, allocations: 362.7 kB / 371.7 MB, free: 468 kB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002494/0.1307, allocations: 113.1 kB / 371.8 MB, free: 356 kB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003454/0.131, allocations: 275.3 kB / 372 MB, free: 20 kB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.1878/0.3189, allocations: 394.8 kB / 372.4 MB, free: 18.75 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.285e-06/0.3189, allocations: 1.75 kB / 372.4 MB, free: 18.75 MB / 302.1 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.00105/0.32, allocations: 471.9 kB / 372.9 MB, free: 18.66 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.813e-05/0.32, allocations: 39.27 kB / 372.9 MB, free: 18.63 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.216e-05/0.32, allocations: 4.031 kB / 372.9 MB, free: 18.63 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.78e-05/0.3201, allocations: 7.172 kB / 372.9 MB, free: 18.63 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001659/0.3203, allocations: 39.5 kB / 373 MB, free: 18.63 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.587e-05/0.3203, allocations: 10.88 kB / 373 MB, free: 18.62 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002703/0.3206, allocations: 62.22 kB / 373.1 MB, free: 18.62 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.779e-05/0.3206, allocations: 22.81 kB / 373.1 MB, free: 18.62 MB / 302.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.0002763/0.3209, allocations: 257.4 kB / 373.3 MB, free: 18.46 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.164e-05/0.321, allocations: 47.77 kB / 373.4 MB, free: 18.46 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004501/0.3214, allocations: 229.7 kB / 373.6 MB, free: 18.43 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.647e-06/0.3214, allocations: 3.906 kB / 373.6 MB, free: 18.43 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.216e-06/0.3215, allocations: 1.609 kB / 373.6 MB, free: 18.43 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.364e-06/0.3215, allocations: 2.594 kB / 373.6 MB, free: 18.43 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001015/0.3225, allocations: 0.7438 MB / 374.4 MB, free: 18.13 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.176e-06/0.3225, allocations: 4.859 kB / 374.4 MB, free: 18.13 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.764e-05/0.3226, allocations: 18.41 kB / 374.4 MB, free: 18.12 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.428e-06/0.3226, allocations: 1.844 kB / 374.4 MB, free: 18.12 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.199e-05/0.3226, allocations: 13.88 kB / 374.4 MB, free: 18.12 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.779e-06/0.3226, allocations: 6 kB / 374.4 MB, free: 18.12 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.785e-06/0.3226, allocations: 1.562 kB / 374.4 MB, free: 18.12 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006898/0.3233, allocations: 498.6 kB / 374.9 MB, free: 17.94 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.072e-05/0.3234, allocations: 125.3 kB / 375 MB, free: 17.82 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.631e-05/0.3235, allocations: 15.86 kB / 375 MB, free: 17.82 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002162/0.3237, allocations: 27.83 kB / 375 MB, free: 17.82 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001261/0.3238, allocations: 47.36 kB / 375.1 MB, free: 17.82 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.545e-05/0.3239, allocations: 15.48 kB / 375.1 MB, free: 17.82 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0004204/0.3243, allocations: 330.8 kB / 375.4 MB, free: 17.73 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.3243, allocations: 0 / 375.4 MB, free: 17.73 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000483/0.3248, allocations: 116.2 kB / 375.5 MB, free: 17.72 MB / 302.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.0009392/0.3258, allocations: 458.8 kB / 376 MB, free: 17.54 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0006385/0.3264, allocations: 398.5 kB / 376.4 MB, free: 17.45 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.564e-06/0.3264, allocations: 0 / 376.4 MB, free: 17.45 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002908/0.3267, allocations: 233 kB / 376.6 MB, free: 17.38 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005809/0.3273, allocations: 88.7 kB / 376.7 MB, free: 17.37 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001254/0.3286, allocations: 0.9228 MB / 377.6 MB, free: 16.89 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002695/0.3288, allocations: 0.8371 MB / 378.5 MB, free: 16.18 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0002052/0.3291, allocations: 69.67 kB / 378.5 MB, free: 16.18 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.488e-05/0.3292, allocations: 37.77 kB / 378.6 MB, free: 16.17 MB / 302.1 MB Notification: Performance of SimCode: time 4.51e-07/0.3292, allocations: 0 / 378.6 MB, free: 16.17 MB / 302.1 MB Notification: Performance of Templates: time 0.01119/0.3404, allocations: 4.834 MB / 383.4 MB, free: 15.73 MB / 302.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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Blocks/Examples/BooleanNetwork1/BooleanNetwork1.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Blocks.Examples.BooleanNetwork1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches