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.0007784/0.0007784, allocations: 79.91 kB / 21.18 MB, free: 3.391 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.000898/0.000898, allocations: 145.1 kB / 24.54 MB, free: 32 kB / 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.9204/0.9204, allocations: 173.3 MB / 201.1 MB, free: 9.348 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 1.442e-06/1.442e-06, allocations: 3.938 kB / 268 MB, free: 6.453 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.919e-05/2.063e-05, allocations: 6.25 kB / 268 MB, free: 6.445 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.IntegerNetwork1): time 0.002206/0.002227, allocations: 1.844 MB / 269.8 MB, free: 4.59 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.0008877/0.003114, allocations: 0.6192 MB / 270.5 MB, free: 3.969 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.804e-05/0.003202, allocations: 7.938 kB / 270.5 MB, free: 3.961 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001246/0.003327, allocations: 31.66 kB / 270.5 MB, free: 3.93 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001197/0.003447, allocations: 39.66 kB / 270.5 MB, free: 3.891 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003074/0.003754, allocations: 87.66 kB / 270.6 MB, free: 3.805 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001996/0.003954, allocations: 175.4 kB / 270.8 MB, free: 3.633 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001453/0.004099, allocations: 50.98 kB / 270.8 MB, free: 3.574 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001311/0.00423, allocations: 99.78 kB / 270.9 MB, free: 3.477 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001401/0.00437, allocations: 67.78 kB / 271 MB, free: 3.41 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 2.818e-05/0.004398, allocations: 19.94 kB / 271 MB, free: 3.391 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 7.395e-05/0.004472, allocations: 23.97 kB / 271 MB, free: 3.367 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 6.959e-05/0.004542, allocations: 55.77 kB / 271.1 MB, free: 3.312 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 6.429e-05/0.004606, allocations: 51.84 kB / 271.1 MB, free: 3.262 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002357/0.004842, allocations: 159.4 kB / 271.3 MB, free: 3.105 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.465e-06/0.004844, allocations: 0 / 271.3 MB, free: 3.105 MB / 250.7 MB Notification: Performance of FrontEnd: time 9.31e-07/0.004845, allocations: 0 / 271.3 MB, free: 3.105 MB / 250.7 MB Notification: Performance of Transformations before backend: time 4.959e-06/0.00485, allocations: 0 / 271.3 MB, free: 3.105 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.000592/0.005442, allocations: 0.5191 MB / 271.8 MB, free: 2.551 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.444e-05/0.005477, allocations: 8.922 kB / 271.8 MB, free: 2.543 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.676e-05/0.005543, allocations: 40.8 kB / 271.9 MB, free: 2.504 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001962/0.00574, allocations: 196.2 kB / 272.1 MB, free: 2.285 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.263e-05/0.005762, allocations: 12.38 kB / 272.1 MB, free: 2.273 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.96e-05/0.005782, allocations: 20.38 kB / 272.1 MB, free: 2.254 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002539/0.006036, allocations: 197.2 kB / 272.3 MB, free: 2.031 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.107e-06/0.006045, allocations: 0 / 272.3 MB, free: 2.031 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.743e-05/0.006062, allocations: 11.98 kB / 272.3 MB, free: 2.02 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.232e-05/0.006085, allocations: 8 kB / 272.3 MB, free: 2.012 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001121/0.006197, allocations: 75.73 kB / 272.4 MB, free: 1.938 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006797/0.006876, allocations: 0.8474 MB / 273.2 MB, free: 1.039 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002763/0.007153, allocations: 123.2 kB / 273.3 MB, free: 0.9062 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.656e-05/0.007199, allocations: 27.67 kB / 273.4 MB, free: 0.875 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.767e-05/0.007227, allocations: 4 kB / 273.4 MB, free: 0.8711 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001399/0.007367, allocations: 136.2 kB / 273.5 MB, free: 0.7148 MB / 250.7 MB Notification: Performance of pre-optimization done (n=15): time 1.212e-06/0.007368, allocations: 4 kB / 273.5 MB, free: 0.7109 MB / 250.7 MB Notification: Performance of matching and sorting (n=15): time 0.0002781/0.007646, allocations: 157.4 kB / 273.7 MB, free: 0.5508 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.952e-05/0.007686, allocations: 81.11 kB / 273.7 MB, free: 464 kB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001464/0.007832, allocations: 270.6 kB / 274 MB, free: 176 kB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 1.818e-05/0.00785, allocations: 33.7 kB / 274 MB, free: 136 kB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.695e-05/0.007937, allocations: 191 kB / 274.2 MB, free: 15.94 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.754e-05/0.007965, allocations: 31.75 kB / 274.3 MB, free: 15.91 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.083e-05/0.008026, allocations: 63.34 kB / 274.3 MB, free: 15.84 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001187/0.008144, allocations: 0.5078 MB / 274.8 MB, free: 15.32 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.285e-05/0.008197, allocations: 27.98 kB / 274.9 MB, free: 15.29 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.934e-05/0.008287, allocations: 128.8 kB / 275 MB, free: 15.12 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001522/0.008439, allocations: 173 kB / 275.2 MB, free: 14.91 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.716e-06/0.008441, allocations: 0 / 275.2 MB, free: 14.91 MB / 266.7 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0002048/0.008646, allocations: 193.2 kB / 275.3 MB, free: 14.72 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.458e-05/0.008661, allocations: 8 kB / 275.4 MB, free: 14.71 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.272e-06/0.008667, allocations: 7.938 kB / 275.4 MB, free: 14.7 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.258e-05/0.00868, allocations: 0 / 275.4 MB, free: 14.7 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001064/0.008786, allocations: 39.92 kB / 275.4 MB, free: 14.66 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.573e-06/0.008793, allocations: 4 kB / 275.4 MB, free: 14.66 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.964e-05/0.008862, allocations: 24.12 kB / 275.4 MB, free: 14.64 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.789e-06/0.008872, allocations: 12 kB / 275.4 MB, free: 14.62 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,multiSwitch1.expr[2],multiSwitch1.expr[1],booleanPulse2.pulseStart,$PRE.booleanPulse2.pulseStart,multiSwitch1.firstActiveIndex,multiSwitch1.y,$PRE.multiSwitch1.y,multiSwitch1.u[2],multiSwitch1.u[1],booleanPulse1.pulseStart,$PRE.booleanPulse1.pulseStart,$whenCondition1,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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 9.265e-05/0.008965, allocations: 186.4 kB / 275.6 MB, free: 14.43 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.474e-05/0.00899, allocations: 27.86 kB / 275.6 MB, free: 14.4 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001416/0.009131, allocations: 107.4 kB / 275.8 MB, free: 14.29 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.885e-06/0.009134, allocations: 4 kB / 275.8 MB, free: 14.29 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.547e-06/0.009138, allocations: 0 / 275.8 MB, free: 14.29 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.765e-06/0.00914, allocations: 0 / 275.8 MB, free: 14.29 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003214/0.009462, allocations: 429.2 kB / 276.2 MB, free: 13.82 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.204e-06/0.009464, allocations: 8 kB / 276.2 MB, free: 13.82 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.11e-05/0.009515, allocations: 23.92 kB / 276.2 MB, free: 13.79 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.204e-06/0.009517, allocations: 0 / 276.2 MB, free: 13.79 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.139e-05/0.009529, allocations: 7.984 kB / 276.2 MB, free: 13.79 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.363e-06/0.00953, allocations: 0 / 276.2 MB, free: 13.79 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.182e-06/0.009531, allocations: 0 / 276.2 MB, free: 13.79 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000182/0.009713, allocations: 291.4 kB / 276.5 MB, free: 13.48 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.554e-05/0.009729, allocations: 19.83 kB / 276.5 MB, free: 13.46 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.846e-05/0.009747, allocations: 3.984 kB / 276.5 MB, free: 13.45 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.04e-05/0.009808, allocations: 12 kB / 276.5 MB, free: 13.44 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.333e-05/0.009871, allocations: 35.83 kB / 276.6 MB, free: 13.41 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.483e-05/0.009886, allocations: 12.06 kB / 276.6 MB, free: 13.39 MB / 266.7 MB Notification: Performance of sorting global known variables: time 7.078e-05/0.009957, allocations: 173.4 kB / 276.7 MB, free: 13.23 MB / 266.7 MB Notification: Performance of sort global known variables: time 5e-08/0.009957, allocations: 0 / 276.7 MB, free: 13.23 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0001946/0.01015, allocations: 43.95 kB / 276.8 MB, free: 13.18 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.0001536/0.0103, allocations: 107.2 kB / 276.9 MB, free: 13.07 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.000178/0.01048, allocations: 107.9 kB / 277 MB, free: 12.96 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.502e-06/0.01048, allocations: 4.125 kB / 277 MB, free: 12.96 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 8.562e-05/0.01057, allocations: 63.52 kB / 277.1 MB, free: 12.89 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002185/0.01079, allocations: 35.83 kB / 277.1 MB, free: 12.86 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006096/0.0114, allocations: 350.2 kB / 277.4 MB, free: 12.48 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.97e-05/0.01144, allocations: 71.98 kB / 277.5 MB, free: 12.39 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 5.891e-05/0.0115, allocations: 33.45 kB / 277.5 MB, free: 12.36 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.697e-05/0.01154, allocations: 24.5 kB / 277.6 MB, free: 12.34 MB / 266.7 MB Notification: Performance of SimCode: time 4.11e-07/0.01154, allocations: 0 / 277.6 MB, free: 12.34 MB / 266.7 MB Notification: Performance of Templates: time 0.003978/0.01552, allocations: 2.313 MB / 279.9 MB, free: 10.06 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.7202198058366776]