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.001252/0.001252, allocations: 114.5 kB / 17.73 MB, free: 5.34 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.001499/0.001499, allocations: 183 kB / 18.66 MB, free: 4.414 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.771/1.771, 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.001132/0.001132, allocations: 52.39 kB / 328.5 MB, free: 3.301 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1074/0.1086, allocations: 46.62 MB / 375.1 MB, free: 4.566 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.BooleanNetwork1): time 0.004204/0.1128, allocations: 2.445 MB / 377.6 MB, free: 2.109 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002239/0.1151, allocations: 1.252 MB / 378.8 MB, free: 0.8477 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002212/0.1153, allocations: 7.938 kB / 378.9 MB, free: 0.8398 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008651/0.1162, allocations: 238.9 kB / 379.1 MB, free: 0.6055 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003935/0.1166, allocations: 159.2 kB / 379.2 MB, free: 460 kB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007749/0.1174, allocations: 279.4 kB / 379.5 MB, free: 180 kB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.2397/0.3571, allocations: 468.2 kB / 380 MB, free: 9.852 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005427/0.3577, allocations: 216.2 kB / 380.2 MB, free: 9.824 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004017/0.3581, allocations: 195 kB / 380.4 MB, free: 9.793 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003748/0.3585, allocations: 216.7 kB / 380.6 MB, free: 9.746 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 9.57e-05/0.3586, allocations: 34.97 kB / 380.6 MB, free: 9.746 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005125/0.3591, allocations: 121.3 kB / 380.7 MB, free: 9.746 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002199/0.3594, allocations: 128.5 kB / 380.9 MB, free: 9.727 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000287/0.3597, allocations: 220 kB / 381.1 MB, free: 9.652 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009582/0.3606, allocations: 0.5558 MB / 381.6 MB, free: 9.57 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.182e-06/0.3607, allocations: 0.625 kB / 381.6 MB, free: 9.57 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.555e-06/0.3607, allocations: 0 / 381.6 MB, free: 9.57 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.562e-05/0.3607, allocations: 1.156 kB / 381.6 MB, free: 9.57 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.001545/0.3622, allocations: 0.8524 MB / 382.5 MB, free: 8.969 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.299e-05/0.3623, allocations: 10.11 kB / 382.5 MB, free: 8.969 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001487/0.3624, allocations: 57.25 kB / 382.6 MB, free: 8.941 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005435/0.363, allocations: 397.1 kB / 382.9 MB, free: 8.688 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.102e-05/0.3631, allocations: 56.36 kB / 383 MB, free: 8.656 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.529e-05/0.3632, allocations: 45.31 kB / 383 MB, free: 8.656 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007237/0.3639, allocations: 431.5 kB / 383.5 MB, free: 8.52 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.586e-05/0.3639, allocations: 1.062 kB / 383.5 MB, free: 8.52 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.231e-05/0.364, allocations: 20.78 kB / 383.5 MB, free: 8.516 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.654e-05/0.364, allocations: 16.44 kB / 383.5 MB, free: 8.516 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005177/0.3645, allocations: 264.4 kB / 383.8 MB, free: 8.512 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002034/0.3666, allocations: 1.669 MB / 385.4 MB, free: 7.441 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00062/0.3672, allocations: 303.3 kB / 385.7 MB, free: 7.367 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002338/0.3675, allocations: 123 kB / 385.8 MB, free: 7.344 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.482e-05/0.3675, allocations: 17.64 kB / 385.9 MB, free: 7.34 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004908/0.368, allocations: 328.7 kB / 386.2 MB, free: 7.168 MB / 318.1 MB Notification: Performance of pre-optimization done (n=37): time 2.104e-06/0.3681, allocations: 0 / 386.2 MB, free: 7.168 MB / 318.1 MB Notification: Performance of matching and sorting (n=37): time 0.001063/0.3691, allocations: 481.7 kB / 386.7 MB, free: 7.02 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.08e-05/0.3692, allocations: 166 kB / 386.8 MB, free: 6.828 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005889/0.3698, allocations: 492.8 kB / 387.3 MB, free: 6.594 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 4.365e-05/0.3699, allocations: 41.09 kB / 387.3 MB, free: 6.555 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001659/0.37, allocations: 237.6 kB / 387.6 MB, free: 6.367 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.142e-05/0.3701, allocations: 79.53 kB / 387.6 MB, free: 6.312 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001675/0.3703, allocations: 120.8 kB / 387.8 MB, free: 6.254 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001022/0.3704, allocations: 362.1 kB / 388.1 MB, free: 5.918 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002357/0.3706, allocations: 116.3 kB / 388.2 MB, free: 5.879 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003405/0.371, allocations: 264.8 kB / 388.5 MB, free: 5.672 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005387/0.3715, allocations: 427.1 kB / 388.9 MB, free: 5.367 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.334e-06/0.3715, allocations: 3.438 kB / 388.9 MB, free: 5.367 MB / 318.1 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.0008224/0.3724, allocations: 474 kB / 389.4 MB, free: 5.176 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.478e-05/0.3724, allocations: 39.66 kB / 389.4 MB, free: 5.141 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.097e-05/0.3724, allocations: 3.438 kB / 389.4 MB, free: 5.141 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.546e-05/0.3725, allocations: 7.094 kB / 389.4 MB, free: 5.141 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001503/0.3726, allocations: 45.42 kB / 389.5 MB, free: 5.137 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.792e-05/0.3727, allocations: 10.81 kB / 389.5 MB, free: 5.137 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002539/0.3729, allocations: 52.72 kB / 389.5 MB, free: 5.109 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.747e-05/0.373, allocations: 23.41 kB / 389.5 MB, free: 5.105 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.0002479/0.3732, allocations: 254.1 kB / 389.8 MB, free: 4.906 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.233e-05/0.3733, allocations: 41.81 kB / 389.8 MB, free: 4.887 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000494/0.3738, allocations: 264.2 kB / 390.1 MB, free: 4.777 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.183e-06/0.3738, allocations: 4.594 kB / 390.1 MB, free: 4.777 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.327e-06/0.3738, allocations: 1.125 kB / 390.1 MB, free: 4.777 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.029e-05/0.3739, allocations: 3.109 kB / 390.1 MB, free: 4.777 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001038/0.3749, allocations: 0.7777 MB / 390.9 MB, free: 4.312 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.27e-06/0.3749, allocations: 7.609 kB / 390.9 MB, free: 4.309 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.939e-05/0.375, allocations: 18.67 kB / 390.9 MB, free: 4.305 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.898e-06/0.375, allocations: 2 kB / 390.9 MB, free: 4.305 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.011e-05/0.375, allocations: 12.42 kB / 390.9 MB, free: 4.301 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.258e-06/0.375, allocations: 9.688 kB / 390.9 MB, free: 4.297 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.815e-06/0.375, allocations: 5.406 kB / 390.9 MB, free: 4.293 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006702/0.3757, allocations: 0.5099 MB / 391.4 MB, free: 3.992 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.195e-05/0.3758, allocations: 118.9 kB / 391.6 MB, free: 3.871 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.98e-05/0.3759, allocations: 17.41 kB / 391.6 MB, free: 3.863 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000211/0.3761, allocations: 21.27 kB / 391.6 MB, free: 3.859 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001346/0.3762, allocations: 53.97 kB / 391.7 MB, free: 3.844 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.076e-05/0.3763, allocations: 18.67 kB / 391.7 MB, free: 3.84 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.000353/0.3766, allocations: 324.6 kB / 392 MB, free: 3.691 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.61e-07/0.3767, allocations: 0 / 392 MB, free: 3.691 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0005404/0.3772, allocations: 119.7 kB / 392.1 MB, free: 3.66 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.001009/0.3782, allocations: 454.9 kB / 392.5 MB, free: 3.32 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0006425/0.3789, allocations: 399.7 kB / 392.9 MB, free: 3.164 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.064e-06/0.3789, allocations: 0 / 392.9 MB, free: 3.164 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003048/0.3792, allocations: 237.7 kB / 393.2 MB, free: 3.051 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005571/0.3798, allocations: 88.86 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.001263/0.381, allocations: 0.7806 MB / 394 MB, free: 2.582 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002937/0.3813, allocations: 0.8388 MB / 394.9 MB, free: 1.875 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0002133/0.3816, allocations: 77.33 kB / 395 MB, free: 1.863 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001075/0.3817, allocations: 43.42 kB / 395 MB, free: 1.852 MB / 318.1 MB Notification: Performance of SimCode: time 2e-07/0.3817, allocations: 0 / 395 MB, free: 1.852 MB / 318.1 MB Notification: Performance of Templates: time 0.01114/0.3928, allocations: 5.525 MB / 400.5 MB, free: 0.6758 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