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.001299/0.001299, allocations: 118.2 kB / 17.79 MB, free: 5.277 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001545/0.001545, allocations: 201.2 kB / 18.74 MB, free: 4.332 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.401/1.401, allocations: 227.4 MB / 246.9 MB, free: 10.46 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001229/0.001229, allocations: 63.89 kB / 358.7 MB, free: 12.93 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2888/0.29, allocations: 50.54 MB / 409.2 MB, free: 1.582 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.BooleanNetwork1): time 0.0039/0.294, allocations: 2.473 MB / 411.7 MB, free: 15.11 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002333/0.2963, allocations: 1.469 MB / 413.2 MB, free: 13.62 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001813/0.2965, allocations: 11.94 kB / 413.2 MB, free: 13.61 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006846/0.2972, allocations: 238.8 kB / 413.4 MB, free: 13.38 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004262/0.2977, allocations: 206.6 kB / 413.6 MB, free: 13.18 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005574/0.2982, allocations: 267.3 kB / 413.9 MB, free: 12.92 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004726/0.2987, allocations: 483.7 kB / 414.4 MB, free: 12.44 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003122/0.299, allocations: 217.8 kB / 414.6 MB, free: 12.22 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002164/0.2993, allocations: 199.2 kB / 414.8 MB, free: 12.02 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002292/0.2995, allocations: 215 kB / 415 MB, free: 11.81 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 6.79e-05/0.2996, allocations: 32 kB / 415 MB, free: 11.78 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002161/0.2998, allocations: 119.8 kB / 415.1 MB, free: 11.66 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001613/0.3, allocations: 123.6 kB / 415.3 MB, free: 11.54 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001962/0.3002, allocations: 222.7 kB / 415.5 MB, free: 11.32 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006688/0.3008, allocations: 0.5638 MB / 416 MB, free: 10.76 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.926e-06/0.3009, allocations: 0 / 416 MB, free: 10.76 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.302e-06/0.3009, allocations: 0 / 416 MB, free: 10.76 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.124e-06/0.3009, allocations: 4 kB / 416 MB, free: 10.75 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.001372/0.3023, allocations: 0.8703 MB / 416.9 MB, free: 9.82 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.119e-05/0.3023, allocations: 11.97 kB / 416.9 MB, free: 9.809 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000252/0.3026, allocations: 68.56 kB / 417 MB, free: 9.742 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005352/0.3031, allocations: 403.3 kB / 417.4 MB, free: 9.309 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.44e-05/0.3032, allocations: 59.27 kB / 417.4 MB, free: 9.246 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.198e-05/0.3033, allocations: 39.94 kB / 417.5 MB, free: 9.207 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000709/0.304, allocations: 428.7 kB / 417.9 MB, free: 8.746 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.589e-05/0.304, allocations: 0 / 417.9 MB, free: 8.746 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.93e-05/0.304, allocations: 20 kB / 417.9 MB, free: 8.727 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.922e-05/0.3041, allocations: 12.44 kB / 417.9 MB, free: 8.715 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004735/0.3046, allocations: 269.4 kB / 418.2 MB, free: 8.449 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001854/0.3064, allocations: 1.667 MB / 419.9 MB, free: 6.699 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005781/0.307, allocations: 303.8 kB / 420.2 MB, free: 6.375 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002164/0.3072, allocations: 126.5 kB / 420.3 MB, free: 6.242 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.473e-05/0.3073, allocations: 11.98 kB / 420.3 MB, free: 6.23 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004512/0.3078, allocations: 324 kB / 420.6 MB, free: 5.875 MB / 334.1 MB Notification: Performance of pre-optimization done (n=37): time 1.623e-06/0.3078, allocations: 0 / 420.6 MB, free: 5.875 MB / 334.1 MB Notification: Performance of matching and sorting (n=37): time 0.00093/0.3087, allocations: 470.5 kB / 421.1 MB, free: 5.406 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.00011/0.3088, allocations: 166.2 kB / 421.2 MB, free: 5.207 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005376/0.3094, allocations: 0.5013 MB / 421.7 MB, free: 4.695 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 5.35e-05/0.3094, allocations: 41.69 kB / 421.8 MB, free: 4.648 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001812/0.3096, allocations: 236.9 kB / 422 MB, free: 4.414 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.649e-05/0.3097, allocations: 87.36 kB / 422.1 MB, free: 4.328 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001494/0.3099, allocations: 122.1 kB / 422.2 MB, free: 4.203 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001604/0.31, allocations: 358.7 kB / 422.6 MB, free: 3.844 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002238/0.3103, allocations: 117.1 kB / 422.7 MB, free: 3.73 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003397/0.3106, allocations: 270.7 kB / 422.9 MB, free: 3.402 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005188/0.3111, allocations: 414.8 kB / 423.3 MB, free: 2.93 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.857e-06/0.3112, allocations: 0 / 423.3 MB, free: 2.93 MB / 334.1 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.0007561/0.3119, allocations: 463 kB / 423.8 MB, free: 2.465 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.065e-05/0.312, allocations: 33.7 kB / 423.8 MB, free: 2.426 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.247e-06/0.312, allocations: 8.031 kB / 423.8 MB, free: 2.418 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.189e-05/0.312, allocations: 8 kB / 423.8 MB, free: 2.41 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001418/0.3122, allocations: 43.84 kB / 423.9 MB, free: 2.367 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.353e-05/0.3122, allocations: 8 kB / 423.9 MB, free: 2.359 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002397/0.3124, allocations: 51.72 kB / 423.9 MB, free: 2.309 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.632e-05/0.3125, allocations: 20 kB / 424 MB, free: 2.289 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.0002819/0.3128, allocations: 260.4 kB / 424.2 MB, free: 2.016 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.548e-05/0.3129, allocations: 51.67 kB / 424.3 MB, free: 1.965 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004226/0.3133, allocations: 229.1 kB / 424.5 MB, free: 1.738 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.004e-06/0.3133, allocations: 7.938 kB / 424.5 MB, free: 1.73 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.583e-06/0.3133, allocations: 4 kB / 424.5 MB, free: 1.727 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.314e-06/0.3133, allocations: 3.984 kB / 424.5 MB, free: 1.723 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009465/0.3143, allocations: 0.744 MB / 425.3 MB, free: 0.9219 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.957e-06/0.3143, allocations: 7.938 kB / 425.3 MB, free: 0.9141 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.193e-05/0.3143, allocations: 8 kB / 425.3 MB, free: 0.9062 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.139e-06/0.3144, allocations: 4 kB / 425.3 MB, free: 0.9023 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.682e-05/0.3144, allocations: 11.98 kB / 425.3 MB, free: 0.8906 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.979e-06/0.3144, allocations: 4 kB / 425.3 MB, free: 0.8867 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.605e-06/0.3144, allocations: 3.938 kB / 425.3 MB, free: 0.8828 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006895/0.3151, allocations: 496.6 kB / 425.8 MB, free: 380 kB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001007/0.3152, allocations: 124.8 kB / 425.9 MB, free: 236 kB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.424e-05/0.3153, allocations: 12 kB / 425.9 MB, free: 224 kB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001938/0.3155, allocations: 23.97 kB / 425.9 MB, free: 200 kB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001189/0.3156, allocations: 39.89 kB / 426 MB, free: 160 kB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.218e-05/0.3157, allocations: 19.98 kB / 426 MB, free: 140 kB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0003821/0.316, allocations: 331.1 kB / 426.3 MB, free: 15.81 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3161, allocations: 4 kB / 426.3 MB, free: 15.81 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.00047/0.3165, allocations: 115.7 kB / 426.4 MB, free: 15.7 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.001043/0.3176, allocations: 449.5 kB / 426.9 MB, free: 15.38 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0006838/0.3183, allocations: 393.5 kB / 427.3 MB, free: 14.99 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.695e-06/0.3183, allocations: 0 / 427.3 MB, free: 14.99 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003338/0.3186, allocations: 235.2 kB / 427.5 MB, free: 14.75 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005251/0.3192, allocations: 80.73 kB / 427.6 MB, free: 14.67 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001403/0.3206, allocations: 0.8036 MB / 428.4 MB, free: 13.83 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004655/0.3211, allocations: 0.8386 MB / 429.2 MB, free: 12.97 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0002006/0.3213, allocations: 79.5 kB / 429.3 MB, free: 12.89 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001052/0.3214, allocations: 39.42 kB / 429.3 MB, free: 12.85 MB / 350.1 MB Notification: Performance of SimCode: time 3.71e-07/0.3214, allocations: 0 / 429.3 MB, free: 12.85 MB / 350.1 MB Notification: Performance of Templates: time 0.009954/0.3313, allocations: 5.256 MB / 434.6 MB, free: 7.613 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Blocks/Examples/BooleanNetwork1/BooleanNetwork1.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Blocks.Examples.BooleanNetwork1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches