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/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001023/0.001023, allocations: 84.86 kB / 21.5 MB, free: 2.988 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00106/0.00106, allocations: 165.8 kB / 24.91 MB, free: 8.766 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.018/1.018, allocations: 177 MB / 205.2 MB, free: 5.434 MB / 186.7 MB " [Timeout remaining time 179] 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(Modelica.Blocks.Examples.IntegerNetwork1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5052,variableFilter="time|multiSwitch1.y|triggeredAdd.y",fileNamePrefix="Modelica_trunk_Modelica.Blocks.Examples.IntegerNetwork1") translateModel(Modelica.Blocks.Examples.IntegerNetwork1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5052,variableFilter="time|multiSwitch1.y|triggeredAdd.y",fileNamePrefix="Modelica_trunk_Modelica.Blocks.Examples.IntegerNetwork1") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.533e-06/1.533e-06, allocations: 3.938 kB / 273.4 MB, free: 1.168 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.297e-05/2.451e-05, allocations: 2.312 kB / 273.4 MB, free: 1.164 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.IntegerNetwork1): time 0.003899/0.003924, allocations: 1.915 MB / 275.3 MB, free: 15.23 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001554/0.005478, allocations: 0.6852 MB / 276 MB, free: 14.54 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001228/0.005601, allocations: 11.94 kB / 276 MB, free: 14.53 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 9.311e-05/0.005694, allocations: 27.66 kB / 276.1 MB, free: 14.5 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000108/0.005802, allocations: 35.66 kB / 276.1 MB, free: 14.47 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002555/0.006057, allocations: 95.64 kB / 276.2 MB, free: 14.38 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002178/0.006275, allocations: 187.3 kB / 276.4 MB, free: 14.19 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001149/0.00639, allocations: 47.64 kB / 276.4 MB, free: 14.14 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002096/0.006599, allocations: 111.8 kB / 276.5 MB, free: 14.03 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000129/0.006728, allocations: 63.78 kB / 276.6 MB, free: 13.97 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 2.522e-05/0.006754, allocations: 19.94 kB / 276.6 MB, free: 13.95 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 9.007e-05/0.006844, allocations: 31.98 kB / 276.6 MB, free: 13.92 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 5.612e-05/0.0069, allocations: 47.83 kB / 276.7 MB, free: 13.87 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 6.549e-05/0.006965, allocations: 51.78 kB / 276.7 MB, free: 13.82 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002652/0.00723, allocations: 171.3 kB / 276.9 MB, free: 13.65 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.016e-06/0.007233, allocations: 0 / 276.9 MB, free: 13.65 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.162e-06/0.007235, allocations: 0 / 276.9 MB, free: 13.65 MB / 266.7 MB Notification: Performance of Transformations before backend: time 5.35e-06/0.00724, allocations: 0 / 276.9 MB, free: 13.65 MB / 266.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.0006241/0.007864, allocations: 403.9 kB / 277.3 MB, free: 13.23 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.259e-05/0.007907, allocations: 11.98 kB / 277.3 MB, free: 13.22 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000189/0.008096, allocations: 40.91 kB / 277.3 MB, free: 13.18 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000205/0.008301, allocations: 186.7 kB / 277.5 MB, free: 12.97 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.898e-05/0.00832, allocations: 12.38 kB / 277.5 MB, free: 12.96 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.038e-05/0.00834, allocations: 16.36 kB / 277.6 MB, free: 12.95 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000242/0.008582, allocations: 177.3 kB / 277.7 MB, free: 12.75 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.692e-06/0.008589, allocations: 192 / 277.7 MB, free: 12.75 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.586e-05/0.008605, allocations: 8.375 kB / 277.7 MB, free: 12.74 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.545e-05/0.00863, allocations: 11.94 kB / 277.8 MB, free: 12.73 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001092/0.008739, allocations: 55.33 kB / 277.8 MB, free: 12.68 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006933/0.009433, allocations: 0.5603 MB / 278.4 MB, free: 12.09 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003063/0.009739, allocations: 148 kB / 278.5 MB, free: 11.93 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.021e-05/0.009789, allocations: 28.84 kB / 278.5 MB, free: 11.9 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.847e-05/0.009818, allocations: 4 kB / 278.5 MB, free: 11.89 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001579/0.009976, allocations: 123.7 kB / 278.7 MB, free: 11.75 MB / 266.7 MB Notification: Performance of pre-optimization done (n=15): time 1.303e-06/0.009977, allocations: 4 kB / 278.7 MB, free: 11.75 MB / 266.7 MB Notification: Performance of matching and sorting (n=15): time 0.0002129/0.01019, allocations: 119.1 kB / 278.8 MB, free: 11.62 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.413e-05/0.01023, allocations: 81.11 kB / 278.9 MB, free: 11.53 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000151/0.01038, allocations: 211.3 kB / 279.1 MB, free: 11.31 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.126e-05/0.01041, allocations: 29.7 kB / 279.1 MB, free: 11.27 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.963e-05/0.01048, allocations: 132.3 kB / 279.2 MB, free: 11.14 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.457e-05/0.01051, allocations: 31.73 kB / 279.3 MB, free: 11.11 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.973e-05/0.01059, allocations: 69.61 kB / 279.3 MB, free: 11.04 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001124/0.0107, allocations: 334.8 kB / 279.7 MB, free: 10.7 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.796e-05/0.01075, allocations: 18.83 kB / 279.7 MB, free: 10.68 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.198e-05/0.01084, allocations: 96.42 kB / 279.8 MB, free: 10.55 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001614/0.011, allocations: 140.9 kB / 279.9 MB, free: 10.38 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.873e-06/0.01101, allocations: 0 / 279.9 MB, free: 10.38 MB / 266.7 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0002132/0.01122, allocations: 143 kB / 280 MB, free: 10.23 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.324e-05/0.01123, allocations: 8 kB / 280 MB, free: 10.23 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.692e-06/0.01124, allocations: 4 kB / 280.1 MB, free: 10.22 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.051e-05/0.01125, allocations: 0 / 280.1 MB, free: 10.22 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001488/0.0114, allocations: 48.16 kB / 280.1 MB, free: 10.18 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.057e-06/0.01141, allocations: 11.94 kB / 280.1 MB, free: 10.16 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001001/0.01151, allocations: 27.88 kB / 280.1 MB, free: 10.14 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.237e-05/0.01152, allocations: 4 kB / 280.1 MB, free: 10.13 MB / 266.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 (product.y,product.u[2],product.u[1],sum.u[1],triggeredAdd.y,$PRE.triggeredAdd.y,$whenCondition3,$whenCondition2,showValue.number,showValue1.number,showValue2.number,triggeredAdd.local_reset,triggeredAdd.local_set,multiSwitch1.expr[1],multiSwitch1.expr[2],booleanPulse2.pulseStart,$PRE.booleanPulse2.pulseStart,multiSwitch1.firstActiveIndex,multiSwitch1.y,$PRE.multiSwitch1.y,multiSwitch1.u[2],multiSwitch1.u[1],booleanPulse1.pulseStart,$PRE.booleanPulse1.pulseStart,$whenCondition1) * 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001162/0.01164, allocations: 142.5 kB / 280.3 MB, free: 9.984 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.812e-05/0.01166, allocations: 15.92 kB / 280.3 MB, free: 9.969 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001424/0.01181, allocations: 87.12 kB / 280.4 MB, free: 9.879 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.923e-06/0.01181, allocations: 4 kB / 280.4 MB, free: 9.875 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.466e-06/0.01182, allocations: 3.984 kB / 280.4 MB, free: 9.871 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.318e-06/0.01182, allocations: 4 kB / 280.4 MB, free: 9.867 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003571/0.01218, allocations: 326.5 kB / 280.7 MB, free: 9.523 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.224e-06/0.01218, allocations: 320 / 280.7 MB, free: 9.523 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.925e-05/0.01226, allocations: 27.92 kB / 280.7 MB, free: 9.496 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.504e-06/0.01226, allocations: 0 / 280.7 MB, free: 9.496 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.099e-05/0.01227, allocations: 4 kB / 280.7 MB, free: 9.492 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.136e-06/0.01228, allocations: 0 / 280.7 MB, free: 9.492 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.573e-06/0.01228, allocations: 0 / 280.7 MB, free: 9.492 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001834/0.01246, allocations: 209.8 kB / 281 MB, free: 9.266 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.513e-05/0.01249, allocations: 11.91 kB / 281 MB, free: 9.254 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.25e-05/0.01251, allocations: 4 kB / 281 MB, free: 9.25 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.534e-05/0.0126, allocations: 15.98 kB / 281 MB, free: 9.234 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.425e-05/0.01267, allocations: 27.95 kB / 281 MB, free: 9.207 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.3e-05/0.01268, allocations: 0 / 281 MB, free: 9.207 MB / 266.7 MB Notification: Performance of sorting global known variables: time 5.77e-05/0.01274, allocations: 55.03 kB / 281.1 MB, free: 9.152 MB / 266.7 MB Notification: Performance of sort global known variables: time 8e-08/0.01274, allocations: 0 / 281.1 MB, free: 9.152 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002749/0.01301, allocations: 47.89 kB / 281.1 MB, free: 9.105 MB / 266.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 (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.0001306/0.01314, allocations: 92.39 kB / 281.2 MB, free: 9.004 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.000177/0.01332, allocations: 92.62 kB / 281.3 MB, free: 8.91 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 4.959e-06/0.01333, allocations: 4 kB / 281.3 MB, free: 8.906 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 7.913e-05/0.01341, allocations: 44.77 kB / 281.3 MB, free: 8.859 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002735/0.01368, allocations: 38.28 kB / 281.4 MB, free: 8.828 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007761/0.01446, allocations: 348.3 kB / 281.7 MB, free: 8.461 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.942e-05/0.01451, allocations: 80.27 kB / 281.8 MB, free: 8.363 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 7.343e-05/0.01459, allocations: 17.48 kB / 281.8 MB, free: 8.344 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000123/0.01471, allocations: 79.36 kB / 281.9 MB, free: 8.266 MB / 266.7 MB Notification: Performance of SimCode: time 8.92e-07/0.01471, allocations: 3.938 kB / 281.9 MB, free: 8.262 MB / 266.7 MB Notification: Performance of Templates: time 0.005948/0.02066, allocations: 2.208 MB / 284.1 MB, free: 6.078 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Blocks.Examples.IntegerNetwork1.makefile [Timeout 660] (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=240 -s gbode -gbm=radauIIA3 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Blocks.Examples.IntegerNetwork1.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_trunk_Modelica.Blocks.Examples.IntegerNetwork1_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Blocks/Examples/IntegerNetwork1/IntegerNetwork1.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.651826821267605]