Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Blocks.Examples.IntegerNetwork1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: translateModel(Modelica.Blocks.Examples.IntegerNetwork1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|multiSwitch1.y|triggeredAdd.y",fileNamePrefix="Modelica_trunk_Modelica.Blocks.Examples.IntegerNetwork1") translateModel(Modelica.Blocks.Examples.IntegerNetwork1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|multiSwitch1.y|triggeredAdd.y",fileNamePrefix="Modelica_trunk_Modelica.Blocks.Examples.IntegerNetwork1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009968/0.0009968, allocations: 200.7 kB / 18.1 MB, free: 3.715 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.371/1.371, allocations: 226.5 MB / 245.4 MB, free: 6.484 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007869/0.0007869, allocations: 91.95 kB / 297.4 MB, free: 6.684 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002654/0.0002654, allocations: 7.984 kB / 358.1 MB, free: 10.07 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2172/0.2174, allocations: 51.28 MB / 409.4 MB, free: 27.61 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1007/0.3182, allocations: 78.85 MB / 488.2 MB, free: 12.66 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001924/0.3185, allocations: 63.97 kB / 488.3 MB, free: 12.6 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.008336/0.3268, allocations: 2.968 MB / 491.2 MB, free: 9.637 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.595e-06/0.3268, allocations: 0 / 491.2 MB, free: 9.637 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.481e-05/0.3269, allocations: 4 kB / 491.2 MB, free: 9.633 MB / 362.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.0006851/0.3276, allocations: 0.4928 MB / 491.7 MB, free: 9.082 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.539e-05/0.3276, allocations: 12.03 kB / 491.7 MB, free: 9.07 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001439/0.3278, allocations: 32.64 kB / 491.8 MB, free: 9.039 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002548/0.328, allocations: 239.9 kB / 492 MB, free: 8.766 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.613e-05/0.3281, allocations: 16.36 kB / 492 MB, free: 8.75 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.411e-05/0.3281, allocations: 16.38 kB / 492 MB, free: 8.734 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003533/0.3284, allocations: 214.7 kB / 492.3 MB, free: 8.504 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.093e-05/0.3285, allocations: 192 / 492.3 MB, free: 8.504 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.861e-05/0.3285, allocations: 7.938 kB / 492.3 MB, free: 8.496 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.201e-05/0.3285, allocations: 11.98 kB / 492.3 MB, free: 8.484 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000303/0.3288, allocations: 151.7 kB / 492.4 MB, free: 8.336 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001036/0.3299, allocations: 0.7934 MB / 493.2 MB, free: 7.48 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007414/0.3306, allocations: 218.5 kB / 493.4 MB, free: 7.258 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001946/0.3308, allocations: 60.83 kB / 493.5 MB, free: 7.195 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.433e-05/0.3309, allocations: 4 kB / 493.5 MB, free: 7.191 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002533/0.3311, allocations: 149 kB / 493.6 MB, free: 7.027 MB / 362.7 MB Notification: Performance of pre-optimization done (n=15): time 1.523e-06/0.3312, allocations: 0 / 493.6 MB, free: 7.027 MB / 362.7 MB Notification: Performance of matching and sorting (n=15): time 0.0005476/0.3317, allocations: 253.6 kB / 493.9 MB, free: 6.773 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.617e-05/0.3318, allocations: 85.11 kB / 494 MB, free: 6.672 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000189/0.332, allocations: 214.8 kB / 494.2 MB, free: 6.453 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.472e-05/0.332, allocations: 33.8 kB / 494.2 MB, free: 6.414 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.675e-05/0.3321, allocations: 140.3 kB / 494.3 MB, free: 6.273 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.127e-05/0.3321, allocations: 35.59 kB / 494.4 MB, free: 6.238 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.21e-05/0.3321, allocations: 4 kB / 494.4 MB, free: 6.234 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001089/0.3323, allocations: 338.6 kB / 494.7 MB, free: 5.895 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001469/0.3324, allocations: 67.95 kB / 494.8 MB, free: 5.828 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001847/0.3326, allocations: 144.5 kB / 494.9 MB, free: 5.656 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003286/0.3329, allocations: 218.4 kB / 495.1 MB, free: 5.414 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.003e-06/0.3329, allocations: 0 / 495.1 MB, free: 5.414 MB / 362.7 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0004408/0.3334, allocations: 253.1 kB / 495.4 MB, free: 5.16 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.617e-05/0.3334, allocations: 12.25 kB / 495.4 MB, free: 5.148 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.871e-06/0.3334, allocations: 0 / 495.4 MB, free: 5.148 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.435e-05/0.3335, allocations: 4 kB / 495.4 MB, free: 5.145 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000166/0.3336, allocations: 35.98 kB / 495.4 MB, free: 5.109 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.036e-05/0.3336, allocations: 7.922 kB / 495.4 MB, free: 5.102 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001605/0.3338, allocations: 39.77 kB / 495.5 MB, free: 5.062 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.476e-05/0.3338, allocations: 12 kB / 495.5 MB, free: 5.051 MB / 362.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.0001272/0.334, allocations: 152 kB / 495.6 MB, free: 4.895 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.399e-05/0.334, allocations: 23.8 kB / 495.7 MB, free: 4.871 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002503/0.3343, allocations: 131 kB / 495.8 MB, free: 4.738 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.006e-06/0.3343, allocations: 0 / 495.8 MB, free: 4.738 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.851e-06/0.3343, allocations: 4 kB / 495.8 MB, free: 4.734 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.168e-06/0.3343, allocations: 0 / 495.8 MB, free: 4.734 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005771/0.3349, allocations: 486.1 kB / 496.3 MB, free: 4.203 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.546e-06/0.3349, allocations: 4 kB / 496.3 MB, free: 4.199 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001139/0.335, allocations: 19.98 kB / 496.3 MB, free: 4.18 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.469e-06/0.335, allocations: 4 kB / 496.3 MB, free: 4.176 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.351e-05/0.3351, allocations: 0 / 496.3 MB, free: 4.176 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.224e-06/0.3351, allocations: 320 / 496.3 MB, free: 4.176 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.997e-06/0.3351, allocations: 7.938 kB / 496.3 MB, free: 4.168 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000393/0.3355, allocations: 304.1 kB / 496.6 MB, free: 3.852 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.332e-05/0.3355, allocations: 92.92 kB / 496.7 MB, free: 3.742 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.03e-05/0.3356, allocations: 4 kB / 496.7 MB, free: 3.738 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001686/0.3357, allocations: 27.97 kB / 496.7 MB, free: 3.711 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.983e-05/0.3358, allocations: 23.91 kB / 496.8 MB, free: 3.688 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.557e-05/0.3358, allocations: 4 kB / 496.8 MB, free: 3.684 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0001111/0.336, allocations: 148.4 kB / 496.9 MB, free: 3.539 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.336, allocations: 0 / 496.9 MB, free: 3.539 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.000317/0.3363, allocations: 55.83 kB / 497 MB, free: 3.484 MB / 362.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.0001729/0.3365, allocations: 111.7 kB / 497.1 MB, free: 3.367 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0003779/0.3369, allocations: 175.7 kB / 497.2 MB, free: 3.195 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.144e-06/0.3369, allocations: 0.5 kB / 497.2 MB, free: 3.195 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001914/0.3371, allocations: 83.89 kB / 497.3 MB, free: 3.113 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003475/0.3374, allocations: 25.19 kB / 497.3 MB, free: 3.09 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000676/0.3381, allocations: 411.5 kB / 497.7 MB, free: 2.66 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002686/0.3384, allocations: 0.7284 MB / 498.5 MB, free: 1.906 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0001092/0.3385, allocations: 37.52 kB / 498.5 MB, free: 1.871 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.473e-05/0.3386, allocations: 19.44 kB / 498.5 MB, free: 1.852 MB / 362.7 MB Notification: Performance of SimCode: time 1.393e-06/0.3386, allocations: 0 / 498.5 MB, free: 1.852 MB / 362.7 MB Notification: Performance of Templates: time 0.004856/0.3434, allocations: 1.814 MB / 0.4886 GB, free: 60 kB / 362.7 MB make -j1 -f Modelica_trunk_Modelica.Blocks.Examples.IntegerNetwork1.makefile (rm -f Modelica_trunk_Modelica.Blocks.Examples.IntegerNetwork1.pipe ; mkfifo Modelica_trunk_Modelica.Blocks.Examples.IntegerNetwork1.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Blocks.Examples.IntegerNetwork1.pipe >> ../files/Modelica_trunk_Modelica.Blocks.Examples.IntegerNetwork1.sim & ./Modelica_trunk_Modelica.Blocks.Examples.IntegerNetwork1 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Blocks.Examples.IntegerNetwork1.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Blocks.Examples.IntegerNetwork1_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Blocks/Examples/IntegerNetwork1/IntegerNetwork1.csv","../files/Modelica_trunk_Modelica.Blocks.Examples.IntegerNetwork1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches