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.00141/0.00141, allocations: 117.7 kB / 18.46 MB, free: 4.598 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001632/0.001632, allocations: 204.8 kB / 19.4 MB, free: 3.656 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.432/1.432, allocations: 227.4 MB / 247.6 MB, free: 10.48 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001376/0.001376, allocations: 75.86 kB / 359.4 MB, free: 12.9 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2546/0.256, allocations: 50.53 MB / 409.9 MB, free: 1.754 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.BooleanNetwork1): time 0.003917/0.2599, allocations: 2.474 MB / 412.4 MB, free: 15.27 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002553/0.2625, allocations: 1.473 MB / 413.9 MB, free: 13.79 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002407/0.2628, allocations: 11.94 kB / 413.9 MB, free: 13.78 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008019/0.2636, allocations: 242.9 kB / 414.1 MB, free: 13.54 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004752/0.2641, allocations: 195 kB / 414.3 MB, free: 13.35 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006501/0.2647, allocations: 270.8 kB / 414.6 MB, free: 13.09 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.000507/0.2653, allocations: 487.7 kB / 415.1 MB, free: 12.61 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000358/0.2656, allocations: 209.8 kB / 415.3 MB, free: 12.39 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002418/0.2659, allocations: 195.2 kB / 415.5 MB, free: 12.2 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002477/0.2661, allocations: 215 kB / 415.7 MB, free: 11.99 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 6.679e-05/0.2662, allocations: 40 kB / 415.7 MB, free: 11.95 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002484/0.2665, allocations: 115.9 kB / 415.8 MB, free: 11.84 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001299/0.2666, allocations: 127.6 kB / 415.9 MB, free: 11.71 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00018/0.2668, allocations: 222.6 kB / 416.2 MB, free: 11.49 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006209/0.2674, allocations: 0.5617 MB / 416.7 MB, free: 10.93 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.298e-06/0.2674, allocations: 0 / 416.7 MB, free: 10.93 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.784e-06/0.2674, allocations: 0 / 416.7 MB, free: 10.93 MB / 334.1 MB Notification: Performance of Transformations before backend: time 8.807e-06/0.2675, allocations: 0 / 416.7 MB, free: 10.93 MB / 334.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.001374/0.2688, allocations: 0.8554 MB / 417.6 MB, free: 10.02 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.109e-05/0.2689, allocations: 8.031 kB / 417.6 MB, free: 10.01 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002429/0.2691, allocations: 64.22 kB / 417.6 MB, free: 9.945 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004932/0.2696, allocations: 406.9 kB / 418 MB, free: 9.508 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.538e-05/0.2697, allocations: 55.27 kB / 418.1 MB, free: 9.449 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.435e-05/0.2698, allocations: 51.92 kB / 418.1 MB, free: 9.398 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006475/0.2704, allocations: 416.7 kB / 418.6 MB, free: 8.949 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.823e-05/0.2705, allocations: 8 kB / 418.6 MB, free: 8.941 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.599e-05/0.2705, allocations: 19.94 kB / 418.6 MB, free: 8.922 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.398e-05/0.2705, allocations: 12.44 kB / 418.6 MB, free: 8.91 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004506/0.271, allocations: 265.5 kB / 418.9 MB, free: 8.648 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001904/0.2729, allocations: 1.67 MB / 420.5 MB, free: 6.895 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005666/0.2735, allocations: 296 kB / 420.8 MB, free: 6.578 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002229/0.2737, allocations: 134.3 kB / 420.9 MB, free: 6.438 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.311e-05/0.2738, allocations: 4 kB / 420.9 MB, free: 6.434 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004677/0.2743, allocations: 328 kB / 421.3 MB, free: 6.074 MB / 334.1 MB Notification: Performance of pre-optimization done (n=37): time 2.083e-06/0.2743, allocations: 0 / 421.3 MB, free: 6.074 MB / 334.1 MB Notification: Performance of matching and sorting (n=37): time 0.0009099/0.2752, allocations: 473.5 kB / 421.7 MB, free: 5.602 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.986e-05/0.2753, allocations: 166.2 kB / 421.9 MB, free: 5.402 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005184/0.2758, allocations: 0.4895 MB / 422.4 MB, free: 4.902 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 4.15e-05/0.2759, allocations: 41.7 kB / 422.4 MB, free: 4.855 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001721/0.276, allocations: 228.6 kB / 422.6 MB, free: 4.629 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.829e-05/0.2761, allocations: 98.77 kB / 422.7 MB, free: 4.531 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001551/0.2763, allocations: 114.2 kB / 422.9 MB, free: 4.414 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.000135/0.2764, allocations: 358.7 kB / 423.2 MB, free: 4.055 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002264/0.2767, allocations: 117 kB / 423.3 MB, free: 3.941 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003055/0.277, allocations: 266.7 kB / 423.6 MB, free: 3.617 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004937/0.2775, allocations: 402.5 kB / 424 MB, free: 3.156 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.45e-06/0.2775, allocations: 8.25 kB / 424 MB, free: 3.148 MB / 334.1 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.0007343/0.2782, allocations: 466.5 kB / 424.4 MB, free: 2.68 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.062e-05/0.2783, allocations: 33.7 kB / 424.5 MB, free: 2.641 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.048e-05/0.2783, allocations: 4.469 kB / 424.5 MB, free: 2.637 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.538e-05/0.2783, allocations: 12 kB / 424.5 MB, free: 2.625 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001481/0.2785, allocations: 43.84 kB / 424.5 MB, free: 2.582 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.363e-05/0.2785, allocations: 12.14 kB / 424.5 MB, free: 2.57 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002471/0.2788, allocations: 51.58 kB / 424.6 MB, free: 2.52 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.508e-05/0.2788, allocations: 20 kB / 424.6 MB, free: 2.5 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.0002759/0.2791, allocations: 264.4 kB / 424.9 MB, free: 2.223 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.493e-05/0.2792, allocations: 47.44 kB / 424.9 MB, free: 2.176 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004148/0.2796, allocations: 229.2 kB / 425.1 MB, free: 1.949 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.634e-06/0.2796, allocations: 4 kB / 425.1 MB, free: 1.945 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.724e-06/0.2796, allocations: 3.938 kB / 425.1 MB, free: 1.941 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.366e-05/0.2796, allocations: 7.922 kB / 425.2 MB, free: 1.934 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009695/0.2806, allocations: 0.7439 MB / 425.9 MB, free: 1.133 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.474e-06/0.2806, allocations: 0 / 425.9 MB, free: 1.133 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.774e-05/0.2807, allocations: 15.94 kB / 425.9 MB, free: 1.117 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.079e-06/0.2807, allocations: 7.938 kB / 425.9 MB, free: 1.109 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.629e-05/0.2807, allocations: 11.98 kB / 425.9 MB, free: 1.098 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.3e-06/0.2807, allocations: 4 kB / 425.9 MB, free: 1.094 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.633e-06/0.2808, allocations: 0 / 425.9 MB, free: 1.094 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006601/0.2814, allocations: 0.4885 MB / 426.4 MB, free: 0.5781 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.595e-05/0.2815, allocations: 116.6 kB / 426.5 MB, free: 456 kB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.056e-05/0.2816, allocations: 16 kB / 426.6 MB, free: 440 kB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002034/0.2818, allocations: 23.97 kB / 426.6 MB, free: 416 kB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001253/0.2819, allocations: 51.88 kB / 426.6 MB, free: 364 kB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.842e-05/0.282, allocations: 11.98 kB / 426.6 MB, free: 352 kB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0003352/0.2823, allocations: 331.1 kB / 427 MB, free: 20 kB / 334.1 MB Notification: Performance of sort global known variables: time 1.71e-07/0.2823, allocations: 4 kB / 427 MB, free: 16 kB / 334.1 MB Notification: Performance of remove unused functions: time 0.0004874/0.2828, allocations: 116 kB / 427.1 MB, free: 15.9 MB / 350.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.001035/0.2839, allocations: 433 kB / 427.5 MB, free: 15.61 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0006896/0.2846, allocations: 405.7 kB / 427.9 MB, free: 15.2 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.777e-06/0.2846, allocations: 0 / 427.9 MB, free: 15.2 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003279/0.2849, allocations: 235.2 kB / 428.1 MB, free: 14.96 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005582/0.2855, allocations: 85.38 kB / 428.2 MB, free: 14.88 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001443/0.2869, allocations: 0.8146 MB / 429 MB, free: 14.02 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003728/0.2873, allocations: 0.8395 MB / 429.9 MB, free: 13.16 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001157/0.2875, allocations: 43.42 kB / 429.9 MB, free: 13.11 MB / 350.1 MB Notification: Performance of SimCode: time 4.11e-07/0.2875, allocations: 0 / 429.9 MB, free: 13.11 MB / 350.1 MB Notification: Performance of Templates: time 0.009498/0.297, allocations: 6.173 MB / 436.1 MB, free: 6.957 MB / 350.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