Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Blocks.Examples.RealNetwork1.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.001298/0.001298, allocations: 110.8 kB / 21.19 MB, free: 0.6641 MB / 14.72 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.00134/0.00134, allocations: 210.8 kB / 24.49 MB, free: 3.965 MB / 14.72 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.431/1.431, allocations: 230.6 MB / 258.3 MB, free: 7.789 MB / 206.1 MB " [Timeout remaining time 178] 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.RealNetwork1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5026,variableFilter="time|multiSwitch.u.1.|multiSwitch.u.2.",fileNamePrefix="Modelica_4.1.0_Modelica.Blocks.Examples.RealNetwork1") translateModel(Modelica.Blocks.Examples.RealNetwork1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5026,variableFilter="time|multiSwitch.u.1.|multiSwitch.u.2.",fileNamePrefix="Modelica_4.1.0_Modelica.Blocks.Examples.RealNetwork1") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001611/0.001611, allocations: 40.08 kB / 379 MB, free: 2.48 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2128/0.2145, allocations: 53.37 MB / 432.3 MB, free: 6.727 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.RealNetwork1): time 0.003103/0.2176, allocations: 1.821 MB / 434.1 MB, free: 4.902 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00121/0.2188, allocations: 0.631 MB / 434.8 MB, free: 4.266 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.987e-05/0.2189, allocations: 7.938 kB / 434.8 MB, free: 4.258 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001187/0.219, allocations: 27.67 kB / 434.8 MB, free: 4.23 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001502/0.2191, allocations: 35.66 kB / 434.8 MB, free: 4.195 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002991/0.2194, allocations: 79.8 kB / 434.9 MB, free: 4.117 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002386/0.2197, allocations: 171.4 kB / 435.1 MB, free: 3.949 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001534/0.2198, allocations: 48.38 kB / 435.1 MB, free: 3.902 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001695/0.22, allocations: 83.62 kB / 435.2 MB, free: 3.82 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001428/0.2201, allocations: 79.62 kB / 435.3 MB, free: 3.742 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.237e-05/0.2202, allocations: 12 kB / 435.3 MB, free: 3.73 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.283e-05/0.2202, allocations: 23.98 kB / 435.3 MB, free: 3.707 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.752e-05/0.2203, allocations: 47.83 kB / 435.4 MB, free: 3.66 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 7.883e-05/0.2204, allocations: 67.55 kB / 435.4 MB, free: 3.594 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002744/0.2207, allocations: 193.9 kB / 435.6 MB, free: 3.41 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.474e-06/0.2207, allocations: 0 / 435.6 MB, free: 3.41 MB / 334.1 MB Notification: Performance of FrontEnd: time 9.62e-07/0.2207, allocations: 4 kB / 435.6 MB, free: 3.406 MB / 334.1 MB Notification: Performance of Transformations before backend: time 4.799e-06/0.2207, allocations: 0 / 435.6 MB, free: 3.406 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 34 * Number of variables: 34 Notification: Performance of Generate backend data structure: time 0.0008618/0.2215, allocations: 457.4 kB / 436.1 MB, free: 2.926 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.469e-05/0.2216, allocations: 8.031 kB / 436.1 MB, free: 2.918 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000159/0.2217, allocations: 32.78 kB / 436.1 MB, free: 2.887 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002831/0.222, allocations: 179.4 kB / 436.3 MB, free: 2.688 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.104e-05/0.222, allocations: 16.66 kB / 436.3 MB, free: 2.672 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.993e-05/0.2221, allocations: 12.38 kB / 436.3 MB, free: 2.66 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003815/0.2225, allocations: 208 kB / 436.5 MB, free: 2.441 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.019e-05/0.2225, allocations: 0 / 436.5 MB, free: 2.441 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.935e-05/0.2225, allocations: 4 kB / 436.5 MB, free: 2.438 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.774e-05/0.2225, allocations: 4 kB / 436.5 MB, free: 2.434 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003217/0.2228, allocations: 143.8 kB / 436.7 MB, free: 2.293 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001087/0.2239, allocations: 0.6956 MB / 437.4 MB, free: 1.555 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003446/0.2243, allocations: 157.1 kB / 437.5 MB, free: 1.383 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001521/0.2244, allocations: 69.75 kB / 437.6 MB, free: 1.309 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.961e-05/0.2244, allocations: 11.92 kB / 437.6 MB, free: 1.297 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002759/0.2247, allocations: 149 kB / 437.8 MB, free: 1.133 MB / 334.1 MB Notification: Performance of pre-optimization done (n=15): time 1.543e-06/0.2247, allocations: 0 / 437.8 MB, free: 1.133 MB / 334.1 MB Notification: Performance of matching and sorting (n=15): time 0.0005898/0.2253, allocations: 257.7 kB / 438 MB, free: 0.875 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.665e-05/0.2254, allocations: 77.11 kB / 438.1 MB, free: 0.7812 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001966/0.2256, allocations: 202.8 kB / 438.3 MB, free: 0.5742 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.544e-05/0.2256, allocations: 29.7 kB / 438.3 MB, free: 0.5391 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001086/0.2257, allocations: 144.3 kB / 438.4 MB, free: 404 kB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.571e-05/0.2257, allocations: 47.64 kB / 438.5 MB, free: 356 kB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.187e-05/0.2258, allocations: 37.7 kB / 438.5 MB, free: 312 kB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001594/0.226, allocations: 334.8 kB / 438.9 MB, free: 15.97 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001589/0.2261, allocations: 67.95 kB / 438.9 MB, free: 15.9 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002025/0.2263, allocations: 136.4 kB / 439.1 MB, free: 15.75 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003456/0.2267, allocations: 206.6 kB / 439.3 MB, free: 15.52 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.124e-06/0.2267, allocations: 0 / 439.3 MB, free: 15.52 MB / 350.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0004408/0.2271, allocations: 245.2 kB / 439.5 MB, free: 15.27 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.827e-05/0.2271, allocations: 8 kB / 439.5 MB, free: 15.27 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.178e-06/0.2271, allocations: 0 / 439.5 MB, free: 15.27 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.528e-05/0.2272, allocations: 4 kB / 439.5 MB, free: 15.26 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001676/0.2273, allocations: 32.17 kB / 439.5 MB, free: 15.23 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.268e-06/0.2273, allocations: 7.938 kB / 439.6 MB, free: 15.22 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001644/0.2275, allocations: 35.86 kB / 439.6 MB, free: 15.19 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.693e-05/0.2275, allocations: 8 kB / 439.6 MB, free: 15.18 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 11 ($PRE.multiSwitch.u[1],$PRE.multiSwitch.u[2],$whenCondition2,$whenCondition1,booleanPulse2.pulseStart,$PRE.booleanPulse2.pulseStart,multiSwitch.firstActiveIndex,multiSwitch.u[2],multiSwitch.u[1],booleanPulse1.pulseStart,$PRE.booleanPulse1.pulseStart) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (23): * Single equations (assignments): 23 * 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.000139/0.2277, allocations: 141.7 kB / 439.7 MB, free: 15.03 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.226e-05/0.2277, allocations: 19.84 kB / 439.8 MB, free: 15.01 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004771/0.2282, allocations: 219.6 kB / 440 MB, free: 14.79 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.028e-06/0.2282, allocations: 4 kB / 440 MB, free: 14.79 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.522e-06/0.2282, allocations: 0 / 440 MB, free: 14.79 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.587e-05/0.2282, allocations: 23.8 kB / 440 MB, free: 14.77 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.721e-05/0.2282, allocations: 4.109 kB / 440 MB, free: 14.76 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001374/0.2284, allocations: 19.91 kB / 440 MB, free: 14.74 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.243e-05/0.2284, allocations: 23.91 kB / 440 MB, free: 14.72 MB / 350.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0005439/0.229, allocations: 360.2 kB / 440.4 MB, free: 14.36 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.0004786/0.2295, allocations: 444.2 kB / 440.8 MB, free: 13.91 MB / 350.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0001617/0.2296, allocations: 71.95 kB / 440.9 MB, free: 13.84 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001199/0.2297, allocations: 136.6 kB / 441 MB, free: 13.71 MB / 350.1 MB Notification: Performance of Backend: time 2e-07/0.2297, allocations: 0 / 441 MB, free: 13.71 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0006262/0.2304, allocations: 190.2 kB / 441.2 MB, free: 13.51 MB / 350.1 MB Notification: Performance of SimCode: time 0.0008828/0.2312, allocations: 0.7838 MB / 442 MB, free: 12.68 MB / 350.1 MB Notification: Performance of Templates: time 0.006547/0.2378, allocations: 2.997 MB / 445 MB, free: 9.738 MB / 350.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Blocks.Examples.RealNetwork1.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Blocks.Examples.RealNetwork1.pipe ; mkfifo Modelica_4.1.0_Modelica.Blocks.Examples.RealNetwork1.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Blocks.Examples.RealNetwork1.pipe >> ../files/Modelica_4.1.0_Modelica.Blocks.Examples.RealNetwork1.sim & ./Modelica_4.1.0_Modelica.Blocks.Examples.RealNetwork1 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Blocks.Examples.RealNetwork1.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.Blocks.Examples.RealNetwork1_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Blocks/Examples/RealNetwork1/RealNetwork1.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Blocks.Examples.RealNetwork1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 4.248381801997311]