Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Blocks.Examples.IntegerNetwork1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.0007928/0.0007928, allocations: 81.05 kB / 10.02 MB, free: 0.6719 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.00101/0.001803, allocations: 453.8 kB / 10.46 MB, free: 236 kB / 10.45 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.0006639/0.0006639, allocations: 165.1 kB / 11.36 MB, free: 2.812 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0008973/0.001561, allocations: 483.5 kB / 11.83 MB, free: 2.336 MB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 0.8532/0.8532, allocations: 158.6 MB / 171.2 MB, free: 2.504 MB / 170.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.1338/0.987, allocations: 49.5 MB / 220.7 MB, free: 1.359 MB / 218.7 MB " [Timeout remaining time 179] 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 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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_3.2.3_Modelica.Blocks.Examples.IntegerNetwork1") translateModel(Modelica.Blocks.Examples.IntegerNetwork1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5052,variableFilter="time|multiSwitch1.y|triggeredAdd.y",fileNamePrefix="Modelica_3.2.3_Modelica.Blocks.Examples.IntegerNetwork1") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.633e-06/1.633e-06, allocations: 0 / 222 MB, free: 72 kB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.009e-05/1.172e-05, allocations: 2.312 kB / 222 MB, free: 68 kB / 218.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.IntegerNetwork1): time 0.001845/0.001857, allocations: 1.889 MB / 223.9 MB, free: 14.16 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.0006657/0.002522, allocations: 0.6707 MB / 224.5 MB, free: 13.48 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.402e-05/0.002596, allocations: 7.938 kB / 224.5 MB, free: 13.47 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 6.824e-05/0.002665, allocations: 39.58 kB / 224.6 MB, free: 13.43 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 6.901e-05/0.002734, allocations: 31.73 kB / 224.6 MB, free: 13.4 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001694/0.002903, allocations: 91.64 kB / 224.7 MB, free: 13.31 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001597/0.003063, allocations: 171.4 kB / 224.9 MB, free: 13.14 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001037/0.003167, allocations: 47.66 kB / 224.9 MB, free: 13.09 MB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001293/0.003296, allocations: 124.5 kB / 225 MB, free: 12.97 MB / 234.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001203/0.003416, allocations: 67.78 kB / 225.1 MB, free: 12.91 MB / 234.7 MB Notification: Performance of NFPackage.collectConstants: time 2.25e-05/0.003439, allocations: 15.94 kB / 225.1 MB, free: 12.89 MB / 234.7 MB Notification: Performance of NFFlatten.collectFunctions: time 6.445e-05/0.003503, allocations: 24 kB / 225.1 MB, free: 12.87 MB / 234.7 MB Notification: Performance of NFScalarize.scalarize: time 4.068e-05/0.003544, allocations: 35.86 kB / 225.2 MB, free: 12.83 MB / 234.7 MB Notification: Performance of NFVerifyModel.verify: time 3.963e-05/0.003583, allocations: 43.88 kB / 225.2 MB, free: 12.79 MB / 234.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001632/0.003747, allocations: 143.4 kB / 225.4 MB, free: 12.65 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 8.536e-06/0.003755, allocations: 0 / 225.4 MB, free: 12.65 MB / 234.7 MB Notification: Performance of FrontEnd: time 5.51e-07/0.003756, allocations: 0 / 225.4 MB, free: 12.65 MB / 234.7 MB Notification: Performance of Transformations before backend: time 7.354e-06/0.003763, allocations: 4 kB / 225.4 MB, free: 12.64 MB / 234.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.000655/0.004418, allocations: 443.5 kB / 225.8 MB, free: 12.19 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.683e-05/0.004465, allocations: 8.031 kB / 225.8 MB, free: 12.18 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.993e-05/0.004555, allocations: 28.91 kB / 225.8 MB, free: 12.15 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003229/0.004878, allocations: 177.4 kB / 226 MB, free: 11.95 MB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.968e-05/0.004907, allocations: 12.38 kB / 226 MB, free: 11.94 MB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.866e-05/0.004946, allocations: 12.38 kB / 226 MB, free: 11.93 MB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000383/0.005329, allocations: 181.1 kB / 226.2 MB, free: 11.73 MB / 234.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.171e-05/0.005341, allocations: 0 / 226.2 MB, free: 11.73 MB / 234.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.044e-05/0.005361, allocations: 11.98 kB / 226.2 MB, free: 11.72 MB / 234.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.122e-05/0.005383, allocations: 4 kB / 226.2 MB, free: 11.71 MB / 234.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.02e-05/0.005453, allocations: 54.59 kB / 226.3 MB, free: 11.66 MB / 234.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005145/0.005967, allocations: 0.5643 MB / 226.8 MB, free: 11.07 MB / 234.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002231/0.00619, allocations: 159.9 kB / 227 MB, free: 10.9 MB / 234.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.011e-05/0.00622, allocations: 16.86 kB / 227 MB, free: 10.88 MB / 234.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.191e-05/0.006252, allocations: 15.92 kB / 227 MB, free: 10.86 MB / 234.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001263/0.006379, allocations: 107.8 kB / 227.1 MB, free: 10.74 MB / 234.7 MB Notification: Performance of pre-optimization done (n=15): time 1.113e-06/0.00638, allocations: 4 kB / 227.1 MB, free: 10.73 MB / 234.7 MB Notification: Performance of matching and sorting (n=15): time 0.0001753/0.006555, allocations: 115.2 kB / 227.3 MB, free: 10.61 MB / 234.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.078e-05/0.006596, allocations: 81.11 kB / 227.3 MB, free: 10.52 MB / 234.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001029/0.006699, allocations: 207.3 kB / 227.5 MB, free: 10.3 MB / 234.7 MB Notification: Performance of collectPreVariables (initialization): time 1.654e-05/0.006715, allocations: 33.7 kB / 227.6 MB, free: 10.26 MB / 234.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.593e-05/0.006771, allocations: 136.2 kB / 227.7 MB, free: 10.12 MB / 234.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.396e-05/0.006795, allocations: 35.72 kB / 227.7 MB, free: 10.09 MB / 234.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.148e-05/0.006847, allocations: 53.66 kB / 227.8 MB, free: 10.03 MB / 234.7 MB Notification: Performance of setup shared object (initialization): time 7.471e-05/0.006921, allocations: 334.8 kB / 228.1 MB, free: 9.695 MB / 234.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.467e-05/0.006956, allocations: 26.81 kB / 228.1 MB, free: 9.668 MB / 234.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.574e-05/0.007012, allocations: 84.5 kB / 228.2 MB, free: 9.555 MB / 234.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000116/0.007128, allocations: 152.8 kB / 228.4 MB, free: 9.371 MB / 234.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.966e-06/0.007131, allocations: 4 kB / 228.4 MB, free: 9.367 MB / 234.7 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0001373/0.007268, allocations: 143.1 kB / 228.5 MB, free: 9.219 MB / 234.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.259e-05/0.007281, allocations: 11.94 kB / 228.5 MB, free: 9.207 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.96e-06/0.007286, allocations: 0 / 228.5 MB, free: 9.207 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.311e-05/0.007299, allocations: 4 kB / 228.5 MB, free: 9.203 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001126/0.007411, allocations: 43.97 kB / 228.6 MB, free: 9.16 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.581e-06/0.007417, allocations: 7.938 kB / 228.6 MB, free: 9.152 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.204e-05/0.007479, allocations: 27.83 kB / 228.6 MB, free: 9.125 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.096e-05/0.00749, allocations: 16.19 kB / 228.6 MB, free: 9.109 MB / 234.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 7.877e-05/0.007569, allocations: 138.5 kB / 228.8 MB, free: 8.965 MB / 234.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.849e-05/0.007587, allocations: 15.98 kB / 228.8 MB, free: 8.949 MB / 234.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.766e-05/0.007685, allocations: 79.12 kB / 228.9 MB, free: 8.871 MB / 234.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.727e-06/0.007689, allocations: 4 kB / 228.9 MB, free: 8.867 MB / 234.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.483e-06/0.00769, allocations: 320 / 228.9 MB, free: 8.867 MB / 234.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.138e-06/0.007694, allocations: 3.984 kB / 228.9 MB, free: 8.863 MB / 234.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002578/0.007952, allocations: 326.9 kB / 229.2 MB, free: 8.52 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.376e-06/0.007955, allocations: 7.938 kB / 229.2 MB, free: 8.512 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.326e-05/0.008009, allocations: 27.97 kB / 229.2 MB, free: 8.484 MB / 234.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.524e-05/0.008024, allocations: 19.86 kB / 229.2 MB, free: 8.465 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.407e-06/0.008027, allocations: 3.984 kB / 229.2 MB, free: 8.461 MB / 234.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.08e-05/0.008038, allocations: 8 kB / 229.3 MB, free: 8.453 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.304e-06/0.00804, allocations: 0 / 229.3 MB, free: 8.453 MB / 234.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.41e-07/0.008041, allocations: 0 / 229.3 MB, free: 8.453 MB / 234.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001263/0.008168, allocations: 219.7 kB / 229.5 MB, free: 8.219 MB / 234.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.546e-05/0.008183, allocations: 0 / 229.5 MB, free: 8.219 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.621e-05/0.008239, allocations: 11.98 kB / 229.5 MB, free: 8.207 MB / 234.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.533e-05/0.008285, allocations: 19.97 kB / 229.5 MB, free: 8.188 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.201e-05/0.008297, allocations: 11.98 kB / 229.5 MB, free: 8.176 MB / 234.7 MB Notification: Performance of sorting global known variables: time 3.82e-05/0.008335, allocations: 53.78 kB / 229.6 MB, free: 8.121 MB / 234.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.008335, allocations: 0 / 229.6 MB, free: 8.121 MB / 234.7 MB Notification: Performance of remove unused functions: time 0.0001703/0.008505, allocations: 39.95 kB / 229.6 MB, free: 8.082 MB / 234.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.0001115/0.008617, allocations: 88.41 kB / 229.7 MB, free: 7.984 MB / 234.7 MB Notification: Performance of simCode: created initialization part: time 0.0001286/0.008745, allocations: 97.52 kB / 229.8 MB, free: 7.887 MB / 234.7 MB Notification: Performance of simCode: created event and clocks part: time 5.68e-06/0.008751, allocations: 4.125 kB / 229.8 MB, free: 7.883 MB / 234.7 MB Notification: Performance of simCode: created simulation system equations: time 5.958e-05/0.00881, allocations: 56.81 kB / 229.8 MB, free: 7.824 MB / 234.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002356/0.009046, allocations: 231.7 kB / 230.1 MB, free: 7.555 MB / 234.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008042/0.00985, allocations: 359.6 kB / 230.4 MB, free: 7.176 MB / 234.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.571e-05/0.009896, allocations: 72.28 kB / 230.5 MB, free: 7.086 MB / 234.7 MB Notification: Performance of simCode: alias equations: time 5.523e-05/0.009951, allocations: 21.48 kB / 230.5 MB, free: 7.066 MB / 234.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.301e-05/0.01004, allocations: 87.3 kB / 230.6 MB, free: 6.98 MB / 234.7 MB Notification: Performance of SimCode: time 9.61e-07/0.01005, allocations: 0 / 230.6 MB, free: 6.98 MB / 234.7 MB Notification: Performance of Templates: time 0.003694/0.01374, allocations: 2.256 MB / 232.9 MB, free: 4.738 MB / 234.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_3.2.3_Modelica.Blocks.Examples.IntegerNetwork1.makefile [Timeout 660] (rm -f Modelica_3.2.3_Modelica.Blocks.Examples.IntegerNetwork1.pipe ; mkfifo Modelica_3.2.3_Modelica.Blocks.Examples.IntegerNetwork1.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Blocks.Examples.IntegerNetwork1.pipe >> ../files/Modelica_3.2.3_Modelica.Blocks.Examples.IntegerNetwork1.sim & ./Modelica_3.2.3_Modelica.Blocks.Examples.IntegerNetwork1 -abortSlowSimulation -alarm=240 -emit_protected -ignoreHideResult -lv LOG_STATS > Modelica_3.2.3_Modelica.Blocks.Examples.IntegerNetwork1.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_3.2.3_Modelica.Blocks.Examples.IntegerNetwork1_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Blocks/Examples/IntegerNetwork1/IntegerNetwork1.csv","",relTol=0.003,relTolDiffMinMax=0.003,tube=OpenModelica.Scripting.TubeAlgorithm.rectangle) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.452984269708395]