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.002686/0.002686, allocations: 181.6 kB / 17.41 MB, free: 4.406 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 3.747/3.747, allocations: 205.4 MB / 223.6 MB, free: 9.023 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.001302/0.001301, allocations: 97.92 kB / 271.9 MB, free: 8.25 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006505/0.0006506, allocations: 8 kB / 328.1 MB, free: 15.96 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5748/0.5755, allocations: 47.57 MB / 375.7 MB, free: 45.4 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2408/0.8164, allocations: 77.35 MB / 453.1 MB, free: 3.293 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004756/0.817, allocations: 67.91 kB / 453.1 MB, free: 3.227 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.016/0.8331, allocations: 2.824 MB / 456 MB, free: 400 kB / 330.7 MB Notification: Performance of FrontEnd: time 5.59e-06/0.8332, allocations: 0 / 456 MB, free: 400 kB / 330.7 MB Notification: Performance of Transformations before backend: time 5.399e-05/0.8332, allocations: 4 kB / 456 MB, free: 396 kB / 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.001598/0.8349, allocations: 496.6 kB / 456.4 MB, free: 15.85 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 8.826e-05/0.835, allocations: 12.03 kB / 456.5 MB, free: 15.84 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000125/0.8351, allocations: 28.59 kB / 456.5 MB, free: 15.81 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005838/0.8357, allocations: 235.9 kB / 456.7 MB, free: 15.54 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.345e-05/0.8358, allocations: 20.12 kB / 456.7 MB, free: 15.52 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.089e-05/0.8359, allocations: 20.36 kB / 456.7 MB, free: 15.5 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007866/0.8367, allocations: 214.4 kB / 457 MB, free: 15.27 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.946e-05/0.8367, allocations: 192 / 457 MB, free: 15.27 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.192e-05/0.8368, allocations: 7.938 kB / 457 MB, free: 15.27 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.651e-05/0.8369, allocations: 14.38 kB / 457 MB, free: 15.25 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006515/0.8375, allocations: 139.8 kB / 457.1 MB, free: 15.12 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002287/0.8398, allocations: 0.8088 MB / 457.9 MB, free: 14.25 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001231/0.8411, allocations: 214.6 kB / 458.1 MB, free: 14.03 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002771/0.8414, allocations: 64.83 kB / 458.2 MB, free: 13.96 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001074/0.8415, allocations: 7.984 kB / 458.2 MB, free: 13.95 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005515/0.8421, allocations: 139.3 kB / 458.3 MB, free: 13.8 MB / 346.7 MB Notification: Performance of pre-optimization done (n=15): time 5.16e-06/0.8421, allocations: 4 kB / 458.3 MB, free: 13.8 MB / 346.7 MB Notification: Performance of matching and sorting (n=15): time 0.001285/0.8434, allocations: 253.2 kB / 458.6 MB, free: 13.54 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001326/0.8436, allocations: 81.11 kB / 458.7 MB, free: 13.45 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004435/0.844, allocations: 231 kB / 458.9 MB, free: 13.21 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 5.184e-05/0.8441, allocations: 29.7 kB / 458.9 MB, free: 13.17 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001729/0.8443, allocations: 132.3 kB / 459.1 MB, free: 13.04 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.036e-05/0.8444, allocations: 39.53 kB / 459.1 MB, free: 13 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.259e-05/0.8445, allocations: 7.938 kB / 459.1 MB, free: 12.99 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0002796/0.8447, allocations: 338.8 kB / 459.4 MB, free: 12.65 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003322/0.8451, allocations: 67.95 kB / 459.5 MB, free: 12.59 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004035/0.8455, allocations: 131 kB / 459.6 MB, free: 12.43 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007055/0.8463, allocations: 220.9 kB / 459.8 MB, free: 12.18 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.428e-06/0.8463, allocations: 0 / 459.8 MB, free: 12.18 MB / 346.7 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0009219/0.8472, allocations: 262.6 kB / 460.1 MB, free: 11.92 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.945e-05/0.8473, allocations: 10.19 kB / 460.1 MB, free: 11.91 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.518e-05/0.8473, allocations: 4 kB / 460.1 MB, free: 11.91 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.279e-05/0.8474, allocations: 0 / 460.1 MB, free: 11.91 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003525/0.8477, allocations: 43.91 kB / 460.2 MB, free: 11.87 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.295e-05/0.8478, allocations: 4.312 kB / 460.2 MB, free: 11.86 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000333/0.8481, allocations: 39.92 kB / 460.2 MB, free: 11.82 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.514e-05/0.8482, allocations: 15.98 kB / 460.2 MB, free: 11.81 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 () * Number of clocked 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.0002739/0.8485, allocations: 148 kB / 460.4 MB, free: 11.66 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.68e-05/0.8486, allocations: 19.81 kB / 460.4 MB, free: 11.64 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004573/0.849, allocations: 127 kB / 460.5 MB, free: 11.51 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.449e-05/0.8491, allocations: 7.984 kB / 460.5 MB, free: 11.5 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.902e-06/0.8491, allocations: 0 / 460.5 MB, free: 11.5 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.921e-06/0.8491, allocations: 4 kB / 460.5 MB, free: 11.5 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006028/0.8551, allocations: 482.2 kB / 461 MB, free: 10.97 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.067e-05/0.8553, allocations: 0 / 461 MB, free: 10.97 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002754/0.8556, allocations: 23.92 kB / 461 MB, free: 10.95 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.376e-05/0.8556, allocations: 0 / 461 MB, free: 10.95 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.063e-05/0.8557, allocations: 7.984 kB / 461 MB, free: 10.94 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.468e-05/0.8557, allocations: 8 kB / 461 MB, free: 10.93 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.648e-06/0.8557, allocations: 3.938 kB / 461 MB, free: 10.93 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00101/0.8567, allocations: 291.9 kB / 461.3 MB, free: 10.63 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001299/0.8569, allocations: 92.92 kB / 461.4 MB, free: 10.52 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.252e-05/0.857, allocations: 7.875 kB / 461.4 MB, free: 10.51 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003514/0.8573, allocations: 31.95 kB / 461.4 MB, free: 10.48 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001648/0.8575, allocations: 27.84 kB / 461.5 MB, free: 10.45 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.145e-05/0.8576, allocations: 4 kB / 461.5 MB, free: 10.45 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0002591/0.8579, allocations: 152.4 kB / 461.6 MB, free: 10.3 MB / 346.7 MB Notification: Performance of sort global known variables: time 4.81e-07/0.8579, allocations: 0 / 461.6 MB, free: 10.3 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0006301/0.8585, allocations: 47.91 kB / 461.7 MB, free: 10.25 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) * Number of clocked states: 0 () * 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.0003778/0.8589, allocations: 111.2 kB / 461.8 MB, free: 10.14 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0008466/0.8598, allocations: 180.2 kB / 462 MB, free: 9.961 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 9.608e-06/0.8598, allocations: 0 / 462 MB, free: 9.961 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003394/0.8602, allocations: 79.89 kB / 462 MB, free: 9.883 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006559/0.8608, allocations: 32.25 kB / 462.1 MB, free: 9.852 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001482/0.8623, allocations: 441.2 kB / 462.5 MB, free: 9.383 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005434/0.8629, allocations: 0.7323 MB / 463.2 MB, free: 8.625 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001043/0.863, allocations: 15.44 kB / 463.2 MB, free: 8.609 MB / 346.7 MB Notification: Performance of SimCode: time 1.263e-06/0.863, allocations: 8 kB / 463.3 MB, free: 8.602 MB / 346.7 MB Notification: Performance of Templates: time 0.008728/0.8718, allocations: 2.398 MB / 465.6 MB, free: 6.207 MB / 346.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