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.001086/0.001086, allocations: 76.17 kB / 9.931 MB, free: 0.7578 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001796/0.002882, allocations: 449.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.0008215/0.0008215, allocations: 169.1 kB / 11.26 MB, free: 2.91 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001052/0.001873, allocations: 455.6 kB / 11.71 MB, free: 2.461 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 0.9678/0.9678, allocations: 177.2 MB / 189.6 MB, free: 5.309 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.08711/1.055, allocations: 53.64 MB / 243.3 MB, free: 15.59 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.533e-06/1.533e-06, allocations: 0 / 244.5 MB, free: 14.32 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.975e-05/2.128e-05, allocations: 2.312 kB / 244.5 MB, free: 14.32 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.IntegerNetwork1): time 0.003015/0.003036, allocations: 1.927 MB / 246.4 MB, free: 12.38 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.00118/0.004216, allocations: 0.693 MB / 247.1 MB, free: 11.68 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001164/0.004332, allocations: 7.938 kB / 247.1 MB, free: 11.67 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001062/0.004439, allocations: 31.61 kB / 247.2 MB, free: 11.64 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001159/0.004555, allocations: 39.59 kB / 247.2 MB, free: 11.6 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003144/0.004869, allocations: 95.7 kB / 247.3 MB, free: 11.51 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002451/0.005114, allocations: 179.3 kB / 247.5 MB, free: 11.33 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001543/0.005268, allocations: 51.64 kB / 247.5 MB, free: 11.28 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002577/0.005526, allocations: 124.4 kB / 247.7 MB, free: 11.16 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001628/0.005689, allocations: 67.78 kB / 247.7 MB, free: 11.09 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 3.265e-05/0.005722, allocations: 12 kB / 247.7 MB, free: 11.08 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001168/0.005838, allocations: 35.98 kB / 247.8 MB, free: 11.04 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 6.045e-05/0.005899, allocations: 35.81 kB / 247.8 MB, free: 11.01 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 6.335e-05/0.005962, allocations: 39.88 kB / 247.8 MB, free: 10.97 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002599/0.006222, allocations: 155.3 kB / 248 MB, free: 10.82 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.782e-05/0.00624, allocations: 4 kB / 248 MB, free: 10.81 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.002e-06/0.006241, allocations: 0 / 248 MB, free: 10.81 MB / 250.7 MB Notification: Performance of Transformations before backend: time 1.455e-05/0.006255, allocations: 0 / 248 MB, free: 10.81 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.0007202/0.006976, allocations: 439.5 kB / 248.4 MB, free: 10.36 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.345e-05/0.007009, allocations: 8.031 kB / 248.4 MB, free: 10.35 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001967/0.007206, allocations: 114 kB / 248.5 MB, free: 10.22 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002505/0.007456, allocations: 176.2 kB / 248.7 MB, free: 10.02 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.004e-05/0.007486, allocations: 12.38 kB / 248.7 MB, free: 10.01 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.721e-05/0.007513, allocations: 24.36 kB / 248.8 MB, free: 9.988 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002805/0.007794, allocations: 173.1 kB / 248.9 MB, free: 9.797 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.411e-05/0.007808, allocations: 3.938 kB / 248.9 MB, free: 9.793 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.533e-05/0.007823, allocations: 4 kB / 248.9 MB, free: 9.789 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.37e-05/0.007847, allocations: 8 kB / 248.9 MB, free: 9.781 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001249/0.007972, allocations: 59.33 kB / 249 MB, free: 9.723 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007148/0.008687, allocations: 0.5641 MB / 249.6 MB, free: 9.129 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003166/0.009003, allocations: 151.9 kB / 249.7 MB, free: 8.969 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.014e-05/0.009054, allocations: 20.86 kB / 249.7 MB, free: 8.945 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.683e-05/0.00909, allocations: 8 kB / 249.7 MB, free: 8.938 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001788/0.009269, allocations: 115.8 kB / 249.9 MB, free: 8.805 MB / 250.7 MB Notification: Performance of pre-optimization done (n=15): time 1.483e-06/0.009271, allocations: 0 / 249.9 MB, free: 8.805 MB / 250.7 MB Notification: Performance of matching and sorting (n=15): time 0.0002429/0.009513, allocations: 115.2 kB / 250 MB, free: 8.684 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.355e-05/0.009567, allocations: 89.05 kB / 250.1 MB, free: 8.578 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001508/0.009718, allocations: 207.3 kB / 250.3 MB, free: 8.363 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 2.592e-05/0.009744, allocations: 33.7 kB / 250.3 MB, free: 8.324 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.024e-05/0.009814, allocations: 128.3 kB / 250.4 MB, free: 8.195 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.601e-05/0.00985, allocations: 35.72 kB / 250.4 MB, free: 8.16 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.654e-05/0.009927, allocations: 61.61 kB / 250.5 MB, free: 8.094 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0001064/0.01003, allocations: 334.8 kB / 250.8 MB, free: 7.758 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.473e-05/0.01009, allocations: 26.81 kB / 250.9 MB, free: 7.73 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.298e-05/0.01018, allocations: 93.2 kB / 251 MB, free: 7.609 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001731/0.01035, allocations: 148.8 kB / 251.1 MB, free: 7.43 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.59e-06/0.01036, allocations: 4 kB / 251.1 MB, free: 7.426 MB / 250.7 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0002276/0.01059, allocations: 147 kB / 251.2 MB, free: 7.273 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.959e-05/0.01061, allocations: 10.97 kB / 251.3 MB, free: 7.266 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.031e-06/0.01061, allocations: 0 / 251.3 MB, free: 7.266 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.998e-05/0.01063, allocations: 4 kB / 251.3 MB, free: 7.262 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001256/0.01076, allocations: 43.92 kB / 251.3 MB, free: 7.219 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.082e-06/0.01076, allocations: 12.23 kB / 251.3 MB, free: 7.207 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.293e-05/0.01083, allocations: 23.88 kB / 251.3 MB, free: 7.184 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.081e-05/0.01084, allocations: 8 kB / 251.3 MB, free: 7.176 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 8.991e-05/0.01093, allocations: 142.5 kB / 251.5 MB, free: 7.027 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.1e-05/0.01095, allocations: 19.98 kB / 251.5 MB, free: 7.008 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000114/0.01106, allocations: 83.06 kB / 251.6 MB, free: 6.926 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.447e-06/0.01107, allocations: 4 kB / 251.6 MB, free: 6.922 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.723e-06/0.01107, allocations: 0 / 251.6 MB, free: 6.922 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.907e-06/0.01107, allocations: 4 kB / 251.6 MB, free: 6.918 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002561/0.01133, allocations: 326.5 kB / 251.9 MB, free: 6.574 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.502e-06/0.01133, allocations: 0 / 251.9 MB, free: 6.574 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.401e-05/0.01138, allocations: 28.23 kB / 251.9 MB, free: 6.547 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.285e-05/0.0114, allocations: 11.91 kB / 252 MB, free: 6.535 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.024e-06/0.0114, allocations: 0 / 252 MB, free: 6.535 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.638e-06/0.01141, allocations: 11.98 kB / 252 MB, free: 6.523 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.332e-06/0.01141, allocations: 0 / 252 MB, free: 6.523 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.232e-06/0.01141, allocations: 0 / 252 MB, free: 6.523 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001248/0.01154, allocations: 205.9 kB / 252.2 MB, free: 6.301 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.745e-05/0.01155, allocations: 4 kB / 252.2 MB, free: 6.297 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.305e-05/0.01162, allocations: 15.98 kB / 252.2 MB, free: 6.281 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.061e-05/0.01167, allocations: 19.97 kB / 252.2 MB, free: 6.262 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.177e-05/0.01168, allocations: 4 kB / 252.2 MB, free: 6.258 MB / 250.7 MB Notification: Performance of sorting global known variables: time 4.159e-05/0.01172, allocations: 62.97 kB / 252.3 MB, free: 6.195 MB / 250.7 MB Notification: Performance of sort global known variables: time 4e-08/0.01172, allocations: 0 / 252.3 MB, free: 6.195 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0001647/0.01188, allocations: 43.89 kB / 252.3 MB, free: 6.152 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.0001095/0.01199, allocations: 88.36 kB / 252.4 MB, free: 6.055 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.0001254/0.01212, allocations: 102.6 kB / 252.5 MB, free: 5.953 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 6.061e-06/0.01213, allocations: 4 kB / 252.5 MB, free: 5.949 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 5.596e-05/0.01218, allocations: 44.3 kB / 252.5 MB, free: 5.906 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001759/0.01236, allocations: 43.95 kB / 252.6 MB, free: 5.863 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008012/0.01316, allocations: 356.9 kB / 252.9 MB, free: 5.484 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.107e-05/0.0132, allocations: 79.98 kB / 253 MB, free: 5.387 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 4.993e-05/0.01325, allocations: 21.47 kB / 253 MB, free: 5.367 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.699e-05/0.01334, allocations: 87.34 kB / 253.1 MB, free: 5.281 MB / 250.7 MB Notification: Performance of SimCode: time 8.01e-07/0.01334, allocations: 0 / 253.1 MB, free: 5.281 MB / 250.7 MB Notification: Performance of Templates: time 0.003948/0.01729, allocations: 2.278 MB / 255.4 MB, free: 3.031 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,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.5334544591605663]