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/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 3.2.3+maint.om/package.mo", uses=false) 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 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_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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001245/0.001245, allocations: 113.3 kB / 18.4 MB, free: 4.699 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.001179/0.001179, allocations: 189.2 kB / 19.33 MB, free: 3.777 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.261/1.261, allocations: 205.1 MB / 225.2 MB, free: 12.23 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001348/0.001349, allocations: 47.94 kB / 329.2 MB, free: 3.297 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09015/0.09151, allocations: 46.62 MB / 375.8 MB, free: 4.566 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.BooleanNetwork1): time 0.00389/0.09543, allocations: 2.438 MB / 378.3 MB, free: 2.117 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002238/0.0977, allocations: 1.255 MB / 379.5 MB, free: 0.8516 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003138/0.09803, allocations: 11.94 kB / 379.5 MB, free: 0.8398 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000798/0.09886, allocations: 234.9 kB / 379.8 MB, free: 0.6094 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004841/0.09936, allocations: 159.2 kB / 379.9 MB, free: 464 kB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007506/0.1001, allocations: 271.4 kB / 380.2 MB, free: 192 kB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.1797/0.2798, allocations: 482.8 kB / 380.6 MB, free: 10.45 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003969/0.2803, allocations: 212.3 kB / 380.9 MB, free: 10.42 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002666/0.2805, allocations: 192.5 kB / 381 MB, free: 10.39 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002421/0.2808, allocations: 214.2 kB / 381.3 MB, free: 10.34 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 6.425e-05/0.2809, allocations: 35.28 kB / 381.3 MB, free: 10.34 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003151/0.2812, allocations: 125.6 kB / 381.4 MB, free: 10.34 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001583/0.2813, allocations: 128.2 kB / 381.5 MB, free: 10.32 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001952/0.2815, allocations: 215.3 kB / 381.7 MB, free: 10.25 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001072/0.2826, allocations: 0.5616 MB / 382.3 MB, free: 10.16 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.141e-06/0.2826, allocations: 3.562 kB / 382.3 MB, free: 10.16 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.635e-06/0.2827, allocations: 0.5 kB / 382.3 MB, free: 10.16 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.239e-05/0.2827, allocations: 0.5 kB / 382.3 MB, free: 10.16 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.001635/0.2843, allocations: 0.8494 MB / 383.2 MB, free: 9.562 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.766e-05/0.2844, allocations: 9.062 kB / 383.2 MB, free: 9.562 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000149/0.2845, allocations: 57.73 kB / 383.2 MB, free: 9.535 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005621/0.2851, allocations: 391.2 kB / 383.6 MB, free: 9.285 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.239e-05/0.2852, allocations: 67.83 kB / 383.7 MB, free: 9.25 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.29e-05/0.2853, allocations: 39.95 kB / 383.7 MB, free: 9.25 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000741/0.286, allocations: 428.8 kB / 384.1 MB, free: 9.113 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.579e-05/0.286, allocations: 3.719 kB / 384.1 MB, free: 9.113 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.191e-05/0.2861, allocations: 20.05 kB / 384.2 MB, free: 9.109 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.282e-05/0.2861, allocations: 13.3 kB / 384.2 MB, free: 9.109 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005024/0.2866, allocations: 267.5 kB / 384.4 MB, free: 9.105 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001738/0.2884, allocations: 1.671 MB / 386.1 MB, free: 7.918 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005529/0.2889, allocations: 297.5 kB / 386.4 MB, free: 7.77 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000217/0.2892, allocations: 125.9 kB / 386.5 MB, free: 7.711 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.433e-05/0.2892, allocations: 14.78 kB / 386.5 MB, free: 7.707 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004526/0.2897, allocations: 331.8 kB / 386.9 MB, free: 7.484 MB / 318.1 MB Notification: Performance of pre-optimization done (n=37): time 1.964e-06/0.2897, allocations: 0 / 386.9 MB, free: 7.484 MB / 318.1 MB Notification: Performance of matching and sorting (n=37): time 0.0009905/0.2907, allocations: 481.5 kB / 387.3 MB, free: 7.289 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.98e-05/0.2908, allocations: 168.4 kB / 387.5 MB, free: 7.098 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005703/0.2914, allocations: 489 kB / 388 MB, free: 6.863 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 3.899e-05/0.2914, allocations: 40.7 kB / 388 MB, free: 6.824 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001355/0.2916, allocations: 234.3 kB / 388.2 MB, free: 6.641 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.686e-05/0.2916, allocations: 84.59 kB / 388.3 MB, free: 6.582 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001505/0.2918, allocations: 119.7 kB / 388.4 MB, free: 6.523 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 9.028e-05/0.2919, allocations: 361.1 kB / 388.8 MB, free: 6.188 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002296/0.2921, allocations: 118 kB / 388.9 MB, free: 6.148 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003099/0.2924, allocations: 267.5 kB / 389.2 MB, free: 5.941 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005179/0.293, allocations: 417.3 kB / 389.6 MB, free: 5.641 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.589e-06/0.293, allocations: 1.094 kB / 389.6 MB, free: 5.641 MB / 318.1 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.0007532/0.2937, allocations: 479.9 kB / 390 MB, free: 5.445 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.316e-05/0.2938, allocations: 40.08 kB / 390.1 MB, free: 5.41 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.091e-05/0.2938, allocations: 6.438 kB / 390.1 MB, free: 5.41 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.141e-05/0.2938, allocations: 6.812 kB / 390.1 MB, free: 5.41 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001433/0.294, allocations: 45.09 kB / 390.1 MB, free: 5.406 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.503e-05/0.294, allocations: 10.22 kB / 390.1 MB, free: 5.406 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002569/0.2943, allocations: 53.83 kB / 390.2 MB, free: 5.379 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.594e-05/0.2943, allocations: 26.72 kB / 390.2 MB, free: 5.375 MB / 318.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.0002371/0.2946, allocations: 253.9 kB / 390.5 MB, free: 5.176 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.853e-05/0.2947, allocations: 42.25 kB / 390.5 MB, free: 5.156 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004663/0.2951, allocations: 263 kB / 390.8 MB, free: 5.047 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.494e-06/0.2951, allocations: 4.5 kB / 390.8 MB, free: 5.047 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.325e-06/0.2952, allocations: 6.125 kB / 390.8 MB, free: 5.047 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.746e-06/0.2952, allocations: 2.734 kB / 390.8 MB, free: 5.047 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001025/0.2962, allocations: 0.7791 MB / 391.6 MB, free: 4.582 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.665e-06/0.2962, allocations: 5.375 kB / 391.6 MB, free: 4.578 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.838e-05/0.2963, allocations: 15.92 kB / 391.6 MB, free: 4.578 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.058e-06/0.2963, allocations: 2.312 kB / 391.6 MB, free: 4.578 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.044e-05/0.2963, allocations: 16.06 kB / 391.6 MB, free: 4.57 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.208e-06/0.2963, allocations: 2.188 kB / 391.6 MB, free: 4.57 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.717e-06/0.2963, allocations: 5.547 kB / 391.6 MB, free: 4.566 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006407/0.297, allocations: 0.5159 MB / 392.1 MB, free: 4.262 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.267e-05/0.2971, allocations: 119.7 kB / 392.2 MB, free: 4.141 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.781e-05/0.2971, allocations: 16.45 kB / 392.3 MB, free: 4.133 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002015/0.2973, allocations: 20.91 kB / 392.3 MB, free: 4.129 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001213/0.2975, allocations: 50.72 kB / 392.3 MB, free: 4.113 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.495e-05/0.2975, allocations: 17.59 kB / 392.3 MB, free: 4.109 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0003122/0.2978, allocations: 320.3 kB / 392.7 MB, free: 3.965 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2978, allocations: 0 / 392.7 MB, free: 3.965 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0004902/0.2983, allocations: 123.8 kB / 392.8 MB, free: 3.93 MB / 318.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: 37 (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,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 (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 (36): * Single equations (assignments): 30 * 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.0009427/0.2993, allocations: 452.2 kB / 393.2 MB, free: 3.586 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0006232/0.2999, allocations: 405 kB / 393.6 MB, free: 3.426 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.796e-06/0.2999, allocations: 0 / 393.6 MB, free: 3.426 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003056/0.3002, allocations: 244.2 kB / 393.9 MB, free: 3.309 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005395/0.3008, allocations: 83.19 kB / 393.9 MB, free: 3.281 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001228/0.302, allocations: 0.8105 MB / 394.7 MB, free: 2.816 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002849/0.3023, allocations: 0.8419 MB / 395.6 MB, free: 2.105 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001179/0.3025, allocations: 49 kB / 395.6 MB, free: 2.094 MB / 318.1 MB Notification: Performance of SimCode: time 5.31e-07/0.3025, allocations: 0 / 395.6 MB, free: 2.094 MB / 318.1 MB Notification: Performance of Templates: time 0.009938/0.3124, allocations: 6.371 MB / 402 MB, free: 304 kB / 318.1 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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Blocks/Examples/BooleanNetwork1/BooleanNetwork1.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Blocks.Examples.BooleanNetwork1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches