Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Utilities.TestWriteFile.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.001345/0.001345, allocations: 89.05 kB / 9.989 MB, free: 0.6992 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.00187/0.003215, allocations: 452 kB / 10.43 MB, free: 264 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.001119/0.001119, allocations: 161.1 kB / 11.33 MB, free: 2.84 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001443/0.002562, allocations: 483.5 kB / 11.8 MB, free: 2.363 MB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.073/1.073, allocations: 158.6 MB / 171.2 MB, free: 2.508 MB / 170.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.1853/1.258, allocations: 49.5 MB / 220.7 MB, free: 1.363 MB / 218.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.1388/0.1388, allocations: 32.35 MB / 253.8 MB, free: 236 kB / 250.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.02549/0.1643, allocations: 12.31 MB / 266.1 MB, free: 3.879 MB / 266.7 MB " [Timeout remaining time 180] Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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.TestWriteFile,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Utilities.TestWriteFile") translateModel(ModelicaTest.Utilities.TestWriteFile,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Utilities.TestWriteFile") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.734e-06/1.734e-06, allocations: 0 / 267.4 MB, free: 2.594 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.242e-05/2.416e-05, allocations: 6.25 kB / 267.4 MB, free: 2.586 MB / 266.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestWriteFile): time 0.001974/0.001998, allocations: 0.5401 MB / 267.9 MB, free: 2.039 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.0003767/0.002375, allocations: 227.2 kB / 268.1 MB, free: 1.816 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.471e-05/0.002389, allocations: 0 / 268.1 MB, free: 1.816 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 3.897e-06/0.002393, allocations: 0 / 268.1 MB, free: 1.816 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 9.02e-07/0.002394, allocations: 4 kB / 268.1 MB, free: 1.812 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001354/0.00253, allocations: 43.78 kB / 268.2 MB, free: 1.77 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 6.2e-05/0.002592, allocations: 0 / 268.2 MB, free: 1.77 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.674e-05/0.002628, allocations: 3.984 kB / 268.2 MB, free: 1.766 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 3.464e-05/0.002663, allocations: 4 kB / 268.2 MB, free: 1.762 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 3.236e-05/0.002695, allocations: 0 / 268.2 MB, free: 1.762 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 8.225e-06/0.002704, allocations: 3.938 kB / 268.2 MB, free: 1.758 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000136/0.00284, allocations: 55.83 kB / 268.2 MB, free: 1.703 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 8.175e-06/0.002848, allocations: 0 / 268.2 MB, free: 1.703 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 1.31e-05/0.002861, allocations: 0 / 268.2 MB, free: 1.703 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001186/0.002979, allocations: 43.89 kB / 268.3 MB, free: 1.66 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.09e-05/0.00299, allocations: 4 kB / 268.3 MB, free: 1.656 MB / 266.7 MB Notification: Performance of FrontEnd: time 6.21e-07/0.002991, allocations: 0 / 268.3 MB, free: 1.656 MB / 266.7 MB Notification: Performance of Transformations before backend: time 8.476e-06/0.002999, allocations: 0 / 268.3 MB, free: 1.656 MB / 266.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.000269/0.003268, allocations: 262.3 kB / 268.5 MB, free: 1.367 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.401e-05/0.003302, allocations: 12.03 kB / 268.6 MB, free: 1.355 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.173e-05/0.003334, allocations: 0.9375 kB / 268.6 MB, free: 1.355 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.01e-05/0.003404, allocations: 109.8 kB / 268.7 MB, free: 1.223 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.082e-05/0.003415, allocations: 384 / 268.7 MB, free: 1.223 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.089e-05/0.003426, allocations: 8.312 kB / 268.7 MB, free: 1.215 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.602e-05/0.003502, allocations: 51.97 kB / 268.7 MB, free: 1.152 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.604e-06/0.00351, allocations: 4.188 kB / 268.7 MB, free: 1.148 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.311e-06/0.003516, allocations: 4.375 kB / 268.7 MB, free: 1.145 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.45e-06/0.003521, allocations: 384 / 268.7 MB, free: 1.145 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.199e-05/0.003543, allocations: 33.62 kB / 268.8 MB, free: 1.105 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 7.755e-05/0.003621, allocations: 57.05 kB / 268.8 MB, free: 1.035 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.824e-05/0.003669, allocations: 56.36 kB / 268.9 MB, free: 0.9648 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.766e-05/0.003687, allocations: 34.5 kB / 268.9 MB, free: 0.9219 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.507e-06/0.00369, allocations: 0 / 268.9 MB, free: 0.9219 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.995e-05/0.00373, allocations: 60.27 kB / 269 MB, free: 0.8477 MB / 266.7 MB Notification: Performance of pre-optimization done (n=1): time 7.51e-07/0.003731, allocations: 0 / 269 MB, free: 0.8477 MB / 266.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001219/0.003853, allocations: 114.8 kB / 269.1 MB, free: 0.7109 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.573e-05/0.003919, allocations: 158.2 kB / 269.2 MB, free: 0.5195 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.375e-05/0.003952, allocations: 89.86 kB / 269.3 MB, free: 432 kB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.12e-05/0.003964, allocations: 25.7 kB / 269.4 MB, free: 400 kB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.207e-05/0.003986, allocations: 80.14 kB / 269.4 MB, free: 316 kB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.965e-05/0.004005, allocations: 0 / 269.4 MB, free: 316 kB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.936e-05/0.004035, allocations: 13.72 kB / 269.4 MB, free: 296 kB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001033/0.004138, allocations: 322.8 kB / 269.8 MB, free: 15.96 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.833e-05/0.004156, allocations: 33.64 kB / 269.8 MB, free: 15.93 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.587e-05/0.004172, allocations: 25.7 kB / 269.8 MB, free: 15.89 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.908e-05/0.004221, allocations: 64.45 kB / 269.9 MB, free: 15.82 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.144e-06/0.004223, allocations: 0 / 269.9 MB, free: 15.82 MB / 282.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.614e-05/0.00429, allocations: 89.09 kB / 270 MB, free: 15.71 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.461e-05/0.004324, allocations: 29.7 kB / 270 MB, free: 15.68 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.258e-06/0.004328, allocations: 0 / 270 MB, free: 15.68 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.06e-05/0.004339, allocations: 0 / 270 MB, free: 15.68 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.422e-06/0.00434, allocations: 0 / 270 MB, free: 15.68 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.118e-06/0.004345, allocations: 3.984 kB / 270 MB, free: 15.67 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.934e-05/0.004364, allocations: 4 kB / 270 MB, free: 15.67 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.774e-06/0.004372, allocations: 3.938 kB / 270 MB, free: 15.66 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.493e-05/0.004447, allocations: 151.4 kB / 270.2 MB, free: 15.5 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.695e-06/0.004454, allocations: 8 kB / 270.2 MB, free: 15.49 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.045e-06/0.004462, allocations: 3 kB / 270.2 MB, free: 15.49 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.122e-06/0.004463, allocations: 0 / 270.2 MB, free: 15.49 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.373e-06/0.004465, allocations: 0 / 270.2 MB, free: 15.49 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.495e-06/0.004467, allocations: 0 / 270.2 MB, free: 15.49 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 5.575e-05/0.004523, allocations: 65.84 kB / 270.2 MB, free: 15.41 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.82e-07/0.004524, allocations: 0 / 270.2 MB, free: 15.41 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.72e-07/0.004524, allocations: 0 / 270.2 MB, free: 15.41 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.017e-06/0.004528, allocations: 0 / 270.2 MB, free: 15.41 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.645e-06/0.004531, allocations: 4 kB / 270.2 MB, free: 15.41 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.392e-06/0.004537, allocations: 7.984 kB / 270.2 MB, free: 15.4 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.82e-07/0.004538, allocations: 0 / 270.2 MB, free: 15.4 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.32e-07/0.004539, allocations: 0 / 270.2 MB, free: 15.4 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.857e-05/0.004618, allocations: 116.5 kB / 270.4 MB, free: 15.25 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.395e-05/0.004632, allocations: 4 kB / 270.4 MB, free: 15.25 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.225e-06/0.00464, allocations: 0 / 270.4 MB, free: 15.25 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.578e-06/0.004649, allocations: 3.938 kB / 270.4 MB, free: 15.25 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.224e-06/0.004652, allocations: 0 / 270.4 MB, free: 15.25 MB / 282.7 MB Notification: Performance of sorting global known variables: time 7.053e-06/0.004659, allocations: 4.859 kB / 270.4 MB, free: 15.24 MB / 282.7 MB Notification: Performance of sort global known variables: time 6e-08/0.004659, allocations: 0 / 270.4 MB, free: 15.24 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0001924/0.004851, allocations: 19.97 kB / 270.4 MB, free: 15.22 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.00051/0.005361, allocations: 242.9 kB / 270.6 MB, free: 14.97 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 9.841e-05/0.005459, allocations: 119.7 kB / 270.7 MB, free: 14.83 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 3.306e-06/0.005463, allocations: 3.938 kB / 270.7 MB, free: 14.82 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 3.792e-05/0.005501, allocations: 85.97 kB / 270.8 MB, free: 14.72 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 5.445e-05/0.005555, allocations: 11.92 kB / 270.8 MB, free: 14.71 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001527/0.005708, allocations: 107.9 kB / 270.9 MB, free: 14.57 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.241e-05/0.00574, allocations: 55.36 kB / 271 MB, free: 14.49 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 5.43e-06/0.005746, allocations: 0 / 271 MB, free: 14.49 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.04e-05/0.005786, allocations: 63.55 kB / 271.1 MB, free: 14.43 MB / 282.7 MB Notification: Performance of SimCode: time 3.71e-07/0.005786, allocations: 0 / 271.1 MB, free: 14.43 MB / 282.7 MB Notification: Performance of Templates: time 0.00227/0.008056, allocations: 0.7009 MB / 271.8 MB, free: 13.73 MB / 282.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_3.2.3_ModelicaTest.Utilities.TestWriteFile.makefile [Timeout 660] (rm -f ModelicaTest_3.2.3_ModelicaTest.Utilities.TestWriteFile.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Utilities.TestWriteFile.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Utilities.TestWriteFile.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Utilities.TestWriteFile.sim & ./ModelicaTest_3.2.3_ModelicaTest.Utilities.TestWriteFile -abortSlowSimulation -alarm=240 -emit_protected -ignoreHideResult -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.Utilities.TestWriteFile.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Utilities.TestWriteFile_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Utilities/TestWriteFile/TestWriteFile.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.876865867525339]