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.001099/0.001099, allocations: 109.4 kB / 17.73 MB, free: 5.363 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.001115/0.001115, allocations: 188.1 kB / 18.66 MB, free: 4.441 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.456/1.456, allocations: 205.1 MB / 224.5 MB, free: 12.24 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.001346/0.001346, allocations: 51.92 kB / 328.5 MB, free: 3.305 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.107/0.1084, allocations: 46.63 MB / 375.2 MB, free: 4.566 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.BooleanNetwork1): time 0.005283/0.1137, allocations: 2.433 MB / 377.6 MB, free: 2.121 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.003103/0.1169, allocations: 1.252 MB / 378.8 MB, free: 0.8594 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004981/0.1174, allocations: 7.938 kB / 378.8 MB, free: 0.8516 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001104/0.1186, allocations: 246.9 kB / 379.1 MB, free: 0.6094 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006594/0.1192, allocations: 159.2 kB / 379.2 MB, free: 464 kB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009327/0.1202, allocations: 275.4 kB / 379.5 MB, free: 188 kB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.2514/0.3716, allocations: 471.9 kB / 380 MB, free: 9.844 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000536/0.3722, allocations: 220.1 kB / 380.2 MB, free: 9.816 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003469/0.3726, allocations: 195.6 kB / 380.4 MB, free: 9.785 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002754/0.3729, allocations: 212.6 kB / 380.6 MB, free: 9.738 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 7.005e-05/0.3729, allocations: 34.56 kB / 380.6 MB, free: 9.738 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003443/0.3733, allocations: 121.5 kB / 380.7 MB, free: 9.738 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001548/0.3735, allocations: 131.6 kB / 380.9 MB, free: 9.719 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002065/0.3737, allocations: 217.4 kB / 381.1 MB, free: 9.645 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008565/0.3745, allocations: 0.5617 MB / 381.6 MB, free: 9.562 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.669e-06/0.3746, allocations: 2.094 kB / 381.6 MB, free: 9.562 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.603e-06/0.3746, allocations: 0 / 381.6 MB, free: 9.562 MB / 318.1 MB Notification: Performance of Transformations before backend: time 8.867e-06/0.3746, allocations: 1.266 kB / 381.6 MB, free: 9.562 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.001435/0.376, allocations: 0.8449 MB / 382.5 MB, free: 8.961 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.091e-05/0.3761, allocations: 9.312 kB / 382.5 MB, free: 8.961 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001441/0.3762, allocations: 60 kB / 382.6 MB, free: 8.934 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006022/0.3768, allocations: 401.7 kB / 382.9 MB, free: 8.68 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.609e-05/0.3769, allocations: 60.27 kB / 383 MB, free: 8.648 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.454e-05/0.377, allocations: 38.83 kB / 383 MB, free: 8.648 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007419/0.3777, allocations: 427.9 kB / 383.5 MB, free: 8.512 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.635e-05/0.3778, allocations: 0 / 383.5 MB, free: 8.512 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.789e-05/0.3778, allocations: 20.84 kB / 383.5 MB, free: 8.508 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.399e-05/0.3779, allocations: 15.12 kB / 383.5 MB, free: 8.508 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005694/0.3784, allocations: 265.2 kB / 383.8 MB, free: 8.504 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001855/0.3803, allocations: 1.674 MB / 385.4 MB, free: 7.434 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005977/0.3809, allocations: 293.2 kB / 385.7 MB, free: 7.359 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002229/0.3811, allocations: 130.3 kB / 385.8 MB, free: 7.336 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.985e-05/0.3812, allocations: 15.73 kB / 385.9 MB, free: 7.332 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004882/0.3817, allocations: 328.7 kB / 386.2 MB, free: 7.16 MB / 318.1 MB Notification: Performance of pre-optimization done (n=37): time 3.056e-06/0.3817, allocations: 0 / 386.2 MB, free: 7.16 MB / 318.1 MB Notification: Performance of matching and sorting (n=37): time 0.0009949/0.3827, allocations: 486.9 kB / 386.7 MB, free: 7.012 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.491e-05/0.3828, allocations: 162.3 kB / 386.8 MB, free: 6.824 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005721/0.3834, allocations: 488.6 kB / 387.3 MB, free: 6.59 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 4.685e-05/0.3834, allocations: 40.7 kB / 387.3 MB, free: 6.551 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001714/0.3836, allocations: 234.4 kB / 387.6 MB, free: 6.367 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.878e-05/0.3837, allocations: 90.48 kB / 387.7 MB, free: 6.309 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001675/0.3839, allocations: 120.6 kB / 387.8 MB, free: 6.25 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 8.596e-05/0.384, allocations: 361.4 kB / 388.1 MB, free: 5.914 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002398/0.3842, allocations: 117.2 kB / 388.2 MB, free: 5.875 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003316/0.3846, allocations: 264 kB / 388.5 MB, free: 5.668 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005087/0.3851, allocations: 428.8 kB / 388.9 MB, free: 5.359 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.428e-06/0.3851, allocations: 1.375 kB / 388.9 MB, free: 5.359 MB / 318.1 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.0008185/0.3859, allocations: 477.9 kB / 389.4 MB, free: 5.168 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.508e-05/0.386, allocations: 35.23 kB / 389.4 MB, free: 5.137 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.043e-05/0.386, allocations: 4.562 kB / 389.4 MB, free: 5.137 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.306e-05/0.3861, allocations: 7.469 kB / 389.4 MB, free: 5.137 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001554/0.3862, allocations: 48.27 kB / 389.5 MB, free: 5.129 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.395e-05/0.3862, allocations: 6.828 kB / 389.5 MB, free: 5.129 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002491/0.3865, allocations: 53.27 kB / 389.5 MB, free: 5.102 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.478e-05/0.3866, allocations: 18.59 kB / 389.6 MB, free: 5.102 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.0002531/0.3868, allocations: 261 kB / 389.8 MB, free: 4.898 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.478e-05/0.3869, allocations: 42.28 kB / 389.8 MB, free: 4.879 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005263/0.3874, allocations: 258.3 kB / 390.1 MB, free: 4.773 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.556e-06/0.3874, allocations: 4.562 kB / 390.1 MB, free: 4.773 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.12e-05/0.3875, allocations: 5.922 kB / 390.1 MB, free: 4.773 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.213e-06/0.3875, allocations: 3.641 kB / 390.1 MB, free: 4.773 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001109/0.3886, allocations: 0.7753 MB / 390.9 MB, free: 4.309 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.598e-06/0.3886, allocations: 0.5156 kB / 390.9 MB, free: 4.309 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.63e-05/0.3887, allocations: 24.11 kB / 390.9 MB, free: 4.301 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.098e-06/0.3887, allocations: 1.281 kB / 390.9 MB, free: 4.301 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.265e-05/0.3887, allocations: 12.53 kB / 390.9 MB, free: 4.297 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.581e-06/0.3887, allocations: 7.766 kB / 390.9 MB, free: 4.293 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.568e-06/0.3888, allocations: 5.219 kB / 390.9 MB, free: 4.289 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007466/0.3895, allocations: 0.5144 MB / 391.5 MB, free: 3.988 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.092e-05/0.3896, allocations: 123.6 kB / 391.6 MB, free: 3.863 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.771e-05/0.3897, allocations: 10.78 kB / 391.6 MB, free: 3.859 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002008/0.3899, allocations: 22.56 kB / 391.6 MB, free: 3.855 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001645/0.39, allocations: 46.53 kB / 391.7 MB, free: 3.84 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.921e-05/0.3901, allocations: 18.83 kB / 391.7 MB, free: 3.836 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0003809/0.3905, allocations: 325.6 kB / 392 MB, free: 3.688 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3905, allocations: 3.469 kB / 392 MB, free: 3.688 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0005333/0.391, allocations: 118.7 kB / 392.1 MB, free: 3.656 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.00111/0.3921, allocations: 460.5 kB / 392.6 MB, free: 3.316 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0008015/0.393, allocations: 397 kB / 392.9 MB, free: 3.164 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.595e-06/0.393, allocations: 0 / 392.9 MB, free: 3.164 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003569/0.3933, allocations: 242.6 kB / 393.2 MB, free: 3.047 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005634/0.3939, allocations: 87.98 kB / 393.3 MB, free: 3.016 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001451/0.3954, allocations: 0.7783 MB / 394 MB, free: 2.582 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003504/0.3957, allocations: 0.8423 MB / 394.9 MB, free: 1.871 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0002181/0.396, allocations: 83.45 kB / 395 MB, free: 1.855 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001199/0.3961, allocations: 42.98 kB / 395 MB, free: 1.844 MB / 318.1 MB Notification: Performance of SimCode: time 2.61e-07/0.3961, allocations: 0 / 395 MB, free: 1.844 MB / 318.1 MB Notification: Performance of Templates: time 0.013/0.4091, allocations: 5.516 MB / 400.5 MB, free: 0.6602 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