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.001708/0.001709, allocations: 122.8 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.001778/0.001778, allocations: 202 kB / 18.73 MB, free: 4.34 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.452/1.452, allocations: 227.4 MB / 246.9 MB, free: 10.48 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001142/0.001142, allocations: 67.88 kB / 358.7 MB, free: 12.92 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.305/0.3062, allocations: 50.54 MB / 409.3 MB, free: 1.59 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.BooleanNetwork1): time 0.004025/0.3103, allocations: 2.474 MB / 411.7 MB, free: 15.11 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002577/0.3129, allocations: 1.465 MB / 413.2 MB, free: 13.64 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002059/0.3131, allocations: 11.94 kB / 413.2 MB, free: 13.62 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008257/0.3139, allocations: 238.9 kB / 413.4 MB, free: 13.39 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004757/0.3144, allocations: 203 kB / 413.6 MB, free: 13.19 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000637/0.315, allocations: 259.3 kB / 413.9 MB, free: 12.94 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005699/0.3156, allocations: 491.7 kB / 414.4 MB, free: 12.45 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000368/0.316, allocations: 217.8 kB / 414.6 MB, free: 12.23 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002284/0.3162, allocations: 195.2 kB / 414.8 MB, free: 12.04 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002461/0.3165, allocations: 211.1 kB / 415 MB, free: 11.83 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.636e-05/0.3166, allocations: 32 kB / 415 MB, free: 11.8 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002483/0.3168, allocations: 119.8 kB / 415.1 MB, free: 11.68 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001361/0.317, allocations: 123.6 kB / 415.2 MB, free: 11.56 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000192/0.3172, allocations: 226.7 kB / 415.5 MB, free: 11.34 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005855/0.3178, allocations: 0.5615 MB / 416 MB, free: 10.78 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.178e-06/0.3178, allocations: 0 / 416 MB, free: 10.78 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.503e-06/0.3178, allocations: 0 / 416 MB, free: 10.78 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.234e-06/0.3178, allocations: 0 / 416 MB, free: 10.78 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.001353/0.3191, allocations: 0.8554 MB / 416.9 MB, free: 9.863 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.949e-05/0.3192, allocations: 11.97 kB / 416.9 MB, free: 9.852 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002558/0.3195, allocations: 72.27 kB / 417 MB, free: 9.781 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005661/0.32, allocations: 398.9 kB / 417.4 MB, free: 9.352 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.756e-05/0.3201, allocations: 59.25 kB / 417.4 MB, free: 9.289 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.63e-05/0.3202, allocations: 39.94 kB / 417.5 MB, free: 9.25 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000673/0.3209, allocations: 424.7 kB / 417.9 MB, free: 8.793 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.436e-05/0.3209, allocations: 0 / 417.9 MB, free: 8.793 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.761e-05/0.3209, allocations: 20 kB / 417.9 MB, free: 8.773 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.933e-05/0.321, allocations: 20.36 kB / 417.9 MB, free: 8.754 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004604/0.3214, allocations: 261.5 kB / 418.2 MB, free: 8.496 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001851/0.3233, allocations: 1.67 MB / 419.8 MB, free: 6.742 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005694/0.3239, allocations: 295.8 kB / 420.1 MB, free: 6.426 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002268/0.3241, allocations: 133.4 kB / 420.3 MB, free: 6.289 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.089e-05/0.3242, allocations: 11.98 kB / 420.3 MB, free: 6.277 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004449/0.3246, allocations: 324 kB / 420.6 MB, free: 5.922 MB / 334.1 MB Notification: Performance of pre-optimization done (n=37): time 3.136e-06/0.3246, allocations: 7.984 kB / 420.6 MB, free: 5.914 MB / 334.1 MB Notification: Performance of matching and sorting (n=37): time 0.0009191/0.3256, allocations: 465.5 kB / 421 MB, free: 5.449 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.258e-05/0.3257, allocations: 166.2 kB / 421.2 MB, free: 5.25 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005432/0.3262, allocations: 0.4934 MB / 421.7 MB, free: 4.746 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.855e-05/0.3263, allocations: 37.7 kB / 421.7 MB, free: 4.703 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001772/0.3265, allocations: 240.5 kB / 422 MB, free: 4.465 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.778e-05/0.3265, allocations: 82.91 kB / 422.1 MB, free: 4.383 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001547/0.3267, allocations: 118.2 kB / 422.2 MB, free: 4.262 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001578/0.3269, allocations: 362.7 kB / 422.5 MB, free: 3.898 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002618/0.3271, allocations: 117.1 kB / 422.6 MB, free: 3.785 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003335/0.3275, allocations: 266.7 kB / 422.9 MB, free: 3.461 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005286/0.328, allocations: 411 kB / 423.3 MB, free: 2.992 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.547e-06/0.328, allocations: 0 / 423.3 MB, free: 2.992 MB / 334.1 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.0007344/0.3288, allocations: 466.3 kB / 423.8 MB, free: 2.523 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.084e-05/0.3288, allocations: 33.7 kB / 423.8 MB, free: 2.484 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.698e-06/0.3288, allocations: 4 kB / 423.8 MB, free: 2.48 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.937e-05/0.3289, allocations: 8 kB / 423.8 MB, free: 2.473 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001418/0.329, allocations: 43.84 kB / 423.8 MB, free: 2.43 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.472e-05/0.329, allocations: 8.625 kB / 423.8 MB, free: 2.422 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002328/0.3293, allocations: 59.56 kB / 423.9 MB, free: 2.363 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.358e-05/0.3293, allocations: 20 kB / 423.9 MB, free: 2.344 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.0002562/0.3296, allocations: 256.4 kB / 424.2 MB, free: 2.074 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.637e-05/0.3296, allocations: 47.44 kB / 424.2 MB, free: 2.027 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004181/0.3301, allocations: 233.1 kB / 424.5 MB, free: 1.797 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.32e-06/0.3301, allocations: 7.938 kB / 424.5 MB, free: 1.789 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.474e-06/0.3301, allocations: 4 kB / 424.5 MB, free: 1.785 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.486e-06/0.3301, allocations: 3.984 kB / 424.5 MB, free: 1.781 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001061/0.3312, allocations: 0.7376 MB / 425.2 MB, free: 0.9844 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.315e-06/0.3312, allocations: 0 / 425.2 MB, free: 0.9844 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.695e-05/0.3312, allocations: 15.92 kB / 425.2 MB, free: 0.9688 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.549e-06/0.3313, allocations: 4 kB / 425.2 MB, free: 0.9648 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.636e-05/0.3313, allocations: 15.94 kB / 425.2 MB, free: 0.9492 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.647e-06/0.3313, allocations: 4.062 kB / 425.2 MB, free: 0.9453 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.212e-06/0.3313, allocations: 4 kB / 425.2 MB, free: 0.9414 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006629/0.332, allocations: 0.4885 MB / 425.7 MB, free: 436 kB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.566e-05/0.3321, allocations: 116.6 kB / 425.8 MB, free: 300 kB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.905e-05/0.3322, allocations: 15.98 kB / 425.9 MB, free: 284 kB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001954/0.3324, allocations: 23.98 kB / 425.9 MB, free: 260 kB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001207/0.3325, allocations: 39.89 kB / 425.9 MB, free: 220 kB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.344e-05/0.3325, allocations: 19.98 kB / 425.9 MB, free: 200 kB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0003684/0.3329, allocations: 331.1 kB / 426.3 MB, free: 15.87 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.3329, allocations: 0 / 426.3 MB, free: 15.87 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005095/0.3334, allocations: 115.9 kB / 426.4 MB, free: 15.76 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.001254/0.3347, allocations: 450.4 kB / 426.8 MB, free: 15.45 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.000718/0.3354, allocations: 390.2 kB / 427.2 MB, free: 15.05 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.386e-06/0.3354, allocations: 192 / 427.2 MB, free: 15.05 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003435/0.3358, allocations: 242.8 kB / 427.4 MB, free: 14.81 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005473/0.3363, allocations: 77.45 kB / 427.5 MB, free: 14.73 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001498/0.3378, allocations: 0.781 MB / 428.3 MB, free: 13.92 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005622/0.3384, allocations: 0.8434 MB / 429.1 MB, free: 13.05 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001956/0.3386, allocations: 75.55 kB / 429.2 MB, free: 12.97 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.838e-05/0.3387, allocations: 31.44 kB / 429.2 MB, free: 12.94 MB / 350.1 MB Notification: Performance of SimCode: time 2.2e-07/0.3387, allocations: 0 / 429.2 MB, free: 12.94 MB / 350.1 MB Notification: Performance of Templates: time 0.0111/0.3498, allocations: 5.426 MB / 434.7 MB, free: 7.539 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