Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Blocks.Examples.IntegerNetwork1.conf.json 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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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) Running command: translateModel(Modelica.Blocks.Examples.IntegerNetwork1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|multiSwitch1.y|triggeredAdd.y",fileNamePrefix="Modelica_4.0.0_Modelica.Blocks.Examples.IntegerNetwork1") translateModel(Modelica.Blocks.Examples.IntegerNetwork1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|multiSwitch1.y|triggeredAdd.y",fileNamePrefix="Modelica_4.0.0_Modelica.Blocks.Examples.IntegerNetwork1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00122/0.00122, allocations: 174.8 kB / 13.63 MB, free: 1.684 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.313/1.313, allocations: 221.3 MB / 235.5 MB, free: 2.941 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008766/0.0008764, allocations: 91.73 kB / 286.5 MB, free: 228 kB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.065e-05/2.065e-05, allocations: 4 kB / 343.8 MB, free: 4.324 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08456/0.0846, allocations: 50.41 MB / 394.2 MB, free: 1.867 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3071/0.3918, allocations: 78.01 MB / 472.3 MB, free: 9.555 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002439/0.3921, allocations: 65.56 kB / 472.3 MB, free: 9.492 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.008561/0.4006, allocations: 2.852 MB / 475.2 MB, free: 6.648 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.973e-06/0.4007, allocations: 0 / 475.2 MB, free: 6.648 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.687e-05/0.4007, allocations: 7.984 kB / 475.2 MB, free: 6.641 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 38 * Number of variables: 38 Notification: Performance of Generate backend data structure: time 0.0007032/0.4014, allocations: 480.7 kB / 475.6 MB, free: 6.129 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.534e-05/0.4015, allocations: 8.031 kB / 475.7 MB, free: 6.121 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.249e-05/0.4015, allocations: 27.67 kB / 475.7 MB, free: 6.094 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002859/0.4018, allocations: 234.8 kB / 475.9 MB, free: 5.824 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.492e-05/0.4019, allocations: 12 kB / 475.9 MB, free: 5.812 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.558e-05/0.4019, allocations: 16 kB / 475.9 MB, free: 5.797 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003613/0.4023, allocations: 197.5 kB / 476.1 MB, free: 5.582 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.071e-05/0.4023, allocations: 0 / 476.1 MB, free: 5.582 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.193e-05/0.4023, allocations: 8 kB / 476.1 MB, free: 5.574 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.375e-05/0.4024, allocations: 11.95 kB / 476.1 MB, free: 5.562 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002299/0.4026, allocations: 115.9 kB / 476.3 MB, free: 5.449 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001139/0.4037, allocations: 0.8012 MB / 477.1 MB, free: 4.586 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005826/0.4043, allocations: 194.6 kB / 477.3 MB, free: 4.387 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001106/0.4045, allocations: 52.84 kB / 477.3 MB, free: 4.332 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.949e-05/0.4045, allocations: 7.938 kB / 477.3 MB, free: 4.324 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002135/0.4047, allocations: 133 kB / 477.4 MB, free: 4.176 MB / 346.7 MB Notification: Performance of pre-optimization done (n=15): time 1.523e-06/0.4047, allocations: 0 / 477.4 MB, free: 4.176 MB / 346.7 MB Notification: Performance of matching and sorting (n=15): time 0.0003636/0.4051, allocations: 169.3 kB / 477.6 MB, free: 4.004 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.998e-05/0.4052, allocations: 81.11 kB / 477.7 MB, free: 3.906 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001804/0.4054, allocations: 197.8 kB / 477.9 MB, free: 3.699 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 2.986e-05/0.4054, allocations: 33.7 kB / 477.9 MB, free: 3.66 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.933e-05/0.4055, allocations: 140.5 kB / 478 MB, free: 3.516 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.907e-05/0.4055, allocations: 23.7 kB / 478.1 MB, free: 3.492 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.025e-05/0.4055, allocations: 4 kB / 478.1 MB, free: 3.488 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001203/0.4057, allocations: 331.4 kB / 478.4 MB, free: 3.156 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.979e-05/0.4058, allocations: 55.92 kB / 478.5 MB, free: 3.102 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000154/0.4059, allocations: 132.4 kB / 478.6 MB, free: 2.941 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001227/0.4061, allocations: 67.95 kB / 478.7 MB, free: 2.875 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.629e-06/0.4061, allocations: 0 / 478.7 MB, free: 2.875 MB / 346.7 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0003344/0.4064, allocations: 229.1 kB / 478.9 MB, free: 2.645 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.624e-05/0.4065, allocations: 7.953 kB / 478.9 MB, free: 2.637 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.713e-06/0.4065, allocations: 4 kB / 478.9 MB, free: 2.633 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.299e-05/0.4065, allocations: 4.25 kB / 478.9 MB, free: 2.629 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001738/0.4067, allocations: 43.91 kB / 478.9 MB, free: 2.586 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.1e-05/0.4067, allocations: 7.984 kB / 478.9 MB, free: 2.578 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001711/0.4069, allocations: 35.83 kB / 479 MB, free: 2.543 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.8e-05/0.4069, allocations: 8 kB / 479 MB, free: 2.535 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 25 (sum.u[1],product.u[1],product.u[2],product.y,$PRE.triggeredAdd.y,triggeredAdd.y,$whenCondition3,$whenCondition2,$whenCondition1,$PRE.booleanPulse1.pulseStart,booleanPulse1.pulseStart,multiSwitch1.u[1],multiSwitch1.u[2],$PRE.multiSwitch1.y,multiSwitch1.y,multiSwitch1.firstActiveIndex,$PRE.booleanPulse2.pulseStart,booleanPulse2.pulseStart,multiSwitch1.expr[1],multiSwitch1.expr[2],triggeredAdd.local_set,triggeredAdd.local_reset,showValue2.number,showValue1.number,showValue.number) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (26): * Single equations (assignments): 26 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001066/0.407, allocations: 135.1 kB / 479.1 MB, free: 2.395 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.716e-05/0.407, allocations: 15.81 kB / 479.1 MB, free: 2.379 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002359/0.4073, allocations: 135.1 kB / 479.3 MB, free: 2.242 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.404e-06/0.4073, allocations: 0 / 479.3 MB, free: 2.242 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.947e-06/0.4073, allocations: 12.11 kB / 479.3 MB, free: 2.23 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.967e-06/0.4073, allocations: 0 / 479.3 MB, free: 2.23 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005479/0.4079, allocations: 482.2 kB / 479.7 MB, free: 1.703 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.824e-06/0.4079, allocations: 288 / 479.7 MB, free: 1.703 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001237/0.408, allocations: 31.88 kB / 479.8 MB, free: 1.672 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.514e-06/0.408, allocations: 0 / 479.8 MB, free: 1.672 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.558e-05/0.4081, allocations: 7.922 kB / 479.8 MB, free: 1.664 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.563e-06/0.4081, allocations: 4 kB / 479.8 MB, free: 1.66 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.42e-07/0.4081, allocations: 0 / 479.8 MB, free: 1.66 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003035/0.4084, allocations: 279.2 kB / 480.1 MB, free: 1.363 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.571e-05/0.4084, allocations: 96.77 kB / 480.2 MB, free: 1.25 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.304e-05/0.4085, allocations: 11.98 kB / 480.2 MB, free: 1.238 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001705/0.4087, allocations: 15.98 kB / 480.2 MB, free: 1.223 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.705e-05/0.4087, allocations: 23.91 kB / 480.2 MB, free: 1.199 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.052e-05/0.4088, allocations: 19.98 kB / 480.2 MB, free: 1.18 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0001106/0.4089, allocations: 136.4 kB / 480.4 MB, free: 1.047 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.4089, allocations: 0 / 480.4 MB, free: 1.047 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0002813/0.4092, allocations: 51.92 kB / 480.4 MB, free: 0.9961 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 14 (multiSwitch1.u[1],$whenCondition3,$whenCondition2,$whenCondition1,triggeredAdd.y,booleanPulse1.pulseStart,multiSwitch1.u[2],multiSwitch1.y,multiSwitch1.firstActiveIndex,booleanPulse2.pulseStart,sum.u[1],product.u[1],product.u[2],product.y) * Number of discrete states: 2 (multiSwitch1.y,triggeredAdd.y) * Top-level inputs: 0 Notification: Strong component statistics for simulation (15): * Single equations (assignments): 12 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001666/0.4094, allocations: 111.2 kB / 480.5 MB, free: 0.875 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0002747/0.4096, allocations: 145.2 kB / 480.7 MB, free: 0.7344 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 3.076e-06/0.4097, allocations: 4.062 kB / 480.7 MB, free: 0.7305 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001236/0.4098, allocations: 63.92 kB / 480.7 MB, free: 0.668 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002758/0.4101, allocations: 27.94 kB / 480.8 MB, free: 0.6406 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005029/0.4106, allocations: 256.7 kB / 481 MB, free: 380 kB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002895/0.4109, allocations: 0.7404 MB / 481.7 MB, free: 15.6 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0001003/0.411, allocations: 33.53 kB / 481.8 MB, free: 15.57 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.039e-05/0.4111, allocations: 19.42 kB / 481.8 MB, free: 15.55 MB / 362.7 MB Notification: Performance of SimCode: time 2.31e-07/0.4111, allocations: 0 / 481.8 MB, free: 15.55 MB / 362.7 MB Notification: Performance of Templates: time 0.004376/0.4154, allocations: 1.794 MB / 483.6 MB, free: 13.77 MB / 362.7 MB make -j1 -f Modelica_4.0.0_Modelica.Blocks.Examples.IntegerNetwork1.makefile (rm -f Modelica_4.0.0_Modelica.Blocks.Examples.IntegerNetwork1.pipe ; mkfifo Modelica_4.0.0_Modelica.Blocks.Examples.IntegerNetwork1.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Blocks.Examples.IntegerNetwork1.pipe >> ../files/Modelica_4.0.0_Modelica.Blocks.Examples.IntegerNetwork1.sim & ./Modelica_4.0.0_Modelica.Blocks.Examples.IntegerNetwork1 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Blocks.Examples.IntegerNetwork1.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Blocks.Examples.IntegerNetwork1_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Blocks/Examples/IntegerNetwork1/IntegerNetwork1.csv","../files/Modelica_4.0.0_Modelica.Blocks.Examples.IntegerNetwork1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches