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.0007624/0.0007624, allocations: 77.36 kB / 10 MB, free: 0.6797 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.00132/0.002083, allocations: 445.8 kB / 10.44 MB, free: 252 kB / 10.45 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.0009133/0.0009133, allocations: 148.9 kB / 11.34 MB, free: 2.832 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001351/0.002265, allocations: 475.6 kB / 11.8 MB, free: 2.363 MB / 13.93 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.9156/0.9156, allocations: 173.4 MB / 185.9 MB, free: 8.922 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.08057/0.9962, allocations: 52.5 MB / 238.4 MB, free: 4.363 MB / 234.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.423e-06/1.423e-06, allocations: 0 / 239.7 MB, free: 3.082 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.89e-05/2.032e-05, allocations: 5.688 kB / 239.7 MB, free: 3.078 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.IntegerNetwork1): time 0.002228/0.002248, allocations: 1.887 MB / 241.6 MB, free: 1.18 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.0008117/0.00306, allocations: 0.6501 MB / 242.3 MB, free: 0.5273 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.462e-05/0.003145, allocations: 0 / 242.3 MB, free: 0.5273 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 8.238e-05/0.003227, allocations: 31.66 kB / 242.3 MB, free: 0.4961 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 8.121e-05/0.003308, allocations: 35.66 kB / 242.3 MB, free: 472 kB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002145/0.003523, allocations: 83.72 kB / 242.4 MB, free: 388 kB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001916/0.003714, allocations: 171.4 kB / 242.6 MB, free: 216 kB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001088/0.003823, allocations: 51.58 kB / 242.6 MB, free: 156 kB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001526/0.003976, allocations: 132.4 kB / 242.8 MB, free: 24 kB / 234.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001416/0.004117, allocations: 75.77 kB / 242.8 MB, free: 15.95 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 2.269e-05/0.00414, allocations: 12 kB / 242.8 MB, free: 15.94 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 7.524e-05/0.004215, allocations: 20 kB / 242.9 MB, free: 15.92 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 4.633e-05/0.004262, allocations: 39.86 kB / 242.9 MB, free: 15.88 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 4.325e-05/0.004305, allocations: 39.88 kB / 242.9 MB, free: 15.84 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001861/0.004491, allocations: 143.4 kB / 243.1 MB, free: 15.7 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.085e-05/0.004502, allocations: 0 / 243.1 MB, free: 15.7 MB / 250.7 MB Notification: Performance of FrontEnd: time 9.41e-07/0.004503, allocations: 0 / 243.1 MB, free: 15.7 MB / 250.7 MB Notification: Performance of Transformations before backend: time 8.366e-06/0.004511, allocations: 0 / 243.1 MB, free: 15.7 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.0005208/0.005032, allocations: 439.6 kB / 243.5 MB, free: 15.25 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.548e-05/0.005057, allocations: 8.031 kB / 243.5 MB, free: 15.24 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.308e-05/0.0051, allocations: 28.91 kB / 243.6 MB, free: 15.21 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001664/0.005267, allocations: 177.4 kB / 243.7 MB, free: 15.01 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.809e-05/0.005285, allocations: 12.12 kB / 243.7 MB, free: 15 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.841e-05/0.005303, allocations: 20 kB / 243.8 MB, free: 14.98 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002011/0.005504, allocations: 180.7 kB / 243.9 MB, free: 14.78 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.174e-06/0.005512, allocations: 4 kB / 243.9 MB, free: 14.77 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.185e-05/0.005523, allocations: 8 kB / 243.9 MB, free: 14.77 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.721e-05/0.005541, allocations: 8 kB / 244 MB, free: 14.76 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.556e-05/0.005616, allocations: 58.53 kB / 244 MB, free: 14.7 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000486/0.006102, allocations: 0.568 MB / 244.6 MB, free: 14.1 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002143/0.006317, allocations: 152.1 kB / 244.7 MB, free: 13.94 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.97e-05/0.006346, allocations: 20.84 kB / 244.7 MB, free: 13.92 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.47e-05/0.006371, allocations: 4 kB / 244.7 MB, free: 13.91 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001162/0.006487, allocations: 107.8 kB / 244.9 MB, free: 13.79 MB / 250.7 MB Notification: Performance of pre-optimization done (n=15): time 1.563e-06/0.006489, allocations: 4 kB / 244.9 MB, free: 13.79 MB / 250.7 MB Notification: Performance of matching and sorting (n=15): time 0.0001675/0.006656, allocations: 111.5 kB / 245 MB, free: 13.67 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.839e-05/0.006695, allocations: 85.11 kB / 245.1 MB, free: 13.57 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003506/0.007045, allocations: 207.3 kB / 245.3 MB, free: 13.35 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 1.873e-05/0.007064, allocations: 33.7 kB / 245.3 MB, free: 13.31 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.04e-05/0.007114, allocations: 136.2 kB / 245.4 MB, free: 13.18 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.449e-05/0.007139, allocations: 35.7 kB / 245.5 MB, free: 13.14 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.122e-05/0.00719, allocations: 57.66 kB / 245.5 MB, free: 13.08 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 7.021e-05/0.00726, allocations: 338.7 kB / 245.8 MB, free: 12.74 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.303e-05/0.007293, allocations: 22.81 kB / 245.9 MB, free: 12.71 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.635e-05/0.00735, allocations: 88.75 kB / 246 MB, free: 12.6 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001126/0.007462, allocations: 148.9 kB / 246.1 MB, free: 12.42 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.536e-06/0.007466, allocations: 4 kB / 246.1 MB, free: 12.41 MB / 250.7 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.000146/0.007612, allocations: 147 kB / 246.2 MB, free: 12.26 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.917e-05/0.007631, allocations: 8 kB / 246.3 MB, free: 12.25 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.138e-06/0.007635, allocations: 256 / 246.3 MB, free: 12.25 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.988e-06/0.007645, allocations: 8 kB / 246.3 MB, free: 12.25 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001081/0.007753, allocations: 47.91 kB / 246.3 MB, free: 12.2 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.198e-06/0.007757, allocations: 4 kB / 246.3 MB, free: 12.2 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.317e-05/0.007821, allocations: 23.88 kB / 246.3 MB, free: 12.17 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.225e-05/0.007833, allocations: 11.94 kB / 246.3 MB, free: 12.16 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 7.894e-05/0.007912, allocations: 130.6 kB / 246.5 MB, free: 12.02 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.105e-05/0.007933, allocations: 19.98 kB / 246.5 MB, free: 12 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001023/0.008035, allocations: 87.09 kB / 246.6 MB, free: 11.91 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.487e-06/0.008039, allocations: 8 kB / 246.6 MB, free: 11.91 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.553e-06/0.00804, allocations: 0 / 246.6 MB, free: 11.91 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.978e-06/0.008044, allocations: 3.984 kB / 246.6 MB, free: 11.9 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002584/0.008302, allocations: 330.5 kB / 246.9 MB, free: 11.55 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.903e-06/0.008304, allocations: 0 / 246.9 MB, free: 11.55 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.416e-05/0.008359, allocations: 19.98 kB / 246.9 MB, free: 11.54 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.415e-05/0.008373, allocations: 19.83 kB / 247 MB, free: 11.52 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.064e-06/0.008375, allocations: 0 / 247 MB, free: 11.52 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.276e-06/0.008383, allocations: 4 kB / 247 MB, free: 11.51 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.044e-06/0.008385, allocations: 0 / 247 MB, free: 11.51 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.694e-06/0.008387, allocations: 7.938 kB / 247 MB, free: 11.5 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001328/0.00852, allocations: 210 kB / 247.2 MB, free: 11.28 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.733e-05/0.008537, allocations: 4 kB / 247.2 MB, free: 11.27 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.984e-05/0.008597, allocations: 11.98 kB / 247.2 MB, free: 11.26 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.59e-05/0.008643, allocations: 27.89 kB / 247.2 MB, free: 11.23 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.184e-05/0.008655, allocations: 4 kB / 247.2 MB, free: 11.23 MB / 250.7 MB Notification: Performance of sorting global known variables: time 3.884e-05/0.008693, allocations: 51.11 kB / 247.3 MB, free: 11.18 MB / 250.7 MB Notification: Performance of sort global known variables: time 4e-08/0.008693, allocations: 0 / 247.3 MB, free: 11.18 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0001715/0.008865, allocations: 43.89 kB / 247.3 MB, free: 11.14 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 0.0001034/0.008968, allocations: 100.3 kB / 247.4 MB, free: 11.03 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.0001308/0.009099, allocations: 92.67 kB / 247.5 MB, free: 10.94 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 5.651e-06/0.009105, allocations: 0 / 247.5 MB, free: 10.94 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 5.772e-05/0.009163, allocations: 48.02 kB / 247.5 MB, free: 10.89 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002383/0.009401, allocations: 240.5 kB / 247.8 MB, free: 10.61 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007899/0.01019, allocations: 368.4 kB / 248.1 MB, free: 10.22 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.042e-05/0.01023, allocations: 71.98 kB / 248.2 MB, free: 10.13 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 5.623e-05/0.01029, allocations: 17.48 kB / 248.2 MB, free: 10.11 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.223e-05/0.01038, allocations: 83.36 kB / 248.3 MB, free: 10.03 MB / 250.7 MB Notification: Performance of SimCode: time 6.51e-07/0.01038, allocations: 4 kB / 248.3 MB, free: 10.02 MB / 250.7 MB Notification: Performance of Templates: time 0.003912/0.01429, allocations: 2.257 MB / 250.6 MB, free: 7.805 MB / 250.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 -ignoreHideResult -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,tube=OpenModelica.Scripting.TubeAlgorithm.rectangle) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.4259626856073737]