Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Blocks.Examples.IntegerNetwork1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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_3.2.3_cpp_Modelica.Blocks.Examples.IntegerNetwork1") translateModel(Modelica.Blocks.Examples.IntegerNetwork1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|multiSwitch1.y|triggeredAdd.y",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Blocks.Examples.IntegerNetwork1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002141/0.002145, allocations: 181.3 kB / 13.66 MB, free: 1.664 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.022/2.022, allocations: 205.2 MB / 219.4 MB, free: 14.22 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001069/0.001069, allocations: 82.66 kB / 267.5 MB, free: 14.05 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.469e-05/3.493e-05, allocations: 7.984 kB / 321.5 MB, free: 17.85 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09197/0.09203, allocations: 47.57 MB / 369.1 MB, free: 2.215 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4165/0.5086, allocations: 77.22 MB / 446.3 MB, free: 15.93 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002392/0.5089, allocations: 62.53 kB / 446.4 MB, free: 15.9 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01291/0.5218, allocations: 2.806 MB / 449.2 MB, free: 13.5 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.543e-06/0.5219, allocations: 0 / 449.2 MB, free: 13.5 MB / 330.7 MB Notification: Performance of Transformations before backend: time 2.185e-05/0.5219, allocations: 4 kB / 449.2 MB, free: 13.5 MB / 330.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.0009922/0.5229, allocations: 483.8 kB / 449.6 MB, free: 12.99 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.756e-05/0.523, allocations: 8.031 kB / 449.6 MB, free: 12.98 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.922e-05/0.5231, allocations: 23.72 kB / 449.7 MB, free: 12.96 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003646/0.5235, allocations: 234.5 kB / 449.9 MB, free: 12.7 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.048e-05/0.5235, allocations: 11.69 kB / 449.9 MB, free: 12.7 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.097e-05/0.5236, allocations: 23.39 kB / 449.9 MB, free: 12.68 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004703/0.524, allocations: 196.4 kB / 450.1 MB, free: 12.51 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.239e-05/0.5241, allocations: 0 / 450.1 MB, free: 12.51 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.732e-05/0.5241, allocations: 7.812 kB / 450.1 MB, free: 12.5 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.733e-05/0.5241, allocations: 4 kB / 450.1 MB, free: 12.5 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003496/0.5245, allocations: 118.6 kB / 450.3 MB, free: 12.42 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001679/0.5262, allocations: 0.8046 MB / 451.1 MB, free: 11.62 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009045/0.5271, allocations: 189 kB / 451.2 MB, free: 11.46 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001555/0.5273, allocations: 52.53 kB / 451.3 MB, free: 11.43 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.181e-05/0.5274, allocations: 11.98 kB / 451.3 MB, free: 11.41 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003065/0.5277, allocations: 134.8 kB / 451.4 MB, free: 11.29 MB / 330.7 MB Notification: Performance of pre-optimization done (n=15): time 2.655e-06/0.5277, allocations: 0 / 451.4 MB, free: 11.29 MB / 330.7 MB Notification: Performance of matching and sorting (n=15): time 0.0005126/0.5282, allocations: 159.5 kB / 451.6 MB, free: 11.15 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.863e-05/0.5283, allocations: 81.11 kB / 451.7 MB, free: 11.05 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002809/0.5286, allocations: 204.8 kB / 451.9 MB, free: 10.88 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 3.266e-05/0.5287, allocations: 32.52 kB / 451.9 MB, free: 10.84 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001238/0.5288, allocations: 203.2 kB / 452.1 MB, free: 10.65 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.878e-05/0.5289, allocations: 30.3 kB / 452.1 MB, free: 10.63 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.557e-05/0.5289, allocations: 7 kB / 452.1 MB, free: 10.62 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001343/0.529, allocations: 325.8 kB / 452.5 MB, free: 10.3 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001669/0.5292, allocations: 52.48 kB / 452.5 MB, free: 10.27 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002198/0.5294, allocations: 125.6 kB / 452.6 MB, free: 10.14 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002012/0.5297, allocations: 67.52 kB / 452.7 MB, free: 10.09 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.971e-06/0.5297, allocations: 4 kB / 452.7 MB, free: 10.08 MB / 330.7 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0005547/0.5302, allocations: 216 kB / 452.9 MB, free: 9.906 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.107e-05/0.5303, allocations: 4 kB / 452.9 MB, free: 9.902 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.094e-05/0.5303, allocations: 4 kB / 452.9 MB, free: 9.898 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.066e-05/0.5303, allocations: 4 kB / 452.9 MB, free: 9.895 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003484/0.5307, allocations: 47.22 kB / 453 MB, free: 9.852 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.409e-05/0.5307, allocations: 4 kB / 453 MB, free: 9.848 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003164/0.531, allocations: 38.98 kB / 453 MB, free: 9.812 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.202e-05/0.5311, allocations: 11.98 kB / 453 MB, free: 9.801 MB / 330.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.0001483/0.5313, allocations: 137.2 kB / 453.2 MB, free: 9.668 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.676e-05/0.5313, allocations: 19.81 kB / 453.2 MB, free: 9.648 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003763/0.5317, allocations: 129.1 kB / 453.3 MB, free: 9.535 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.16e-06/0.5317, allocations: 0 / 453.3 MB, free: 9.535 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.045e-06/0.5317, allocations: 4 kB / 453.3 MB, free: 9.531 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.35e-06/0.5318, allocations: 0 / 453.3 MB, free: 9.531 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008797/0.5326, allocations: 481 kB / 453.8 MB, free: 9.062 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.837e-06/0.5327, allocations: 4 kB / 453.8 MB, free: 9.059 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002114/0.5329, allocations: 19.98 kB / 453.8 MB, free: 9.039 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.027e-06/0.5329, allocations: 4.109 kB / 453.8 MB, free: 9.035 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.216e-05/0.5329, allocations: 4 kB / 453.8 MB, free: 9.031 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.557e-06/0.533, allocations: 4 kB / 453.8 MB, free: 9.027 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.378e-06/0.533, allocations: 3.938 kB / 453.8 MB, free: 9.023 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004833/0.5335, allocations: 276.2 kB / 454.1 MB, free: 8.762 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.689e-05/0.5336, allocations: 96.84 kB / 454.2 MB, free: 8.648 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.568e-05/0.5336, allocations: 11.5 kB / 454.2 MB, free: 8.641 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002961/0.5339, allocations: 19.73 kB / 454.2 MB, free: 8.625 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001099/0.5341, allocations: 23.45 kB / 454.2 MB, free: 8.605 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.866e-05/0.5341, allocations: 8 kB / 454.2 MB, free: 8.598 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0001915/0.5344, allocations: 149 kB / 454.4 MB, free: 8.473 MB / 330.7 MB Notification: Performance of sort global known variables: time 4.71e-07/0.5344, allocations: 0 / 454.4 MB, free: 8.473 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0004341/0.5348, allocations: 51.3 kB / 454.4 MB, free: 8.426 MB / 330.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.0002213/0.535, allocations: 113.1 kB / 454.5 MB, free: 8.312 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0004403/0.5355, allocations: 145.9 kB / 454.7 MB, free: 8.203 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.486e-06/0.5355, allocations: 0.5 kB / 454.7 MB, free: 8.203 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000212/0.5357, allocations: 71.55 kB / 454.8 MB, free: 8.152 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000397/0.5361, allocations: 26.5 kB / 454.8 MB, free: 8.133 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008594/0.537, allocations: 290.9 kB / 455.1 MB, free: 7.852 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003342/0.5374, allocations: 0.7365 MB / 455.8 MB, free: 7.082 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000128/0.5375, allocations: 26.67 kB / 455.8 MB, free: 7.059 MB / 330.7 MB Notification: Performance of SimCode: time 1.172e-06/0.5375, allocations: 0 / 455.8 MB, free: 7.059 MB / 330.7 MB Notification: Performance of Templates: time 0.006433/0.544, allocations: 2.373 MB / 458.2 MB, free: 4.707 MB / 330.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Blocks.Examples.IntegerNetwork1.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Blocks.Examples.IntegerNetwork1.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Blocks.Examples.IntegerNetwork1.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Blocks.Examples.IntegerNetwork1.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Blocks.Examples.IntegerNetwork1.sim & ./Modelica_3.2.3_cpp_Modelica.Blocks.Examples.IntegerNetwork1 --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Blocks.Examples.IntegerNetwork1.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Blocks.Examples.IntegerNetwork1_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Blocks/Examples/IntegerNetwork1/IntegerNetwork1.csv","../files/Modelica_3.2.3_cpp_Modelica.Blocks.Examples.IntegerNetwork1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches