Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.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.0009709/0.0009709, allocations: 80.8 kB / 21.5 MB, free: 2.992 MB / 18.57 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.001165/0.001165, allocations: 169.9 kB / 24.91 MB, free: 9.184 MB / 18.57 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.026/1.026, allocations: 177.1 MB / 205.3 MB, free: 5.488 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2855/0.2855, allocations: 32.81 MB / 294.6 MB, free: 1.234 MB / 266.7 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.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.0.0_ModelicaTest.Utilities.TestReadFile") translateModel(ModelicaTest.Utilities.TestReadFile,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Utilities.TestReadFile") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.433e-06/1.433e-06, allocations: 0 / 323.2 MB, free: 9.684 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.541e-05/1.684e-05, allocations: 2.312 kB / 323.2 MB, free: 9.68 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestReadFile): time 0.001107/0.001124, allocations: 0.5247 MB / 323.8 MB, free: 9.156 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0008503/0.001975, allocations: 0.9155 MB / 324.7 MB, free: 8.238 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.239e-05/0.001997, allocations: 0 / 324.7 MB, free: 8.238 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 1.154e-05/0.002008, allocations: 0 / 324.7 MB, free: 8.238 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001524/0.002161, allocations: 15.92 kB / 324.7 MB, free: 8.223 MB / 298.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/Utilities.mo:323:3-363: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.0004197/0.002581, allocations: 65.95 kB / 324.8 MB, free: 8.168 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 4.61e-05/0.002627, allocations: 4 kB / 324.8 MB, free: 8.164 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.055e-05/0.002657, allocations: 4 kB / 324.8 MB, free: 8.16 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 3.053e-05/0.002688, allocations: 4 kB / 324.8 MB, free: 8.156 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 3.358e-05/0.002721, allocations: 3.984 kB / 324.8 MB, free: 8.152 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 8.897e-06/0.00273, allocations: 3.938 kB / 324.8 MB, free: 8.148 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000113/0.002843, allocations: 63.88 kB / 324.8 MB, free: 8.086 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 6.773e-06/0.00285, allocations: 0 / 324.8 MB, free: 8.086 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 1.406e-05/0.002864, allocations: 0.625 kB / 324.8 MB, free: 8.086 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001183/0.002982, allocations: 59.86 kB / 324.9 MB, free: 8.027 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.483e-06/0.002984, allocations: 0 / 324.9 MB, free: 8.027 MB / 298.7 MB Notification: Performance of FrontEnd: time 8.22e-07/0.002985, allocations: 0 / 324.9 MB, free: 8.027 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.497e-06/0.002988, allocations: 0 / 324.9 MB, free: 8.027 MB / 298.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.0002166/0.003205, allocations: 255 kB / 325.1 MB, free: 7.746 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.057e-05/0.003235, allocations: 12.03 kB / 325.2 MB, free: 7.734 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.336e-05/0.003259, allocations: 0.9375 kB / 325.2 MB, free: 7.734 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.632e-05/0.003335, allocations: 113.7 kB / 325.3 MB, free: 7.598 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.166e-05/0.003347, allocations: 384 / 325.3 MB, free: 7.598 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.591e-06/0.003352, allocations: 4.375 kB / 325.3 MB, free: 7.594 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 5.892e-05/0.003411, allocations: 55.95 kB / 325.3 MB, free: 7.527 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.981e-06/0.003417, allocations: 4.188 kB / 325.3 MB, free: 7.523 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.759e-06/0.003422, allocations: 4.375 kB / 325.3 MB, free: 7.52 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.077e-06/0.003426, allocations: 384 / 325.3 MB, free: 7.52 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.438e-05/0.00344, allocations: 33.58 kB / 325.4 MB, free: 7.48 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 5.832e-05/0.003499, allocations: 57.05 kB / 325.4 MB, free: 7.41 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 3.774e-05/0.003537, allocations: 44.22 kB / 325.5 MB, free: 7.352 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.859e-05/0.003555, allocations: 46.64 kB / 325.5 MB, free: 7.297 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.545e-06/0.003558, allocations: 0 / 325.5 MB, free: 7.297 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.854e-05/0.003586, allocations: 56.27 kB / 325.6 MB, free: 7.227 MB / 298.7 MB Notification: Performance of pre-optimization done (n=1): time 4.91e-07/0.003587, allocations: 0 / 325.6 MB, free: 7.227 MB / 298.7 MB Notification: Performance of matching and sorting (n=1): time 9.621e-05/0.003683, allocations: 114.8 kB / 325.7 MB, free: 7.09 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.235e-05/0.003715, allocations: 81.09 kB / 325.8 MB, free: 6.992 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.172e-05/0.003767, allocations: 103.2 kB / 325.9 MB, free: 6.879 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 8.987e-06/0.003776, allocations: 25.7 kB / 325.9 MB, free: 6.848 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.011e-05/0.003796, allocations: 80.14 kB / 326 MB, free: 6.766 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.246e-05/0.003809, allocations: 4.297 kB / 326 MB, free: 6.762 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.027e-05/0.003829, allocations: 13.72 kB / 326 MB, free: 6.742 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 7.883e-05/0.003908, allocations: 318.8 kB / 326.3 MB, free: 6.422 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.418e-05/0.003922, allocations: 25.7 kB / 326.3 MB, free: 6.391 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.287e-05/0.003935, allocations: 37.95 kB / 326.4 MB, free: 6.348 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.363e-05/0.003968, allocations: 64.25 kB / 326.4 MB, free: 6.27 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.633e-06/0.00397, allocations: 0 / 326.4 MB, free: 6.27 MB / 298.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 4.392e-05/0.004014, allocations: 81.11 kB / 326.5 MB, free: 6.172 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.427e-05/0.004038, allocations: 33.69 kB / 326.5 MB, free: 6.133 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.637e-06/0.004042, allocations: 0 / 326.5 MB, free: 6.133 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.939e-06/0.004052, allocations: 7.938 kB / 326.5 MB, free: 6.125 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.243e-06/0.004053, allocations: 0 / 326.5 MB, free: 6.125 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.434e-06/0.004055, allocations: 0 / 326.5 MB, free: 6.125 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.528e-06/0.004065, allocations: 96 / 326.5 MB, free: 6.125 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.679e-06/0.00407, allocations: 4 kB / 326.5 MB, free: 6.121 MB / 298.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 5.782e-05/0.004127, allocations: 139.5 kB / 326.7 MB, free: 5.969 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.078e-06/0.004132, allocations: 0 / 326.7 MB, free: 5.969 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.097e-05/0.004142, allocations: 3 kB / 326.7 MB, free: 5.969 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.032e-06/0.004144, allocations: 4 kB / 326.7 MB, free: 5.965 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.276e-06/0.004147, allocations: 3.984 kB / 326.7 MB, free: 5.961 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.006e-06/0.00415, allocations: 0 / 326.7 MB, free: 5.961 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 4.506e-05/0.004195, allocations: 65.84 kB / 326.8 MB, free: 5.879 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.11e-07/0.004196, allocations: 0 / 326.8 MB, free: 5.879 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.492e-06/0.004197, allocations: 4 kB / 326.8 MB, free: 5.875 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.52e-07/0.004198, allocations: 7.938 kB / 326.8 MB, free: 5.867 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.616e-06/0.004202, allocations: 0 / 326.8 MB, free: 5.867 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.31e-07/0.004202, allocations: 0 / 326.8 MB, free: 5.867 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.41e-07/0.004203, allocations: 0 / 326.8 MB, free: 5.867 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.563e-05/0.004268, allocations: 120.4 kB / 326.9 MB, free: 5.719 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.64e-06/0.004274, allocations: 4.625 kB / 326.9 MB, free: 5.715 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.298e-06/0.004283, allocations: 0 / 326.9 MB, free: 5.715 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.238e-06/0.004287, allocations: 0 / 326.9 MB, free: 5.715 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.196e-06/0.004296, allocations: 0 / 326.9 MB, free: 5.715 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.697e-06/0.004299, allocations: 7.984 kB / 326.9 MB, free: 5.707 MB / 298.7 MB Notification: Performance of sorting global known variables: time 7.003e-06/0.004306, allocations: 8.891 kB / 326.9 MB, free: 5.695 MB / 298.7 MB Notification: Performance of sort global known variables: time 4e-08/0.004306, allocations: 0 / 326.9 MB, free: 5.695 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0001182/0.004425, allocations: 15.94 kB / 326.9 MB, free: 5.68 MB / 298.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.0003392/0.004764, allocations: 203.3 kB / 327.1 MB, free: 5.535 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 8.592e-05/0.00485, allocations: 115.7 kB / 327.2 MB, free: 5.395 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.124e-06/0.004852, allocations: 0 / 327.2 MB, free: 5.395 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 3.272e-05/0.004885, allocations: 89.95 kB / 327.3 MB, free: 5.285 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 5.778e-05/0.004942, allocations: 11.88 kB / 327.3 MB, free: 5.273 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001422/0.005084, allocations: 114 kB / 327.4 MB, free: 5.129 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.633e-05/0.005111, allocations: 55.36 kB / 327.5 MB, free: 5.055 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 5.531e-06/0.005116, allocations: 0 / 327.5 MB, free: 5.055 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.713e-05/0.005153, allocations: 55.36 kB / 327.6 MB, free: 5 MB / 298.7 MB Notification: Performance of SimCode: time 6.82e-07/0.005154, allocations: 0 / 327.6 MB, free: 5 MB / 298.7 MB Notification: Performance of Templates: time 0.002164/0.007319, allocations: 0.7811 MB / 328.3 MB, free: 4.23 MB / 298.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Utilities.TestReadFile.makefile [Timeout 660] (rm -f ModelicaTest_4.0.0_ModelicaTest.Utilities.TestReadFile.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Utilities.TestReadFile.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Utilities.TestReadFile.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Utilities.TestReadFile.sim & ./ModelicaTest_4.0.0_ModelicaTest.Utilities.TestReadFile -abortSlowSimulation -alarm=240 -s gbode -gbm=radauIIA3 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Utilities.TestReadFile.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Utilities.TestReadFile_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Utilities/TestReadFile/TestReadFile.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.929568168707192]