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.001274/0.001274, allocations: 113.2 kB / 17.73 MB, free: 5.297 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.001169/0.001169, allocations: 188.2 kB / 18.67 MB, free: 4.363 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.477/1.477, allocations: 205.1 MB / 224.5 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.001506/0.001506, allocations: 47.94 kB / 328.5 MB, free: 3.289 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1132/0.1148, allocations: 46.63 MB / 375.2 MB, free: 4.555 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.BooleanNetwork1): time 0.004253/0.1191, allocations: 2.437 MB / 377.6 MB, free: 2.105 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.00247/0.1216, allocations: 1.259 MB / 378.9 MB, free: 0.8359 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002019/0.1218, allocations: 11.94 kB / 378.9 MB, free: 0.8242 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007761/0.1226, allocations: 238.9 kB / 379.1 MB, free: 0.5898 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000386/0.123, allocations: 155.2 kB / 379.2 MB, free: 448 kB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007154/0.1237, allocations: 275.4 kB / 379.5 MB, free: 172 kB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.2558/0.3795, allocations: 467 kB / 380 MB, free: 9.852 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004557/0.38, allocations: 213.8 kB / 380.2 MB, free: 9.824 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003402/0.3804, allocations: 194 kB / 380.4 MB, free: 9.793 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003515/0.3807, allocations: 212 kB / 380.6 MB, free: 9.746 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 8.91e-05/0.3808, allocations: 34.47 kB / 380.6 MB, free: 9.746 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004277/0.3813, allocations: 131.1 kB / 380.7 MB, free: 9.746 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001923/0.3815, allocations: 127.1 kB / 380.9 MB, free: 9.727 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002429/0.3817, allocations: 219.9 kB / 381.1 MB, free: 9.652 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009923/0.3827, allocations: 0.5589 MB / 381.6 MB, free: 9.543 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.92e-06/0.3827, allocations: 0 / 381.6 MB, free: 9.543 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.876e-06/0.3827, allocations: 0.5156 kB / 381.6 MB, free: 9.543 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.019e-05/0.3828, allocations: 4.938 kB / 381.6 MB, free: 9.543 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.001529/0.3843, allocations: 0.8606 MB / 382.5 MB, free: 8.926 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.524e-05/0.3844, allocations: 9.844 kB / 382.5 MB, free: 8.926 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001742/0.3845, allocations: 60.47 kB / 382.6 MB, free: 8.898 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005914/0.3851, allocations: 405.5 kB / 383 MB, free: 8.637 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.955e-05/0.3852, allocations: 59.2 kB / 383 MB, free: 8.605 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.273e-05/0.3853, allocations: 41.59 kB / 383.1 MB, free: 8.605 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007381/0.386, allocations: 435.5 kB / 383.5 MB, free: 8.469 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.497e-05/0.3861, allocations: 0 / 383.5 MB, free: 8.469 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.687e-05/0.3861, allocations: 20.48 kB / 383.5 MB, free: 8.465 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.001e-05/0.3862, allocations: 13.64 kB / 383.5 MB, free: 8.465 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005134/0.3867, allocations: 261.6 kB / 383.8 MB, free: 8.461 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0019/0.3886, allocations: 1.677 MB / 385.5 MB, free: 7.391 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005743/0.3892, allocations: 292.1 kB / 385.7 MB, free: 7.316 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00022/0.3894, allocations: 130.8 kB / 385.9 MB, free: 7.293 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.447e-05/0.3895, allocations: 12.62 kB / 385.9 MB, free: 7.293 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004401/0.3899, allocations: 335.7 kB / 386.2 MB, free: 7.117 MB / 318.1 MB Notification: Performance of pre-optimization done (n=37): time 2.144e-06/0.3899, allocations: 0 / 386.2 MB, free: 7.117 MB / 318.1 MB Notification: Performance of matching and sorting (n=37): time 0.000983/0.3909, allocations: 480.5 kB / 386.7 MB, free: 6.984 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.261e-05/0.391, allocations: 170.8 kB / 386.8 MB, free: 6.793 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000545/0.3916, allocations: 488.6 kB / 387.3 MB, free: 6.559 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 3.448e-05/0.3916, allocations: 40.31 kB / 387.4 MB, free: 6.52 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001396/0.3918, allocations: 229.1 kB / 387.6 MB, free: 6.34 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.706e-05/0.3918, allocations: 97.33 kB / 387.7 MB, free: 6.27 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001608/0.392, allocations: 116.7 kB / 387.8 MB, free: 6.215 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 8.789e-05/0.3921, allocations: 360.3 kB / 388.1 MB, free: 5.879 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002342/0.3923, allocations: 117.6 kB / 388.3 MB, free: 5.84 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000331/0.3927, allocations: 263.3 kB / 388.5 MB, free: 5.637 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004988/0.3932, allocations: 421.7 kB / 388.9 MB, free: 5.332 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.789e-06/0.3932, allocations: 1.062 kB / 388.9 MB, free: 5.332 MB / 318.1 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.0007442/0.3939, allocations: 487.5 kB / 389.4 MB, free: 5.133 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.813e-05/0.394, allocations: 36.02 kB / 389.4 MB, free: 5.102 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.726e-06/0.394, allocations: 3.906 kB / 389.4 MB, free: 5.102 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.244e-05/0.394, allocations: 7.312 kB / 389.5 MB, free: 5.102 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001627/0.3942, allocations: 48.7 kB / 389.5 MB, free: 5.094 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.629e-05/0.3942, allocations: 8.281 kB / 389.5 MB, free: 5.094 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002611/0.3945, allocations: 56.2 kB / 389.6 MB, free: 5.062 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.528e-05/0.3946, allocations: 26.39 kB / 389.6 MB, free: 5.059 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.0002772/0.3948, allocations: 246.6 kB / 389.8 MB, free: 4.863 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.865e-05/0.3949, allocations: 50.3 kB / 389.9 MB, free: 4.84 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005417/0.3955, allocations: 263.2 kB / 390.1 MB, free: 4.73 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.785e-06/0.3955, allocations: 3.531 kB / 390.1 MB, free: 4.73 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.428e-06/0.3955, allocations: 2.75 kB / 390.1 MB, free: 4.73 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.005e-05/0.3955, allocations: 3.375 kB / 390.1 MB, free: 4.73 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001122/0.3966, allocations: 0.7752 MB / 390.9 MB, free: 4.266 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.691e-06/0.3967, allocations: 1.375 kB / 390.9 MB, free: 4.266 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.329e-05/0.3967, allocations: 22.5 kB / 390.9 MB, free: 4.262 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.643e-06/0.3967, allocations: 5.312 kB / 391 MB, free: 4.262 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.064e-05/0.3968, allocations: 12.06 kB / 391 MB, free: 4.258 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.062e-06/0.3968, allocations: 6.109 kB / 391 MB, free: 4.258 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.776e-06/0.3968, allocations: 5.125 kB / 391 MB, free: 4.254 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00069/0.3975, allocations: 0.5284 MB / 391.5 MB, free: 3.941 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.301e-05/0.3976, allocations: 118.9 kB / 391.6 MB, free: 3.82 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.012e-05/0.3977, allocations: 16.28 kB / 391.6 MB, free: 3.812 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002052/0.3979, allocations: 22.11 kB / 391.7 MB, free: 3.809 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000144/0.398, allocations: 50.45 kB / 391.7 MB, free: 3.793 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.95e-05/0.3981, allocations: 15.59 kB / 391.7 MB, free: 3.793 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0003608/0.3984, allocations: 323.5 kB / 392 MB, free: 3.645 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.3984, allocations: 0 / 392 MB, free: 3.645 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0005408/0.399, allocations: 123.2 kB / 392.2 MB, free: 3.609 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.001032/0.4, allocations: 457 kB / 392.6 MB, free: 3.266 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0007879/0.4008, allocations: 398.8 kB / 393 MB, free: 3.109 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.365e-06/0.4008, allocations: 1.312 kB / 393 MB, free: 3.109 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003377/0.4012, allocations: 233.3 kB / 393.2 MB, free: 2.996 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005615/0.4018, allocations: 90.36 kB / 393.3 MB, free: 2.961 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001316/0.4031, allocations: 0.7979 MB / 394.1 MB, free: 2.512 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002979/0.4034, allocations: 0.839 MB / 394.9 MB, free: 1.805 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0002178/0.4036, allocations: 82.2 kB / 395 MB, free: 1.789 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000105/0.4037, allocations: 43.78 kB / 395.1 MB, free: 1.777 MB / 318.1 MB Notification: Performance of SimCode: time 2.2e-07/0.4037, allocations: 0 / 395.1 MB, free: 1.777 MB / 318.1 MB Notification: Performance of Templates: time 0.01164/0.4154, allocations: 5.514 MB / 400.6 MB, free: 0.5898 MB / 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Blocks/Examples/BooleanNetwork1/BooleanNetwork1.csv","/var/lib/jenkins/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