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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) 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) 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) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001526/0.001526, allocations: 114.2 kB / 17.75 MB, free: 5.355 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001858/0.001858, allocations: 185.4 kB / 18.68 MB, free: 4.434 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.354/1.354, allocations: 222.9 MB / 242.4 MB, free: 15.17 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001061/0.001061, allocations: 47.94 kB / 352 MB, free: 3.234 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2397/0.2408, allocations: 49.43 MB / 401.4 MB, free: 8.738 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.BooleanNetwork1): time 0.003963/0.2448, allocations: 2.462 MB / 403.9 MB, free: 6.398 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002222/0.247, allocations: 1.325 MB / 405.2 MB, free: 5.07 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001781/0.2472, allocations: 7.938 kB / 405.2 MB, free: 5.062 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006874/0.2479, allocations: 241.7 kB / 405.4 MB, free: 4.828 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003633/0.2483, allocations: 159.2 kB / 405.6 MB, free: 4.672 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006675/0.249, allocations: 301.4 kB / 405.9 MB, free: 4.379 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004983/0.2495, allocations: 467.8 kB / 406.4 MB, free: 3.918 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003354/0.2498, allocations: 217.8 kB / 406.6 MB, free: 3.695 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002796/0.2501, allocations: 195.2 kB / 406.8 MB, free: 3.504 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002769/0.2504, allocations: 211 kB / 407 MB, free: 3.297 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 7.717e-05/0.2505, allocations: 36 kB / 407 MB, free: 3.262 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002638/0.2508, allocations: 123.9 kB / 407.1 MB, free: 3.141 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001438/0.2509, allocations: 127.6 kB / 407.2 MB, free: 3.016 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002237/0.2511, allocations: 218.7 kB / 407.5 MB, free: 2.801 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006641/0.2518, allocations: 0.5576 MB / 408 MB, free: 2.246 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.366e-06/0.2518, allocations: 0 / 408 MB, free: 2.246 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.212e-06/0.2518, allocations: 0 / 408 MB, free: 2.246 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.07e-05/0.2519, allocations: 0 / 408 MB, free: 2.246 MB / 318.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.001535/0.2534, allocations: 0.8592 MB / 408.9 MB, free: 1.324 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.817e-05/0.2534, allocations: 8.031 kB / 408.9 MB, free: 1.316 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001467/0.2536, allocations: 56.28 kB / 408.9 MB, free: 1.262 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005658/0.2542, allocations: 402.8 kB / 409.3 MB, free: 0.8281 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.143e-05/0.2543, allocations: 54.7 kB / 409.4 MB, free: 0.7695 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.356e-05/0.2543, allocations: 40 kB / 409.4 MB, free: 0.7305 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007297/0.255, allocations: 420.7 kB / 409.8 MB, free: 284 kB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.343e-05/0.2551, allocations: 4 kB / 409.8 MB, free: 280 kB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.075e-05/0.2551, allocations: 31.92 kB / 409.9 MB, free: 248 kB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.377e-05/0.2552, allocations: 12.44 kB / 409.9 MB, free: 236 kB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000502/0.2557, allocations: 261.5 kB / 410.1 MB, free: 15.97 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001953/0.2576, allocations: 1.67 MB / 411.8 MB, free: 14.22 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000569/0.2582, allocations: 295.9 kB / 412.1 MB, free: 13.9 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002309/0.2584, allocations: 126.5 kB / 412.2 MB, free: 13.77 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.179e-05/0.2585, allocations: 19.83 kB / 412.2 MB, free: 13.75 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004451/0.259, allocations: 333 kB / 412.6 MB, free: 13.38 MB / 334.1 MB Notification: Performance of pre-optimization done (n=37): time 2.104e-06/0.259, allocations: 0 / 412.6 MB, free: 13.38 MB / 334.1 MB Notification: Performance of matching and sorting (n=37): time 0.0009545/0.2599, allocations: 488.5 kB / 413 MB, free: 12.89 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.056e-05/0.26, allocations: 158.2 kB / 413.2 MB, free: 12.7 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005306/0.2606, allocations: 489.3 kB / 413.7 MB, free: 12.21 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 4.699e-05/0.2606, allocations: 41.7 kB / 413.7 MB, free: 12.17 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001719/0.2608, allocations: 232.6 kB / 413.9 MB, free: 11.94 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.253e-05/0.2609, allocations: 86.92 kB / 414 MB, free: 11.85 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001696/0.2611, allocations: 122.1 kB / 414.1 MB, free: 11.73 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001463/0.2612, allocations: 358.7 kB / 414.5 MB, free: 11.37 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000263/0.2615, allocations: 121 kB / 414.6 MB, free: 11.25 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003489/0.2619, allocations: 266.7 kB / 414.9 MB, free: 10.93 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006135/0.2625, allocations: 426.4 kB / 415.3 MB, free: 10.45 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.799e-06/0.2625, allocations: 4 kB / 415.3 MB, free: 10.44 MB / 334.1 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.0008568/0.2634, allocations: 474.3 kB / 415.8 MB, free: 9.965 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.916e-05/0.2634, allocations: 37.69 kB / 415.8 MB, free: 9.922 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.522e-05/0.2634, allocations: 4 kB / 415.8 MB, free: 9.918 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.587e-05/0.2635, allocations: 4.469 kB / 415.8 MB, free: 9.914 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001527/0.2636, allocations: 47.86 kB / 415.8 MB, free: 9.867 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.074e-05/0.2637, allocations: 11.98 kB / 415.9 MB, free: 9.855 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000283/0.264, allocations: 55.52 kB / 415.9 MB, free: 9.801 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.493e-05/0.264, allocations: 20.31 kB / 415.9 MB, free: 9.781 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.0002791/0.2643, allocations: 256.6 kB / 416.2 MB, free: 9.516 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.805e-05/0.2644, allocations: 43.53 kB / 416.2 MB, free: 9.473 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005149/0.2649, allocations: 269.1 kB / 416.5 MB, free: 9.207 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.836e-06/0.2649, allocations: 3.984 kB / 416.5 MB, free: 9.203 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.104e-06/0.2649, allocations: 0 / 416.5 MB, free: 9.203 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.647e-05/0.265, allocations: 116.5 kB / 416.6 MB, free: 9.07 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.716e-05/0.2651, allocations: 19.98 kB / 416.6 MB, free: 9.051 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001891/0.2653, allocations: 19.98 kB / 416.6 MB, free: 9.031 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001096/0.2654, allocations: 39.95 kB / 416.7 MB, free: 8.992 MB / 334.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0009103/0.2664, allocations: 0.6876 MB / 417.4 MB, free: 8.277 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.000811/0.2672, allocations: 0.7363 MB / 418.1 MB, free: 7.516 MB / 334.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0002821/0.2675, allocations: 169.6 kB / 418.3 MB, free: 7.352 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.000358/0.2679, allocations: 323.1 kB / 418.6 MB, free: 7.035 MB / 334.1 MB Notification: Performance of Backend: time 7.11e-07/0.2679, allocations: 0 / 418.6 MB, free: 7.035 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.002016/0.2699, allocations: 0.7114 MB / 419.3 MB, free: 6.465 MB / 334.1 MB Notification: Performance of SimCode: time 0.001414/0.2713, allocations: 1.205 MB / 420.5 MB, free: 5.195 MB / 334.1 MB Notification: Performance of Templates: time 0.01102/0.2823, allocations: 5.912 MB / 426.4 MB, free: 15.32 MB / 350.1 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/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_4.0.0_Modelica.Blocks.Examples.BooleanNetwork1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches