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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009734/0.0009734, allocations: 82.28 kB / 22.21 MB, free: 2.293 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001392/0.001392, allocations: 142.6 kB / 25.59 MB, free: 8.906 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 0.9635/0.9635, allocations: 173.4 MB / 202.2 MB, free: 8.266 MB / 186.7 MB " [Timeout remaining time 179] 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) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Blocks.Examples.IntegerNetwork1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5052,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=5052,variableFilter="time|multiSwitch1.y|triggeredAdd.y",fileNamePrefix="Modelica_4.0.0_Modelica.Blocks.Examples.IntegerNetwork1") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 8.12e-07/8.12e-07, allocations: 0 / 269.2 MB, free: 9.762 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 8.155e-06/8.967e-06, allocations: 2.312 kB / 269.2 MB, free: 9.758 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.IntegerNetwork1): time 0.002007/0.002016, allocations: 1.843 MB / 271 MB, free: 7.918 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.0007767/0.002793, allocations: 0.6144 MB / 271.6 MB, free: 7.305 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.451e-05/0.002868, allocations: 7.938 kB / 271.7 MB, free: 7.297 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 8.791e-05/0.002955, allocations: 23.67 kB / 271.7 MB, free: 7.273 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 8.77e-05/0.003043, allocations: 36.84 kB / 271.7 MB, free: 7.238 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002033/0.003246, allocations: 87.72 kB / 271.8 MB, free: 7.152 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001592/0.003406, allocations: 175.9 kB / 272 MB, free: 6.98 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001171/0.003523, allocations: 47.58 kB / 272 MB, free: 6.926 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001186/0.003641, allocations: 117.4 kB / 272.1 MB, free: 6.812 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001044/0.003746, allocations: 63.78 kB / 272.2 MB, free: 6.75 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 1.975e-05/0.003765, allocations: 12 kB / 272.2 MB, free: 6.738 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.753e-05/0.003813, allocations: 27.98 kB / 272.2 MB, free: 6.711 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 4.373e-05/0.003857, allocations: 47.83 kB / 272.3 MB, free: 6.664 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 4.307e-05/0.0039, allocations: 52.45 kB / 272.3 MB, free: 6.613 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001611/0.004061, allocations: 159.3 kB / 272.5 MB, free: 6.457 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.413e-06/0.004062, allocations: 1.25 kB / 272.5 MB, free: 6.457 MB / 250.7 MB Notification: Performance of FrontEnd: time 5.31e-07/0.004063, allocations: 0 / 272.5 MB, free: 6.457 MB / 250.7 MB Notification: Performance of Transformations before backend: time 3.086e-06/0.004066, allocations: 4 kB / 272.5 MB, free: 6.453 MB / 250.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.0004847/0.004551, allocations: 0.5162 MB / 273 MB, free: 5.902 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.75e-05/0.004578, allocations: 14.12 kB / 273 MB, free: 5.891 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.7e-05/0.004625, allocations: 32.8 kB / 273.1 MB, free: 5.859 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000155/0.00478, allocations: 188.2 kB / 273.2 MB, free: 5.648 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.877e-05/0.004799, allocations: 12.38 kB / 273.3 MB, free: 5.637 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.724e-05/0.004816, allocations: 22.16 kB / 273.3 MB, free: 5.617 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001873/0.005003, allocations: 185.4 kB / 273.5 MB, free: 5.406 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.436e-06/0.005012, allocations: 0 / 273.5 MB, free: 5.406 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.035e-05/0.005022, allocations: 4 kB / 273.5 MB, free: 5.402 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.55e-05/0.005038, allocations: 12.56 kB / 273.5 MB, free: 5.391 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.052e-05/0.005108, allocations: 49.34 kB / 273.5 MB, free: 5.344 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005548/0.005663, allocations: 0.8249 MB / 274.3 MB, free: 4.477 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002106/0.005874, allocations: 107.2 kB / 274.4 MB, free: 4.359 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.299e-05/0.005907, allocations: 27.67 kB / 274.5 MB, free: 4.328 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.899e-05/0.005926, allocations: 4 kB / 274.5 MB, free: 4.324 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001236/0.006049, allocations: 124.2 kB / 274.6 MB, free: 4.18 MB / 250.7 MB Notification: Performance of pre-optimization done (n=15): time 1.062e-06/0.00605, allocations: 0 / 274.6 MB, free: 4.18 MB / 250.7 MB Notification: Performance of matching and sorting (n=15): time 0.0001978/0.006248, allocations: 137.5 kB / 274.7 MB, free: 4.039 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.647e-05/0.006285, allocations: 85.05 kB / 274.8 MB, free: 3.938 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001278/0.006412, allocations: 270.5 kB / 275.1 MB, free: 3.656 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 1.649e-05/0.006429, allocations: 33.7 kB / 275.1 MB, free: 3.617 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.319e-05/0.006502, allocations: 195 kB / 275.3 MB, free: 3.422 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.386e-05/0.006526, allocations: 31.73 kB / 275.3 MB, free: 3.391 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.023e-05/0.006586, allocations: 67.31 kB / 275.4 MB, free: 3.316 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0001137/0.0067, allocations: 0.5078 MB / 275.9 MB, free: 2.797 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.306e-05/0.006733, allocations: 19.98 kB / 275.9 MB, free: 2.777 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.151e-05/0.006814, allocations: 123.7 kB / 276 MB, free: 2.617 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001226/0.006937, allocations: 148.7 kB / 276.2 MB, free: 2.43 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.206e-06/0.00694, allocations: 4 kB / 276.2 MB, free: 2.426 MB / 250.7 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.000239/0.007179, allocations: 185.1 kB / 276.4 MB, free: 2.238 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.089e-05/0.00719, allocations: 4 kB / 276.4 MB, free: 2.234 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.522e-06/0.007197, allocations: 4.312 kB / 276.4 MB, free: 2.23 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.22e-05/0.007209, allocations: 4 kB / 276.4 MB, free: 2.227 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001256/0.007334, allocations: 39.92 kB / 276.4 MB, free: 2.188 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.958e-06/0.007344, allocations: 4 kB / 276.4 MB, free: 2.184 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.301e-05/0.007437, allocations: 23.88 kB / 276.5 MB, free: 2.16 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.336e-05/0.007451, allocations: 12 kB / 276.5 MB, free: 2.148 MB / 250.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.0001065/0.007557, allocations: 186.7 kB / 276.7 MB, free: 1.957 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.223e-05/0.007589, allocations: 27.86 kB / 276.7 MB, free: 1.93 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001539/0.007743, allocations: 103.4 kB / 276.8 MB, free: 1.82 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.015e-06/0.007746, allocations: 0 / 276.8 MB, free: 1.82 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.687e-06/0.00775, allocations: 4 kB / 276.8 MB, free: 1.816 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.967e-06/0.007754, allocations: 0 / 276.8 MB, free: 1.816 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003672/0.008121, allocations: 389.8 kB / 277.2 MB, free: 1.402 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.336e-06/0.008125, allocations: 3.984 kB / 277.2 MB, free: 1.398 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.058e-05/0.008185, allocations: 19.94 kB / 277.2 MB, free: 1.379 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.545e-06/0.008188, allocations: 4 kB / 277.2 MB, free: 1.375 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.02e-05/0.008198, allocations: 3.984 kB / 277.2 MB, free: 1.371 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.945e-06/0.008201, allocations: 4 kB / 277.2 MB, free: 1.367 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.523e-06/0.008202, allocations: 0 / 277.2 MB, free: 1.367 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006222/0.01442, allocations: 279.4 kB / 277.5 MB, free: 1.07 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.917e-05/0.01444, allocations: 19.84 kB / 277.5 MB, free: 1.051 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.266e-05/0.01447, allocations: 7.984 kB / 277.5 MB, free: 1.043 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.849e-05/0.01455, allocations: 7.938 kB / 277.5 MB, free: 1.035 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.153e-05/0.01461, allocations: 31.89 kB / 277.5 MB, free: 1.004 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.285e-05/0.01462, allocations: 4 kB / 277.5 MB, free: 1 MB / 250.7 MB Notification: Performance of sorting global known variables: time 7.792e-05/0.0147, allocations: 177.3 kB / 277.7 MB, free: 0.8281 MB / 250.7 MB Notification: Performance of sort global known variables: time 6e-08/0.0147, allocations: 0 / 277.7 MB, free: 0.8281 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0002769/0.01497, allocations: 43.89 kB / 277.8 MB, free: 0.7852 MB / 250.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 9.927e-05/0.01507, allocations: 107.2 kB / 277.9 MB, free: 0.6719 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.0001624/0.01524, allocations: 95.5 kB / 278 MB, free: 0.5742 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 1.874e-06/0.01524, allocations: 4.5 kB / 278 MB, free: 0.5703 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 7.409e-05/0.01531, allocations: 55.58 kB / 278 MB, free: 0.5117 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002751/0.01559, allocations: 36.08 kB / 278.1 MB, free: 488 kB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005484/0.01613, allocations: 354.2 kB / 278.4 MB, free: 104 kB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.524e-05/0.01618, allocations: 71.98 kB / 278.5 MB, free: 12 kB / 250.7 MB Notification: Performance of simCode: alias equations: time 8.018e-05/0.01626, allocations: 21.48 kB / 278.5 MB, free: 15.99 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001071/0.01637, allocations: 102.2 kB / 278.6 MB, free: 15.89 MB / 266.7 MB Notification: Performance of SimCode: time 6.71e-07/0.01637, allocations: 0 / 278.6 MB, free: 15.89 MB / 266.7 MB Notification: Performance of Templates: time 0.01649/0.03285, allocations: 2.408 MB / 281 MB, free: 13.52 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Blocks.Examples.IntegerNetwork1.makefile [Timeout 660] (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=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Blocks.Examples.IntegerNetwork1.pipe 2>&1) [Timeout 240] 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","",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.81560216890648]