Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_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_cpp_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_cpp_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.001276/0.001276, allocations: 175.9 kB / 16.72 MB, free: 5.082 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.562/1.562, allocations: 205.4 MB / 222.9 MB, free: 9.012 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.0007386/0.0007386, allocations: 85.05 kB / 271.2 MB, free: 8.246 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003205/0.0003206, allocations: 8 kB / 327.5 MB, free: 15.89 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2616/0.262, allocations: 47.57 MB / 375.1 MB, free: 45.43 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.BooleanNetwork1): time 0.004033/0.2661, allocations: 2.034 MB / 377.1 MB, free: 43.84 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.003195/0.2693, allocations: 1.184 MB / 378.3 MB, free: 42.91 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003759/0.2697, allocations: 10 kB / 378.3 MB, free: 42.9 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0009472/0.2707, allocations: 201.3 kB / 378.5 MB, free: 42.79 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0005873/0.2713, allocations: 132.8 kB / 378.6 MB, free: 42.7 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009839/0.2723, allocations: 229 kB / 378.9 MB, free: 42.55 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0007001/0.273, allocations: 421.1 kB / 379.3 MB, free: 42.3 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004695/0.2735, allocations: 192.9 kB / 379.5 MB, free: 42.18 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003397/0.2739, allocations: 149.4 kB / 379.6 MB, free: 42.1 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003471/0.2742, allocations: 163.4 kB / 379.8 MB, free: 42 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 8.366e-05/0.2743, allocations: 11.59 kB / 379.8 MB, free: 42 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003296/0.2747, allocations: 85.69 kB / 379.9 MB, free: 41.96 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001573/0.2748, allocations: 99.06 kB / 380 MB, free: 41.9 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002336/0.2751, allocations: 190.2 kB / 380.1 MB, free: 41.75 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005658/0.2757, allocations: 382.7 kB / 380.5 MB, free: 41.49 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.37e-06/0.2757, allocations: 0 / 380.5 MB, free: 41.49 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.503e-06/0.2757, allocations: 1.344 kB / 380.5 MB, free: 41.49 MB / 298.7 MB Notification: Performance of Transformations before backend: time 2.239e-05/0.2757, allocations: 3.938 kB / 380.5 MB, free: 41.48 MB / 298.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.001808/0.2776, allocations: 0.771 MB / 381.3 MB, free: 40.79 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.61e-05/0.2776, allocations: 9.406 kB / 381.3 MB, free: 40.79 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002535/0.2779, allocations: 56.94 kB / 381.4 MB, free: 40.76 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007531/0.2787, allocations: 395.7 kB / 381.7 MB, free: 40.41 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.824e-05/0.2788, allocations: 57.48 kB / 381.8 MB, free: 40.36 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.814e-05/0.2789, allocations: 50.45 kB / 381.8 MB, free: 40.34 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001036/0.2799, allocations: 420.3 kB / 382.3 MB, free: 40.04 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.134e-05/0.28, allocations: 1.562 kB / 382.3 MB, free: 40.04 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.181e-05/0.28, allocations: 17.59 kB / 382.3 MB, free: 40.03 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.058e-05/0.2801, allocations: 11.59 kB / 382.3 MB, free: 40.03 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000738/0.2808, allocations: 262.9 kB / 382.5 MB, free: 39.92 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00248/0.2833, allocations: 1.696 MB / 384.2 MB, free: 38.42 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008568/0.2842, allocations: 291.6 kB / 384.5 MB, free: 38.24 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003578/0.2846, allocations: 135 kB / 384.7 MB, free: 38.16 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.934e-05/0.2847, allocations: 11.78 kB / 384.7 MB, free: 38.16 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006121/0.2853, allocations: 329.2 kB / 385 MB, free: 37.88 MB / 298.7 MB Notification: Performance of pre-optimization done (n=37): time 3.747e-06/0.2853, allocations: 0 / 385 MB, free: 37.88 MB / 298.7 MB Notification: Performance of matching and sorting (n=37): time 0.001389/0.2867, allocations: 491.4 kB / 385.5 MB, free: 37.63 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.661e-05/0.2868, allocations: 168.5 kB / 385.6 MB, free: 37.44 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008485/0.2877, allocations: 487.8 kB / 386.1 MB, free: 37.14 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 6.154e-05/0.2878, allocations: 43.03 kB / 386.1 MB, free: 37.1 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002073/0.288, allocations: 227.2 kB / 386.4 MB, free: 36.9 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001109/0.2881, allocations: 90.83 kB / 386.5 MB, free: 36.83 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.368e-05/0.2882, allocations: 5.5 kB / 386.5 MB, free: 36.82 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001072/0.2883, allocations: 359.8 kB / 386.8 MB, free: 36.48 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003716/0.2887, allocations: 118.1 kB / 386.9 MB, free: 36.42 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004124/0.2891, allocations: 272.4 kB / 387.2 MB, free: 36.14 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006699/0.2898, allocations: 420.3 kB / 387.6 MB, free: 35.66 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.889e-06/0.2898, allocations: 0 / 387.6 MB, free: 35.66 MB / 298.7 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.001101/0.2909, allocations: 478.5 kB / 388.1 MB, free: 35.18 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.049e-05/0.291, allocations: 37.69 kB / 388.1 MB, free: 35.14 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.071e-05/0.291, allocations: 4 kB / 388.1 MB, free: 35.14 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.443e-05/0.291, allocations: 8 kB / 388.1 MB, free: 35.13 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001914/0.2912, allocations: 39.86 kB / 388.2 MB, free: 35.09 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.725e-05/0.2913, allocations: 11.98 kB / 388.2 MB, free: 35.08 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004461/0.2917, allocations: 59.8 kB / 388.2 MB, free: 35.02 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.466e-05/0.2918, allocations: 24 kB / 388.3 MB, free: 35 MB / 298.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,sampleTriggerSet.y,sampleTriggerReset.y,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 () * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003441/0.2921, allocations: 260.4 kB / 388.5 MB, free: 34.72 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001026/0.2923, allocations: 43.44 kB / 388.6 MB, free: 34.68 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006706/0.2929, allocations: 271.8 kB / 388.8 MB, free: 34.4 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.945e-06/0.293, allocations: 4 kB / 388.8 MB, free: 34.4 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.637e-06/0.293, allocations: 4 kB / 388.8 MB, free: 34.39 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.188e-06/0.293, allocations: 7.922 kB / 388.8 MB, free: 34.39 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001437/0.2945, allocations: 0.775 MB / 389.6 MB, free: 33.55 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.047e-06/0.2945, allocations: 0 / 389.6 MB, free: 33.55 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.384e-05/0.2946, allocations: 15.98 kB / 389.6 MB, free: 33.54 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.002e-06/0.2946, allocations: 0 / 389.6 MB, free: 33.54 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.753e-05/0.2946, allocations: 23.92 kB / 389.6 MB, free: 33.52 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.64e-06/0.2946, allocations: 3.938 kB / 389.7 MB, free: 33.51 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.066e-06/0.2946, allocations: 4 kB / 389.7 MB, free: 33.51 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008828/0.2955, allocations: 0.5049 MB / 390.2 MB, free: 32.98 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001016/0.2957, allocations: 124.6 kB / 390.3 MB, free: 32.84 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.637e-05/0.2958, allocations: 11.94 kB / 390.3 MB, free: 32.82 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003454/0.2961, allocations: 31.97 kB / 390.3 MB, free: 32.79 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000157/0.2963, allocations: 43.94 kB / 390.4 MB, free: 32.75 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.139e-05/0.2963, allocations: 16 kB / 390.4 MB, free: 32.73 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0004644/0.2968, allocations: 319.1 kB / 390.7 MB, free: 32.43 MB / 298.7 MB Notification: Performance of sort global known variables: time 5.31e-07/0.2968, allocations: 3.938 kB / 390.7 MB, free: 32.42 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0007425/0.2976, allocations: 123.7 kB / 390.8 MB, free: 32.3 MB / 298.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,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 (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.001356/0.299, allocations: 455.1 kB / 391.3 MB, free: 31.88 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0009612/0.3, allocations: 399.1 kB / 391.7 MB, free: 31.47 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 5.62e-06/0.3, allocations: 4 kB / 391.7 MB, free: 31.47 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004516/0.3004, allocations: 251.8 kB / 391.9 MB, free: 31.21 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008925/0.3013, allocations: 77.52 kB / 392 MB, free: 31.13 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002026/0.3034, allocations: 0.9299 MB / 392.9 MB, free: 30.17 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003537/0.3038, allocations: 0.8397 MB / 393.7 MB, free: 29.3 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001704/0.3039, allocations: 43.42 kB / 393.8 MB, free: 29.27 MB / 298.7 MB Notification: Performance of SimCode: time 5.11e-07/0.304, allocations: 0 / 393.8 MB, free: 29.27 MB / 298.7 MB Notification: Performance of Templates: time 0.01413/0.3181, allocations: 6.248 MB / 400 MB, free: 23.01 MB / 298.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Blocks.Examples.BooleanNetwork1.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Blocks.Examples.BooleanNetwork1.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Blocks.Examples.BooleanNetwork1.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Blocks.Examples.BooleanNetwork1.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Blocks.Examples.BooleanNetwork1.sim & ./Modelica_3.2.3_cpp_Modelica.Blocks.Examples.BooleanNetwork1 --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Blocks.Examples.BooleanNetwork1.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_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_cpp_Modelica.Blocks.Examples.BooleanNetwork1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches