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.0008095/0.0008095, allocations: 68.19 kB / 9.934 MB, free: 0.7539 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001087/0.001897, allocations: 445.7 kB / 10.37 MB, free: 328 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.0007192/0.0007192, allocations: 157.2 kB / 11.26 MB, free: 2.91 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0009274/0.001647, allocations: 467.6 kB / 11.72 MB, free: 2.449 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.9495/0.9495, allocations: 158.6 MB / 171.1 MB, free: 2.57 MB / 170.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.189/1.139, allocations: 49.48 MB / 220.5 MB, free: 1.449 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.172e-06/1.172e-06, allocations: 0 / 221.8 MB, free: 188 kB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.973e-05/2.09e-05, allocations: 2.312 kB / 221.8 MB, free: 184 kB / 218.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.IntegerNetwork1): time 0.003204/0.003225, allocations: 1.9 MB / 223.7 MB, free: 14.26 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.001119/0.004344, allocations: 0.6707 MB / 224.4 MB, free: 13.58 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001054/0.004449, allocations: 7.938 kB / 224.4 MB, free: 13.57 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001004/0.00455, allocations: 35.59 kB / 224.4 MB, free: 13.54 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 9.977e-05/0.004649, allocations: 27.75 kB / 224.5 MB, free: 13.51 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002536/0.004903, allocations: 95.62 kB / 224.6 MB, free: 13.42 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002169/0.00512, allocations: 167.4 kB / 224.7 MB, free: 13.25 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001384/0.005258, allocations: 47.66 kB / 224.8 MB, free: 13.21 MB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000198/0.005456, allocations: 128.4 kB / 224.9 MB, free: 13.08 MB / 234.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001452/0.005601, allocations: 63.78 kB / 225 MB, free: 13.02 MB / 234.7 MB Notification: Performance of NFPackage.collectConstants: time 3.265e-05/0.005634, allocations: 19.94 kB / 225 MB, free: 13 MB / 234.7 MB Notification: Performance of NFFlatten.collectFunctions: time 8.693e-05/0.005721, allocations: 20 kB / 225 MB, free: 12.98 MB / 234.7 MB Notification: Performance of NFScalarize.scalarize: time 5.447e-05/0.005776, allocations: 35.86 kB / 225 MB, free: 12.95 MB / 234.7 MB Notification: Performance of NFVerifyModel.verify: time 5.877e-05/0.005834, allocations: 43.88 kB / 225.1 MB, free: 12.9 MB / 234.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002395/0.006074, allocations: 147.4 kB / 225.2 MB, free: 12.76 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.172e-05/0.006085, allocations: 0 / 225.2 MB, free: 12.76 MB / 234.7 MB Notification: Performance of FrontEnd: time 9.22e-07/0.006086, allocations: 0 / 225.2 MB, free: 12.76 MB / 234.7 MB Notification: Performance of Transformations before backend: time 1.137e-05/0.006098, allocations: 0 / 225.2 MB, free: 12.76 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.0006276/0.006725, allocations: 439.5 kB / 225.6 MB, free: 12.3 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.738e-05/0.006753, allocations: 8.031 kB / 225.7 MB, free: 12.3 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.915e-05/0.006792, allocations: 28.91 kB / 225.7 MB, free: 12.27 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001582/0.00695, allocations: 181.4 kB / 225.9 MB, free: 12.07 MB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.251e-05/0.006973, allocations: 12.38 kB / 225.9 MB, free: 12.05 MB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.338e-05/0.006996, allocations: 16.38 kB / 225.9 MB, free: 12.04 MB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002603/0.007256, allocations: 177.1 kB / 226.1 MB, free: 11.84 MB / 234.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.937e-06/0.007265, allocations: 3.984 kB / 226.1 MB, free: 11.84 MB / 234.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.595e-05/0.007281, allocations: 8 kB / 226.1 MB, free: 11.83 MB / 234.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.034e-05/0.007302, allocations: 7.984 kB / 226.1 MB, free: 11.82 MB / 234.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001016/0.007403, allocations: 54.61 kB / 226.1 MB, free: 11.77 MB / 234.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006402/0.008043, allocations: 0.5682 MB / 226.7 MB, free: 11.17 MB / 234.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002843/0.008328, allocations: 155.9 kB / 226.8 MB, free: 11.01 MB / 234.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.174e-05/0.008369, allocations: 20.86 kB / 226.9 MB, free: 10.98 MB / 234.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.262e-05/0.008402, allocations: 4 kB / 226.9 MB, free: 10.98 MB / 234.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001581/0.00856, allocations: 115.8 kB / 227 MB, free: 10.85 MB / 234.7 MB Notification: Performance of pre-optimization done (n=15): time 1.242e-06/0.008561, allocations: 0 / 227 MB, free: 10.85 MB / 234.7 MB Notification: Performance of matching and sorting (n=15): time 0.0002141/0.008775, allocations: 119.2 kB / 227.1 MB, free: 10.72 MB / 234.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.668e-05/0.008822, allocations: 81.11 kB / 227.2 MB, free: 10.62 MB / 234.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001403/0.008962, allocations: 207.4 kB / 227.4 MB, free: 10.41 MB / 234.7 MB Notification: Performance of collectPreVariables (initialization): time 1.831e-05/0.008981, allocations: 25.7 kB / 227.4 MB, free: 10.38 MB / 234.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.918e-05/0.00905, allocations: 140.2 kB / 227.5 MB, free: 10.24 MB / 234.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.261e-05/0.009083, allocations: 35.72 kB / 227.6 MB, free: 10.2 MB / 234.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.525e-05/0.009158, allocations: 61.66 kB / 227.6 MB, free: 10.14 MB / 234.7 MB Notification: Performance of setup shared object (initialization): time 9.861e-05/0.009256, allocations: 330.8 kB / 228 MB, free: 9.805 MB / 234.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.107e-05/0.009307, allocations: 22.81 kB / 228 MB, free: 9.781 MB / 234.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.469e-05/0.009392, allocations: 92.44 kB / 228.1 MB, free: 9.66 MB / 234.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001675/0.00956, allocations: 156.7 kB / 228.2 MB, free: 9.473 MB / 234.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.065e-06/0.009563, allocations: 0 / 228.2 MB, free: 9.473 MB / 234.7 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0002039/0.009767, allocations: 139.1 kB / 228.4 MB, free: 9.328 MB / 234.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.407e-05/0.009781, allocations: 8 kB / 228.4 MB, free: 9.32 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.973e-06/0.009788, allocations: 4 kB / 228.4 MB, free: 9.316 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.687e-06/0.009796, allocations: 0 / 228.4 MB, free: 9.316 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001629/0.009959, allocations: 47.92 kB / 228.4 MB, free: 9.27 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.023e-06/0.009966, allocations: 7.938 kB / 228.4 MB, free: 9.262 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.668e-05/0.01006, allocations: 31.83 kB / 228.5 MB, free: 9.23 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.228e-05/0.01008, allocations: 4.25 kB / 228.5 MB, free: 9.227 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 0.0001046/0.01018, allocations: 146.5 kB / 228.6 MB, free: 9.07 MB / 234.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.76e-05/0.01021, allocations: 11.98 kB / 228.6 MB, free: 9.059 MB / 234.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001305/0.01034, allocations: 83.12 kB / 228.7 MB, free: 8.977 MB / 234.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.064e-06/0.01034, allocations: 0 / 228.7 MB, free: 8.977 MB / 234.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.044e-06/0.01034, allocations: 320 / 228.7 MB, free: 8.977 MB / 234.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.41e-06/0.01035, allocations: 4 kB / 228.7 MB, free: 8.973 MB / 234.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003385/0.01069, allocations: 326.5 kB / 229 MB, free: 8.629 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.138e-06/0.01069, allocations: 4 kB / 229 MB, free: 8.625 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.961e-05/0.01077, allocations: 27.92 kB / 229.1 MB, free: 8.598 MB / 234.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.331e-05/0.01079, allocations: 15.86 kB / 229.1 MB, free: 8.582 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.981e-06/0.0108, allocations: 7.984 kB / 229.1 MB, free: 8.574 MB / 234.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.218e-05/0.01081, allocations: 11.92 kB / 229.1 MB, free: 8.562 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.773e-06/0.01081, allocations: 0 / 229.1 MB, free: 8.562 MB / 234.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.513e-06/0.01081, allocations: 0 / 229.1 MB, free: 8.562 MB / 234.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001769/0.01099, allocations: 209.7 kB / 229.3 MB, free: 8.336 MB / 234.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.317e-05/0.01101, allocations: 0 / 229.3 MB, free: 8.336 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.5e-05/0.01111, allocations: 15.98 kB / 229.3 MB, free: 8.32 MB / 234.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.172e-05/0.01117, allocations: 23.97 kB / 229.3 MB, free: 8.297 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.328e-05/0.01118, allocations: 4 kB / 229.3 MB, free: 8.293 MB / 234.7 MB Notification: Performance of sorting global known variables: time 5.707e-05/0.01124, allocations: 57.77 kB / 229.4 MB, free: 8.234 MB / 234.7 MB Notification: Performance of sort global known variables: time 6e-08/0.01124, allocations: 0 / 229.4 MB, free: 8.234 MB / 234.7 MB Notification: Performance of remove unused functions: time 0.0002719/0.01151, allocations: 43.95 kB / 229.4 MB, free: 8.191 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.0001278/0.01164, allocations: 80.42 kB / 229.5 MB, free: 8.102 MB / 234.7 MB Notification: Performance of simCode: created initialization part: time 0.0001784/0.01182, allocations: 104.5 kB / 229.6 MB, free: 7.996 MB / 234.7 MB Notification: Performance of simCode: created event and clocks part: time 8.095e-06/0.01183, allocations: 4.5 kB / 229.6 MB, free: 7.992 MB / 234.7 MB Notification: Performance of simCode: created simulation system equations: time 7.355e-05/0.0119, allocations: 44.78 kB / 229.7 MB, free: 7.945 MB / 234.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002528/0.01215, allocations: 48.81 kB / 229.7 MB, free: 7.898 MB / 234.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0011/0.01325, allocations: 347.7 kB / 230.1 MB, free: 7.531 MB / 234.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.398e-05/0.01331, allocations: 76.28 kB / 230.1 MB, free: 7.438 MB / 234.7 MB Notification: Performance of simCode: alias equations: time 7.452e-05/0.01338, allocations: 21.48 kB / 230.2 MB, free: 7.418 MB / 234.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001197/0.0135, allocations: 83.34 kB / 230.2 MB, free: 7.336 MB / 234.7 MB Notification: Performance of SimCode: time 8.72e-07/0.0135, allocations: 0 / 230.2 MB, free: 7.336 MB / 234.7 MB Notification: Performance of Templates: time 0.005045/0.01855, allocations: 2.277 MB / 232.5 MB, free: 5.074 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,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.596192941069603]