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.001305/0.001305, allocations: 104.5 kB / 17.85 MB, free: 5.656 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001299/0.001299, allocations: 205.8 kB / 18.79 MB, free: 4.727 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.289/1.289, allocations: 227.4 MB / 246.9 MB, free: 10.74 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001284/0.001284, allocations: 65.62 kB / 306.9 MB, free: 1.051 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1089/0.1102, allocations: 50.53 MB / 357.4 MB, free: 14.52 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.BooleanNetwork1): time 0.004453/0.1147, allocations: 2.507 MB / 359.9 MB, free: 11.99 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002661/0.1174, allocations: 1.464 MB / 361.4 MB, free: 10.52 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003671/0.1178, allocations: 15.88 kB / 361.4 MB, free: 10.51 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009711/0.1188, allocations: 215.3 kB / 361.6 MB, free: 10.3 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006215/0.1194, allocations: 167.3 kB / 361.8 MB, free: 10.13 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007065/0.1201, allocations: 239.1 kB / 362 MB, free: 9.902 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006013/0.1207, allocations: 455.7 kB / 362.5 MB, free: 9.457 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003813/0.1211, allocations: 209.8 kB / 362.7 MB, free: 9.238 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002884/0.1214, allocations: 171.2 kB / 362.8 MB, free: 9.07 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002829/0.1217, allocations: 218.9 kB / 363 MB, free: 8.855 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 6.712e-05/0.1218, allocations: 20 kB / 363.1 MB, free: 8.836 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002837/0.1221, allocations: 99.88 kB / 363.2 MB, free: 8.738 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001673/0.1223, allocations: 115.6 kB / 363.3 MB, free: 8.625 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002435/0.1225, allocations: 202.7 kB / 363.5 MB, free: 8.426 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005587/0.1231, allocations: 383.5 kB / 363.9 MB, free: 8.051 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.639e-06/0.1231, allocations: 0 / 363.9 MB, free: 8.051 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.213e-06/0.1231, allocations: 0 / 363.9 MB, free: 8.051 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.662e-05/0.1231, allocations: 0 / 363.9 MB, free: 8.051 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.001781/0.1249, allocations: 0.8652 MB / 364.7 MB, free: 7.129 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.937e-05/0.125, allocations: 8.031 kB / 364.7 MB, free: 7.121 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003208/0.1253, allocations: 68.22 kB / 364.8 MB, free: 7.055 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006716/0.126, allocations: 383.1 kB / 365.2 MB, free: 6.641 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.376e-05/0.1261, allocations: 63.27 kB / 365.2 MB, free: 6.57 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.806e-05/0.1262, allocations: 39.92 kB / 365.3 MB, free: 6.531 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007506/0.1269, allocations: 428.7 kB / 365.7 MB, free: 6.074 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.866e-05/0.1269, allocations: 0 / 365.7 MB, free: 6.074 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.188e-05/0.127, allocations: 23.92 kB / 365.7 MB, free: 6.051 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.442e-05/0.127, allocations: 16.44 kB / 365.7 MB, free: 6.035 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005263/0.1276, allocations: 269.5 kB / 366 MB, free: 5.773 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002279/0.1299, allocations: 1.67 MB / 367.7 MB, free: 4.016 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006329/0.1305, allocations: 299.9 kB / 367.9 MB, free: 3.695 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002345/0.1307, allocations: 130.4 kB / 368.1 MB, free: 3.559 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.584e-05/0.1308, allocations: 8.062 kB / 368.1 MB, free: 3.551 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005/0.1313, allocations: 327.7 kB / 368.4 MB, free: 3.191 MB / 302.1 MB Notification: Performance of pre-optimization done (n=37): time 2.254e-06/0.1313, allocations: 0 / 368.4 MB, free: 3.191 MB / 302.1 MB Notification: Performance of matching and sorting (n=37): time 0.00114/0.1325, allocations: 478.1 kB / 368.9 MB, free: 2.715 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001262/0.1326, allocations: 166.2 kB / 369 MB, free: 2.516 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000596/0.1332, allocations: 0.4972 MB / 369.5 MB, free: 2.008 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 5.515e-05/0.1333, allocations: 41.7 kB / 369.6 MB, free: 1.961 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001931/0.1335, allocations: 228.6 kB / 369.8 MB, free: 1.734 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001252/0.1336, allocations: 90.86 kB / 369.9 MB, free: 1.645 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001991/0.1338, allocations: 122.2 kB / 370 MB, free: 1.52 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.000173/0.134, allocations: 358.7 kB / 370.4 MB, free: 1.16 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002403/0.1343, allocations: 117 kB / 370.5 MB, free: 1.047 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003687/0.1346, allocations: 266.7 kB / 370.7 MB, free: 0.7266 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006626/0.1353, allocations: 407.1 kB / 371.1 MB, free: 268 kB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.971e-06/0.1353, allocations: 0 / 371.1 MB, free: 268 kB / 302.1 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.176/0.3113, allocations: 455.6 kB / 371.6 MB, free: 20.55 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.375e-05/0.3114, allocations: 34.89 kB / 371.6 MB, free: 20.52 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.551e-05/0.3115, allocations: 4.031 kB / 371.6 MB, free: 20.52 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.772e-05/0.3115, allocations: 10.66 kB / 371.6 MB, free: 20.52 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001596/0.3117, allocations: 40.94 kB / 371.7 MB, free: 20.52 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.76e-05/0.3117, allocations: 10.25 kB / 371.7 MB, free: 20.52 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003082/0.312, allocations: 52.91 kB / 371.7 MB, free: 20.52 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.645e-05/0.3121, allocations: 20.41 kB / 371.7 MB, free: 20.52 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.0003845/0.3124, allocations: 255.6 kB / 372 MB, free: 20.37 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.31e-05/0.3126, allocations: 45.48 kB / 372 MB, free: 20.37 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005085/0.3131, allocations: 233.3 kB / 372.3 MB, free: 20.33 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.277e-06/0.3131, allocations: 5.625 kB / 372.3 MB, free: 20.33 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.205e-06/0.3131, allocations: 5.781 kB / 372.3 MB, free: 20.33 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.034e-06/0.3131, allocations: 1.922 kB / 372.3 MB, free: 20.33 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001085/0.3142, allocations: 0.7509 MB / 373 MB, free: 20.03 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.637e-06/0.3142, allocations: 0.875 kB / 373 MB, free: 20.03 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.461e-05/0.3143, allocations: 18.44 kB / 373 MB, free: 20.03 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.611e-06/0.3143, allocations: 2.406 kB / 373 MB, free: 20.03 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.324e-05/0.3143, allocations: 11.14 kB / 373.1 MB, free: 20.02 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.366e-06/0.3143, allocations: 2.375 kB / 373.1 MB, free: 20.02 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.687e-06/0.3144, allocations: 5.734 kB / 373.1 MB, free: 20.02 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006955/0.3151, allocations: 497.1 kB / 373.6 MB, free: 19.75 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.548e-05/0.3151, allocations: 119.6 kB / 373.7 MB, free: 19.66 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.893e-05/0.3152, allocations: 15.34 kB / 373.7 MB, free: 19.65 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002221/0.3154, allocations: 25.66 kB / 373.7 MB, free: 19.64 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001531/0.3156, allocations: 41.27 kB / 373.7 MB, free: 19.63 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.585e-05/0.3157, allocations: 13.61 kB / 373.8 MB, free: 19.63 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0003773/0.316, allocations: 332.1 kB / 374.1 MB, free: 19.48 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.316, allocations: 2.5 kB / 374.1 MB, free: 19.48 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005189/0.3166, allocations: 107.1 kB / 374.2 MB, free: 19.46 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.00103/0.3176, allocations: 449.4 kB / 374.6 MB, free: 19.31 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0007628/0.3184, allocations: 395.8 kB / 375 MB, free: 19.14 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.386e-06/0.3184, allocations: 2.734 kB / 375 MB, free: 19.14 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003257/0.3187, allocations: 239.9 kB / 375.3 MB, free: 19.02 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005602/0.3193, allocations: 86.39 kB / 375.3 MB, free: 18.99 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001387/0.3207, allocations: 0.9603 MB / 376.3 MB, free: 18.4 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000355/0.3211, allocations: 0.8372 MB / 377.1 MB, free: 17.69 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001589/0.3212, allocations: 41.86 kB / 377.2 MB, free: 17.68 MB / 302.1 MB Notification: Performance of SimCode: time 1.172e-06/0.3212, allocations: 0 / 377.2 MB, free: 17.68 MB / 302.1 MB Notification: Performance of Templates: time 0.01108/0.3323, allocations: 6.104 MB / 383.3 MB, free: 16.49 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/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