Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_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.001375/0.001375, allocations: 77.05 kB / 10 MB, free: 0.6836 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.002383/0.003758, allocations: 449.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.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.001426/0.001426, allocations: 165.1 kB / 11.36 MB, free: 2.816 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.00199/0.003417, allocations: 479.5 kB / 11.82 MB, free: 2.344 MB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.114/1.114, allocations: 177.2 MB / 189.8 MB, free: 5.25 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.1087/1.223, allocations: 53.66 MB / 243.4 MB, free: 15.52 MB / 250.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+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_4.1.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.1.0_Modelica.Blocks.Examples.IntegerNetwork1") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.834e-06/1.834e-06, allocations: 0 / 244.7 MB, free: 14.23 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.483e-05/2.666e-05, allocations: 2.312 kB / 244.7 MB, free: 14.23 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.IntegerNetwork1): time 0.003695/0.003722, allocations: 1.924 MB / 246.6 MB, free: 12.29 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001336/0.005058, allocations: 0.7008 MB / 247.3 MB, free: 11.59 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001271/0.005185, allocations: 7.938 kB / 247.3 MB, free: 11.58 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001249/0.00531, allocations: 35.59 kB / 247.4 MB, free: 11.54 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001154/0.005425, allocations: 35.66 kB / 247.4 MB, free: 11.51 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003441/0.005769, allocations: 95.7 kB / 247.5 MB, free: 11.41 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002805/0.00605, allocations: 171.4 kB / 247.7 MB, free: 11.25 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001895/0.006239, allocations: 55.64 kB / 247.7 MB, free: 11.19 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002977/0.006537, allocations: 140.3 kB / 247.9 MB, free: 11.05 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002101/0.006747, allocations: 63.8 kB / 247.9 MB, free: 10.99 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 3.782e-05/0.006785, allocations: 12 kB / 247.9 MB, free: 10.98 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001514/0.006936, allocations: 31.98 kB / 248 MB, free: 10.95 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 8.19e-05/0.007018, allocations: 35.86 kB / 248 MB, free: 10.91 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 6.865e-05/0.007087, allocations: 39.88 kB / 248 MB, free: 10.87 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003324/0.007419, allocations: 151.4 kB / 248.2 MB, free: 10.72 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.724e-05/0.007436, allocations: 0 / 248.2 MB, free: 10.72 MB / 250.7 MB Notification: Performance of FrontEnd: time 2.205e-06/0.007439, allocations: 0 / 248.2 MB, free: 10.72 MB / 250.7 MB Notification: Performance of Transformations before backend: time 1.414e-05/0.007453, allocations: 4 kB / 248.2 MB, free: 10.72 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.0008292/0.008282, allocations: 435.5 kB / 248.6 MB, free: 10.27 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.92e-05/0.008321, allocations: 12.03 kB / 248.6 MB, free: 10.26 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001712/0.008492, allocations: 114 kB / 248.7 MB, free: 10.13 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002275/0.00872, allocations: 174.8 kB / 248.9 MB, free: 9.93 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.472e-05/0.008745, allocations: 16.38 kB / 248.9 MB, free: 9.914 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.113e-05/0.008766, allocations: 16.38 kB / 248.9 MB, free: 9.898 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002394/0.009005, allocations: 193.6 kB / 249.1 MB, free: 9.688 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.316e-06/0.009014, allocations: 0 / 249.1 MB, free: 9.688 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.343e-05/0.009027, allocations: 4 kB / 249.1 MB, free: 9.684 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.586e-05/0.009053, allocations: 11.98 kB / 249.1 MB, free: 9.672 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.341e-05/0.009136, allocations: 51.33 kB / 249.2 MB, free: 9.621 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005742/0.00971, allocations: 0.5641 MB / 249.8 MB, free: 9.027 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002598/0.00997, allocations: 156 kB / 249.9 MB, free: 8.863 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.246e-05/0.01, allocations: 16.86 kB / 249.9 MB, free: 8.844 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.097e-05/0.01003, allocations: 7.984 kB / 249.9 MB, free: 8.836 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001432/0.01018, allocations: 115.8 kB / 250 MB, free: 8.703 MB / 250.7 MB Notification: Performance of pre-optimization done (n=15): time 1.423e-06/0.01018, allocations: 0 / 250 MB, free: 8.703 MB / 250.7 MB Notification: Performance of matching and sorting (n=15): time 0.0002005/0.01038, allocations: 115.2 kB / 250.2 MB, free: 8.582 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.55e-05/0.01043, allocations: 81.11 kB / 250.2 MB, free: 8.484 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001326/0.01057, allocations: 215.3 kB / 250.5 MB, free: 8.262 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 3.407e-05/0.0106, allocations: 33.7 kB / 250.5 MB, free: 8.223 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.519e-05/0.01068, allocations: 128.3 kB / 250.6 MB, free: 8.094 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.959e-05/0.01071, allocations: 35.72 kB / 250.6 MB, free: 8.059 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.981e-05/0.01078, allocations: 61.59 kB / 250.7 MB, free: 7.992 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0001181/0.01089, allocations: 330.8 kB / 251 MB, free: 7.66 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.488e-05/0.01095, allocations: 22.81 kB / 251 MB, free: 7.637 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.373e-05/0.01103, allocations: 101.1 kB / 251.1 MB, free: 7.508 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001506/0.01118, allocations: 144.8 kB / 251.3 MB, free: 7.332 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.699e-06/0.01119, allocations: 4 kB / 251.3 MB, free: 7.328 MB / 250.7 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0001937/0.01138, allocations: 151.2 kB / 251.4 MB, free: 7.172 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.134e-05/0.0114, allocations: 12 kB / 251.5 MB, free: 7.16 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.616e-06/0.01141, allocations: 0 / 251.5 MB, free: 7.16 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.223e-05/0.01143, allocations: 4 kB / 251.5 MB, free: 7.156 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001593/0.01159, allocations: 47.91 kB / 251.5 MB, free: 7.109 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.813e-06/0.0116, allocations: 4 kB / 251.5 MB, free: 7.105 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.216e-05/0.01167, allocations: 23.88 kB / 251.5 MB, free: 7.082 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.587e-05/0.01169, allocations: 12 kB / 251.5 MB, free: 7.07 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 0.0001367/0.01182, allocations: 134.5 kB / 251.7 MB, free: 6.93 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.097e-05/0.01186, allocations: 23.98 kB / 251.7 MB, free: 6.906 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001601/0.01202, allocations: 83.06 kB / 251.8 MB, free: 6.82 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.869e-06/0.01202, allocations: 4 kB / 251.8 MB, free: 6.816 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.33e-06/0.01203, allocations: 4.297 kB / 251.8 MB, free: 6.812 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.459e-06/0.01203, allocations: 0 / 251.8 MB, free: 6.812 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003333/0.01236, allocations: 334.5 kB / 252.1 MB, free: 6.461 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.304e-06/0.01237, allocations: 0 / 252.1 MB, free: 6.461 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.927e-05/0.01242, allocations: 19.98 kB / 252.1 MB, free: 6.441 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.419e-05/0.01244, allocations: 11.91 kB / 252.1 MB, free: 6.43 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.066e-06/0.01244, allocations: 0 / 252.1 MB, free: 6.43 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.266e-05/0.01245, allocations: 11.98 kB / 252.2 MB, free: 6.418 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.315e-06/0.01246, allocations: 0 / 252.2 MB, free: 6.418 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.32e-07/0.01246, allocations: 0 / 252.2 MB, free: 6.418 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001591/0.01262, allocations: 205.8 kB / 252.4 MB, free: 6.195 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.329e-05/0.01264, allocations: 11.97 kB / 252.4 MB, free: 6.184 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.908e-05/0.0127, allocations: 8 kB / 252.4 MB, free: 6.176 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.874e-05/0.01276, allocations: 23.95 kB / 252.4 MB, free: 6.152 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.593e-05/0.01277, allocations: 7.938 kB / 252.4 MB, free: 6.145 MB / 250.7 MB Notification: Performance of sorting global known variables: time 4.414e-05/0.01282, allocations: 55.05 kB / 252.5 MB, free: 6.09 MB / 250.7 MB Notification: Performance of sort global known variables: time 5e-08/0.01282, allocations: 0 / 252.5 MB, free: 6.09 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0001784/0.013, allocations: 47.88 kB / 252.5 MB, free: 6.043 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.0001521/0.01315, allocations: 88.42 kB / 252.6 MB, free: 5.945 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.0001537/0.0133, allocations: 102.5 kB / 252.7 MB, free: 5.844 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 9.328e-06/0.01331, allocations: 4 kB / 252.7 MB, free: 5.84 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 7.187e-05/0.01338, allocations: 44.78 kB / 252.7 MB, free: 5.793 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002799/0.01366, allocations: 237.7 kB / 253 MB, free: 5.52 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009682/0.01463, allocations: 359.6 kB / 253.3 MB, free: 5.137 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.346e-05/0.01469, allocations: 75.98 kB / 253.4 MB, free: 5.043 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 6.175e-05/0.01475, allocations: 17.48 kB / 253.4 MB, free: 5.027 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001059/0.01485, allocations: 91.34 kB / 253.5 MB, free: 4.938 MB / 250.7 MB Notification: Performance of SimCode: time 8.91e-07/0.01485, allocations: 0 / 253.5 MB, free: 4.938 MB / 250.7 MB Notification: Performance of Templates: time 0.004483/0.01934, allocations: 2.269 MB / 255.8 MB, free: 2.711 MB / 250.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Blocks.Examples.IntegerNetwork1.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Blocks.Examples.IntegerNetwork1.pipe ; mkfifo Modelica_4.1.0_Modelica.Blocks.Examples.IntegerNetwork1.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Blocks.Examples.IntegerNetwork1.pipe >> ../files/Modelica_4.1.0_Modelica.Blocks.Examples.IntegerNetwork1.sim & ./Modelica_4.1.0_Modelica.Blocks.Examples.IntegerNetwork1 -abortSlowSimulation -alarm=240 -emit_protected -ignoreHideResult -lv LOG_STATS > Modelica_4.1.0_Modelica.Blocks.Examples.IntegerNetwork1.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_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.8420204930007458]