Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0_ModelicaTest.Utilities.TestReadFile.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.0008506/0.0008506, allocations: 77.05 kB / 10 MB, free: 0.6836 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001248/0.002099, 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.0008643/0.0008643, allocations: 165.1 kB / 11.36 MB, free: 2.816 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001258/0.002123, 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.099/1.099, allocations: 177.2 MB / 189.8 MB, free: 5.25 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.1384/1.238, allocations: 53.66 MB / 243.4 MB, free: 15.51 MB / 250.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo): time 0.2633/0.2633, allocations: 34.26 MB / 278.4 MB, free: 15.29 MB / 282.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.03706/0.3004, allocations: 13.1 MB / 291.5 MB, free: 7.332 MB / 282.7 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo) 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(ModelicaTest.Utilities.TestReadFile,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.1.0_ModelicaTest.Utilities.TestReadFile") translateModel(ModelicaTest.Utilities.TestReadFile,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.1.0_ModelicaTest.Utilities.TestReadFile") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.462e-06/1.462e-06, allocations: 0 / 292.8 MB, free: 6.238 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.421e-05/1.567e-05, allocations: 3.188 kB / 292.8 MB, free: 6.234 MB / 282.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestReadFile): time 0.001412/0.001427, allocations: 0.538 MB / 293.3 MB, free: 5.699 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.001064/0.002492, allocations: 0.9392 MB / 294.3 MB, free: 4.758 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.279e-05/0.002514, allocations: 4 kB / 294.3 MB, free: 4.754 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 3.897e-06/0.002518, allocations: 0 / 294.3 MB, free: 4.754 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 6.716e-05/0.002585, allocations: 13.45 kB / 294.3 MB, free: 4.742 MB / 282.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/Utilities.mo:322:3-362:15:writable] Warning: Pure function 'ModelicaTest.Utilities.ReadFile' contains a call to impure function 'Modelica.Utilities.Streams.print'. Notification: Performance of NFTyping.typeClassSections: time 0.006535/0.00912, allocations: 63.77 kB / 294.4 MB, free: 4.691 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 6.728e-05/0.009188, allocations: 0.5 kB / 294.4 MB, free: 4.691 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.804e-05/0.009236, allocations: 7.984 kB / 294.4 MB, free: 4.684 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 5.241e-05/0.009288, allocations: 3.984 kB / 294.4 MB, free: 4.68 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 6.056e-05/0.009349, allocations: 7.938 kB / 294.4 MB, free: 4.672 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 1.112e-05/0.00936, allocations: 0 / 294.4 MB, free: 4.672 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001654/0.009525, allocations: 67.81 kB / 294.4 MB, free: 4.605 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 1.664e-05/0.009542, allocations: 8 kB / 294.5 MB, free: 4.598 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 1.505e-05/0.009557, allocations: 0 / 294.5 MB, free: 4.598 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001643/0.009721, allocations: 43.91 kB / 294.5 MB, free: 4.555 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.54e-05/0.009736, allocations: 0 / 294.5 MB, free: 4.555 MB / 282.7 MB Notification: Performance of FrontEnd: time 9.72e-07/0.009737, allocations: 0 / 294.5 MB, free: 4.555 MB / 282.7 MB Notification: Performance of Transformations before backend: time 1.203e-05/0.009749, allocations: 3.938 kB / 294.5 MB, free: 4.551 MB / 282.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1 * Number of variables: 1 Notification: Performance of Generate backend data structure: time 0.0003601/0.01011, allocations: 254.3 kB / 294.8 MB, free: 4.27 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.364e-05/0.01015, allocations: 12.03 kB / 294.8 MB, free: 4.258 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.397e-05/0.01019, allocations: 0.9375 kB / 294.8 MB, free: 4.258 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001008/0.01029, allocations: 105.8 kB / 294.9 MB, free: 4.129 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.031e-05/0.0103, allocations: 8.375 kB / 294.9 MB, free: 4.121 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.959e-06/0.01031, allocations: 384 / 294.9 MB, free: 4.121 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.209e-05/0.01039, allocations: 63.91 kB / 294.9 MB, free: 4.047 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.905e-06/0.0104, allocations: 192 / 294.9 MB, free: 4.047 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.504e-06/0.01041, allocations: 384 / 294.9 MB, free: 4.047 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.364e-06/0.01041, allocations: 384 / 294.9 MB, free: 4.047 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.157e-05/0.01043, allocations: 33.64 kB / 295 MB, free: 4.008 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 8.058e-05/0.01052, allocations: 61.03 kB / 295 MB, free: 3.934 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 5.207e-05/0.01057, allocations: 44.31 kB / 295.1 MB, free: 3.875 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.483e-05/0.01059, allocations: 34.56 kB / 295.1 MB, free: 3.832 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.374e-06/0.0106, allocations: 3.938 kB / 295.1 MB, free: 3.828 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.228e-05/0.01064, allocations: 60.33 kB / 295.2 MB, free: 3.754 MB / 282.7 MB Notification: Performance of pre-optimization done (n=1): time 8.61e-07/0.01064, allocations: 0 / 295.2 MB, free: 3.754 MB / 282.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001462/0.01079, allocations: 118.8 kB / 295.3 MB, free: 3.613 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.942e-05/0.01086, allocations: 158.2 kB / 295.4 MB, free: 3.422 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.383e-05/0.01093, allocations: 98.7 kB / 295.5 MB, free: 3.312 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 1.593e-05/0.01095, allocations: 25.7 kB / 295.6 MB, free: 3.281 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.649e-05/0.01097, allocations: 84.14 kB / 295.6 MB, free: 3.195 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.55e-05/0.011, allocations: 1.453 kB / 295.6 MB, free: 3.195 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.111e-05/0.01103, allocations: 17.7 kB / 295.7 MB, free: 3.172 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001055/0.01114, allocations: 318.8 kB / 296 MB, free: 2.852 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.069e-05/0.01116, allocations: 25.7 kB / 296 MB, free: 2.82 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.977e-05/0.01118, allocations: 33.64 kB / 296 MB, free: 2.781 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.462e-05/0.01122, allocations: 64.25 kB / 296.1 MB, free: 2.703 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.924e-06/0.01122, allocations: 0 / 296.1 MB, free: 2.703 MB / 282.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.285e-05/0.0113, allocations: 85.05 kB / 296.2 MB, free: 2.602 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.295e-05/0.01134, allocations: 33.7 kB / 296.2 MB, free: 2.562 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.237e-06/0.01134, allocations: 0 / 296.2 MB, free: 2.562 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.241e-05/0.01136, allocations: 4.094 kB / 296.2 MB, free: 2.559 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.763e-06/0.01136, allocations: 0 / 296.2 MB, free: 2.559 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.046e-06/0.01136, allocations: 0 / 296.2 MB, free: 2.559 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.966e-05/0.01138, allocations: 7.984 kB / 296.2 MB, free: 2.551 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.792e-06/0.01139, allocations: 0 / 296.2 MB, free: 2.551 MB / 282.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 1 (result) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 1 * 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.883e-05/0.01147, allocations: 147.4 kB / 296.4 MB, free: 2.391 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.565e-06/0.01147, allocations: 4 kB / 296.4 MB, free: 2.387 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.065e-05/0.01148, allocations: 3 kB / 296.4 MB, free: 2.387 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.142e-06/0.01149, allocations: 0 / 296.4 MB, free: 2.387 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.523e-06/0.01149, allocations: 0 / 296.4 MB, free: 2.387 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.555e-06/0.01149, allocations: 0 / 296.4 MB, free: 2.387 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 6.114e-05/0.01155, allocations: 77.78 kB / 296.4 MB, free: 2.293 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.42e-07/0.01155, allocations: 0 / 296.4 MB, free: 2.293 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.31e-07/0.01155, allocations: 0 / 296.4 MB, free: 2.293 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.302e-06/0.01156, allocations: 3.984 kB / 296.5 MB, free: 2.289 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.342e-06/0.01156, allocations: 0 / 296.5 MB, free: 2.289 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.978e-06/0.01156, allocations: 0 / 296.5 MB, free: 2.289 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.02e-07/0.01156, allocations: 0 / 296.5 MB, free: 2.289 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.084e-06/0.01157, allocations: 4 kB / 296.5 MB, free: 2.285 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.77e-05/0.01165, allocations: 112.5 kB / 296.6 MB, free: 2.145 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.383e-05/0.01167, allocations: 0 / 296.6 MB, free: 2.145 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.829e-06/0.01168, allocations: 8.031 kB / 296.6 MB, free: 2.137 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.408e-06/0.01169, allocations: 3.938 kB / 296.6 MB, free: 2.133 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.994e-06/0.01169, allocations: 0 / 296.6 MB, free: 2.133 MB / 282.7 MB Notification: Performance of sorting global known variables: time 8.045e-06/0.0117, allocations: 4.859 kB / 296.6 MB, free: 2.125 MB / 282.7 MB Notification: Performance of sort global known variables: time 7e-08/0.0117, allocations: 0 / 296.6 MB, free: 2.125 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.003207/0.0149, allocations: 27.92 kB / 296.6 MB, free: 2.098 MB / 282.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 1 (result) * Number of discrete states: 1 (result) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (1): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 1 * 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 Backend phase and start with SimCode phase: time 0.0005255/0.01543, allocations: 229.3 kB / 296.8 MB, free: 1.938 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0001169/0.01555, allocations: 115.7 kB / 296.9 MB, free: 1.797 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 5.17e-06/0.01555, allocations: 0 / 296.9 MB, free: 1.797 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 4.349e-05/0.0156, allocations: 90.06 kB / 297 MB, free: 1.688 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 8.031e-05/0.01568, allocations: 11.92 kB / 297 MB, free: 1.676 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001773/0.01585, allocations: 114 kB / 297.2 MB, free: 1.531 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.646e-05/0.01589, allocations: 55.34 kB / 297.2 MB, free: 1.457 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 6.242e-06/0.0159, allocations: 0 / 297.2 MB, free: 1.457 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.05e-05/0.01594, allocations: 51.38 kB / 297.3 MB, free: 1.406 MB / 282.7 MB Notification: Performance of SimCode: time 3.91e-07/0.01594, allocations: 0 / 297.3 MB, free: 1.406 MB / 282.7 MB Notification: Performance of Templates: time 0.005931/0.02187, allocations: 0.8006 MB / 298.1 MB, free: 0.6133 MB / 282.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.1.0_ModelicaTest.Utilities.TestReadFile.makefile [Timeout 660] (rm -f ModelicaTest_4.1.0_ModelicaTest.Utilities.TestReadFile.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.Utilities.TestReadFile.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.Utilities.TestReadFile.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.Utilities.TestReadFile.sim & ./ModelicaTest_4.1.0_ModelicaTest.Utilities.TestReadFile -abortSlowSimulation -alarm=240 -emit_protected -ignoreHideResult -lv LOG_STATS > ModelicaTest_4.1.0_ModelicaTest.Utilities.TestReadFile.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_4.1.0_ModelicaTest.Utilities.TestReadFile_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Utilities/TestReadFile/TestReadFile.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: 3.1322134658694267]