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.0007332/0.0007332, allocations: 76.05 kB / 10 MB, free: 0.6836 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001001/0.001734, allocations: 457.8 kB / 10.45 MB, free: 244 kB / 10.45 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.0006839/0.0006839, allocations: 162 kB / 11.36 MB, free: 2.816 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0009158/0.0016, allocations: 475.6 kB / 11.82 MB, free: 2.348 MB / 13.93 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.01/1.01, allocations: 177.5 MB / 190 MB, free: 4.762 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.1238/1.134, allocations: 53.87 MB / 243.9 MB, free: 14.82 MB / 250.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.634e-06/1.634e-06, allocations: 0 / 245.2 MB, free: 13.54 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.23e-05/1.394e-05, allocations: 2.312 kB / 245.2 MB, free: 13.53 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.IntegerNetwork1): time 0.002214/0.002228, allocations: 1.92 MB / 247.1 MB, free: 11.6 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.0009695/0.003197, allocations: 0.693 MB / 247.8 MB, free: 10.9 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.844e-05/0.003286, allocations: 11.94 kB / 247.8 MB, free: 10.89 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 7.537e-05/0.003361, allocations: 31.61 kB / 247.9 MB, free: 10.86 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 7.22e-05/0.003433, allocations: 35.59 kB / 247.9 MB, free: 10.82 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001813/0.003615, allocations: 91.75 kB / 248 MB, free: 10.73 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001588/0.003773, allocations: 183.3 kB / 248.2 MB, free: 10.55 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001475/0.003921, allocations: 51.64 kB / 248.2 MB, free: 10.5 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001832/0.004104, allocations: 124.4 kB / 248.3 MB, free: 10.38 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001307/0.004235, allocations: 67.78 kB / 248.4 MB, free: 10.31 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 2.261e-05/0.004258, allocations: 20 kB / 248.4 MB, free: 10.29 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 7.944e-05/0.004337, allocations: 27.98 kB / 248.5 MB, free: 10.26 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 4.375e-05/0.004381, allocations: 35.81 kB / 248.5 MB, free: 10.23 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 4.319e-05/0.004424, allocations: 43.88 kB / 248.5 MB, free: 10.18 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001819/0.004606, allocations: 147.3 kB / 248.7 MB, free: 10.04 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 9.117e-06/0.004615, allocations: 4 kB / 248.7 MB, free: 10.04 MB / 250.7 MB Notification: Performance of FrontEnd: time 5.81e-07/0.004616, allocations: 0 / 248.7 MB, free: 10.04 MB / 250.7 MB Notification: Performance of Transformations before backend: time 9.348e-06/0.004625, allocations: 0 / 248.7 MB, free: 10.04 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.0005677/0.005193, allocations: 443.5 kB / 249.1 MB, free: 9.578 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.719e-05/0.00522, allocations: 16.62 kB / 249.1 MB, free: 9.562 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001287/0.005349, allocations: 110 kB / 249.2 MB, free: 9.438 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001631/0.005512, allocations: 178.8 kB / 249.4 MB, free: 9.234 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.81e-05/0.00553, allocations: 12.38 kB / 249.4 MB, free: 9.223 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.771e-05/0.005547, allocations: 16.38 kB / 249.4 MB, free: 9.207 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001818/0.005729, allocations: 177.1 kB / 249.6 MB, free: 9.012 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.111e-05/0.00574, allocations: 4 kB / 249.6 MB, free: 9.008 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.179e-05/0.005752, allocations: 4 kB / 249.6 MB, free: 9.004 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.665e-05/0.005769, allocations: 15.94 kB / 249.6 MB, free: 8.988 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.849e-05/0.005837, allocations: 47.69 kB / 249.7 MB, free: 8.941 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004604/0.006298, allocations: 0.568 MB / 250.3 MB, free: 8.344 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002097/0.006507, allocations: 155.9 kB / 250.4 MB, free: 8.18 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.929e-05/0.006537, allocations: 32.78 kB / 250.4 MB, free: 8.145 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.266e-05/0.006559, allocations: 4 kB / 250.4 MB, free: 8.141 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001164/0.006676, allocations: 119.2 kB / 250.6 MB, free: 8.008 MB / 250.7 MB Notification: Performance of pre-optimization done (n=15): time 1.022e-06/0.006677, allocations: 0 / 250.6 MB, free: 8.008 MB / 250.7 MB Notification: Performance of matching and sorting (n=15): time 0.0001731/0.00685, allocations: 111.2 kB / 250.7 MB, free: 7.891 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.8e-05/0.006888, allocations: 85.05 kB / 250.7 MB, free: 7.789 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.89e-05/0.006987, allocations: 215.3 kB / 251 MB, free: 7.566 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 1.436e-05/0.007001, allocations: 25.7 kB / 251 MB, free: 7.535 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.893e-05/0.00705, allocations: 128.3 kB / 251.1 MB, free: 7.402 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.45e-05/0.007075, allocations: 39.72 kB / 251.1 MB, free: 7.363 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.978e-05/0.007124, allocations: 65.61 kB / 251.2 MB, free: 7.293 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 7.303e-05/0.007197, allocations: 334.8 kB / 251.5 MB, free: 6.957 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.215e-05/0.00723, allocations: 26.81 kB / 251.6 MB, free: 6.93 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.501e-05/0.007285, allocations: 85.22 kB / 251.6 MB, free: 6.816 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001149/0.007399, allocations: 160.7 kB / 251.8 MB, free: 6.625 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.064e-06/0.007401, allocations: 0 / 251.8 MB, free: 6.625 MB / 250.7 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0001296/0.007531, allocations: 147 kB / 251.9 MB, free: 6.473 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.04e-05/0.007541, allocations: 4 kB / 252 MB, free: 6.469 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.99e-06/0.007546, allocations: 7.984 kB / 252 MB, free: 6.461 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.093e-05/0.007557, allocations: 4 kB / 252 MB, free: 6.457 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001055/0.007663, allocations: 52.16 kB / 252 MB, free: 6.406 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.129e-06/0.007668, allocations: 4 kB / 252 MB, free: 6.402 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.854e-05/0.007727, allocations: 19.89 kB / 252 MB, free: 6.383 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.081e-05/0.007737, allocations: 11.98 kB / 252 MB, free: 6.371 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.447e-05/0.007812, allocations: 138.5 kB / 252.2 MB, free: 6.227 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.722e-05/0.007829, allocations: 15.98 kB / 252.2 MB, free: 6.211 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.189e-05/0.007921, allocations: 87.06 kB / 252.3 MB, free: 6.125 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.404e-06/0.007923, allocations: 4 kB / 252.3 MB, free: 6.121 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.563e-06/0.007925, allocations: 320 / 252.3 MB, free: 6.121 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.926e-06/0.007928, allocations: 4 kB / 252.3 MB, free: 6.117 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002367/0.008165, allocations: 326.5 kB / 252.6 MB, free: 5.773 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.823e-06/0.008166, allocations: 4 kB / 252.6 MB, free: 5.77 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.081e-05/0.008217, allocations: 23.92 kB / 252.6 MB, free: 5.746 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.369e-05/0.008231, allocations: 19.89 kB / 252.7 MB, free: 5.727 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.523e-06/0.008232, allocations: 0 / 252.7 MB, free: 5.727 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.677e-06/0.008241, allocations: 4 kB / 252.7 MB, free: 5.723 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.92e-07/0.008242, allocations: 0 / 252.7 MB, free: 5.723 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.01e-07/0.008243, allocations: 0 / 252.7 MB, free: 5.723 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001188/0.008362, allocations: 205.9 kB / 252.9 MB, free: 5.5 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.516e-05/0.008377, allocations: 4 kB / 252.9 MB, free: 5.496 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.764e-05/0.008434, allocations: 15.98 kB / 252.9 MB, free: 5.48 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.356e-05/0.008478, allocations: 19.97 kB / 252.9 MB, free: 5.461 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.14e-05/0.008489, allocations: 11.92 kB / 252.9 MB, free: 5.449 MB / 250.7 MB Notification: Performance of sorting global known variables: time 3.611e-05/0.008525, allocations: 55.05 kB / 253 MB, free: 5.395 MB / 250.7 MB Notification: Performance of sort global known variables: time 5e-08/0.008526, allocations: 0 / 253 MB, free: 5.395 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0001616/0.008687, allocations: 43.89 kB / 253 MB, free: 5.352 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.353e-05/0.008781, allocations: 92.95 kB / 253.1 MB, free: 5.25 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.0001201/0.008901, allocations: 97.02 kB / 253.2 MB, free: 5.152 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 4.849e-06/0.008906, allocations: 0 / 253.2 MB, free: 5.152 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 5.712e-05/0.008963, allocations: 56.69 kB / 253.3 MB, free: 5.094 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002203/0.009183, allocations: 240 kB / 253.5 MB, free: 4.816 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007508/0.009934, allocations: 356.5 kB / 253.8 MB, free: 4.438 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.809e-05/0.009972, allocations: 76.28 kB / 253.9 MB, free: 4.344 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 4.795e-05/0.01002, allocations: 17.48 kB / 253.9 MB, free: 4.328 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.219e-05/0.0101, allocations: 75.36 kB / 254 MB, free: 4.254 MB / 250.7 MB Notification: Performance of SimCode: time 4.71e-07/0.0101, allocations: 0 / 254 MB, free: 4.254 MB / 250.7 MB Notification: Performance of Templates: time 0.003648/0.01375, allocations: 2.261 MB / 256.3 MB, free: 2.02 MB / 250.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 -emit_protected -ignoreHideResult -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,tube=OpenModelica.Scripting.TubeAlgorithm.rectangle) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.563703172840178]