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.001177/0.001177, allocations: 76.19 kB / 9.911 MB, free: 0.7773 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001528/0.002705, allocations: 447.8 kB / 10.35 MB, free: 348 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.0007002/0.0007002, allocations: 161.1 kB / 11.23 MB, free: 2.938 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0008474/0.001548, allocations: 463.6 kB / 11.69 MB, free: 2.48 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 0.9377/0.9377, allocations: 158.6 MB / 171 MB, free: 2.176 MB / 170.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.1749/1.113, allocations: 49.5 MB / 220.5 MB, free: 5.27 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.1307/0.1307, allocations: 32.35 MB / 253.6 MB, free: 4.16 MB / 250.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.02026/0.151, allocations: 12.29 MB / 265.9 MB, free: 7.832 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.944e-06/1.944e-06, allocations: 0 / 267.2 MB, free: 6.574 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.543e-05/1.737e-05, allocations: 10.25 kB / 267.2 MB, free: 6.562 MB / 266.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestWriteFile): time 0.001137/0.001154, allocations: 0.54 MB / 267.7 MB, free: 6.016 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.0003855/0.00154, allocations: 223.3 kB / 267.9 MB, free: 5.797 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.192e-05/0.001552, allocations: 3.938 kB / 267.9 MB, free: 5.793 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 3.246e-06/0.001555, allocations: 0 / 267.9 MB, free: 5.793 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 7.21e-07/0.001556, allocations: 4 kB / 268 MB, free: 5.789 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001274/0.001683, allocations: 39.83 kB / 268 MB, free: 5.75 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 5.727e-05/0.00174, allocations: 3.938 kB / 268 MB, free: 5.746 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.492e-05/0.001775, allocations: 4 kB / 268 MB, free: 5.742 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 3.073e-05/0.001806, allocations: 3.984 kB / 268 MB, free: 5.738 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 3.145e-05/0.001838, allocations: 3.984 kB / 268 MB, free: 5.734 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 7.124e-06/0.001845, allocations: 0 / 268 MB, free: 5.734 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001205/0.001965, allocations: 55.89 kB / 268.1 MB, free: 5.68 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 6.572e-06/0.001972, allocations: 3.938 kB / 268.1 MB, free: 5.676 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 1.172e-05/0.001983, allocations: 0 / 268.1 MB, free: 5.676 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001128/0.002096, allocations: 43.84 kB / 268.1 MB, free: 5.633 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.494e-05/0.002111, allocations: 0 / 268.1 MB, free: 5.633 MB / 266.7 MB Notification: Performance of FrontEnd: time 4.81e-07/0.002112, allocations: 0 / 268.1 MB, free: 5.633 MB / 266.7 MB Notification: Performance of Transformations before backend: time 1.567e-05/0.002127, allocations: 0 / 268.1 MB, free: 5.633 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.002396, allocations: 258.3 kB / 268.4 MB, free: 5.348 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.029e-05/0.002427, allocations: 8.031 kB / 268.4 MB, free: 5.34 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.065e-05/0.002457, allocations: 0.9375 kB / 268.4 MB, free: 5.34 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003073/0.00553, allocations: 101.8 kB / 268.5 MB, free: 5.215 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.838e-05/0.005548, allocations: 8.375 kB / 268.5 MB, free: 5.207 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.126e-05/0.00556, allocations: 384 / 268.5 MB, free: 5.207 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.076e-05/0.00564, allocations: 67.89 kB / 268.5 MB, free: 5.129 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.503e-06/0.005647, allocations: 192 / 268.5 MB, free: 5.129 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.761e-06/0.005653, allocations: 384 / 268.5 MB, free: 5.129 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.941e-06/0.005659, allocations: 384 / 268.5 MB, free: 5.129 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.332e-05/0.005682, allocations: 33.64 kB / 268.6 MB, free: 5.09 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 7.221e-05/0.005754, allocations: 53.05 kB / 268.6 MB, free: 5.023 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.582e-05/0.0058, allocations: 44.31 kB / 268.7 MB, free: 4.965 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.992e-05/0.00582, allocations: 38.55 kB / 268.7 MB, free: 4.918 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.347e-06/0.005823, allocations: 4 kB / 268.7 MB, free: 4.914 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.253e-05/0.005866, allocations: 64.27 kB / 268.8 MB, free: 4.836 MB / 266.7 MB Notification: Performance of pre-optimization done (n=1): time 7.32e-07/0.005866, allocations: 0 / 268.8 MB, free: 4.836 MB / 266.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001348/0.006001, allocations: 114.8 kB / 268.9 MB, free: 4.699 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.129e-05/0.006043, allocations: 81.11 kB / 269 MB, free: 4.602 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.603e-05/0.006079, allocations: 89.86 kB / 269.1 MB, free: 4.504 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 8.717e-06/0.006087, allocations: 25.7 kB / 269.1 MB, free: 4.473 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.424e-05/0.006112, allocations: 84.08 kB / 269.2 MB, free: 4.387 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.769e-05/0.006129, allocations: 3.984 kB / 269.2 MB, free: 4.383 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.105e-05/0.00616, allocations: 13.84 kB / 269.2 MB, free: 4.363 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 8.941e-05/0.00625, allocations: 318.8 kB / 269.5 MB, free: 4.043 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001516/0.006401, allocations: 29.7 kB / 269.5 MB, free: 4.008 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.806e-05/0.006419, allocations: 29.64 kB / 269.5 MB, free: 3.973 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.314e-05/0.006472, allocations: 64.25 kB / 269.6 MB, free: 3.895 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.893e-06/0.006474, allocations: 0 / 269.6 MB, free: 3.895 MB / 266.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.956e-05/0.006544, allocations: 85.11 kB / 269.7 MB, free: 3.793 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.67e-05/0.006591, allocations: 33.69 kB / 269.7 MB, free: 3.754 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.891e-06/0.006596, allocations: 0 / 269.7 MB, free: 3.754 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.341e-05/0.00661, allocations: 0 / 269.7 MB, free: 3.754 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.641e-06/0.006616, allocations: 4.094 kB / 269.7 MB, free: 3.75 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.998e-06/0.00662, allocations: 4 kB / 269.7 MB, free: 3.746 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.922e-05/0.006639, allocations: 0 / 269.7 MB, free: 3.746 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.528e-06/0.006648, allocations: 3.984 kB / 269.7 MB, free: 3.742 MB / 266.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.336e-05/0.006722, allocations: 143.5 kB / 269.9 MB, free: 3.586 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.777e-06/0.00673, allocations: 7.922 kB / 269.9 MB, free: 3.578 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.228e-06/0.00674, allocations: 3 kB / 269.9 MB, free: 3.578 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.836e-06/0.006742, allocations: 3.984 kB / 269.9 MB, free: 3.574 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.189e-06/0.006748, allocations: 4 kB / 269.9 MB, free: 3.57 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.697e-06/0.006751, allocations: 0 / 269.9 MB, free: 3.57 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 5.777e-05/0.006809, allocations: 69.84 kB / 270 MB, free: 3.484 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.01e-07/0.00681, allocations: 0 / 270 MB, free: 3.484 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.61e-07/0.00681, allocations: 0 / 270 MB, free: 3.484 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.12e-06/0.006816, allocations: 3.953 kB / 270 MB, free: 3.48 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.397e-06/0.006819, allocations: 4 kB / 270 MB, free: 3.477 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.549e-06/0.006824, allocations: 0 / 270 MB, free: 3.477 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.91e-07/0.006824, allocations: 0 / 270 MB, free: 3.477 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.012e-06/0.006825, allocations: 0 / 270 MB, free: 3.477 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.357e-05/0.006909, allocations: 112.5 kB / 270.1 MB, free: 3.336 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.854e-05/0.006927, allocations: 4 kB / 270.1 MB, free: 3.332 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.965e-06/0.006935, allocations: 4.031 kB / 270.1 MB, free: 3.328 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.269e-05/0.006948, allocations: 0 / 270.1 MB, free: 3.328 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.526e-06/0.006951, allocations: 3.984 kB / 270.1 MB, free: 3.324 MB / 266.7 MB Notification: Performance of sorting global known variables: time 1.028e-05/0.006962, allocations: 8.797 kB / 270.1 MB, free: 3.312 MB / 266.7 MB Notification: Performance of sort global known variables: time 6e-08/0.006962, allocations: 3.938 kB / 270.1 MB, free: 3.309 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0001989/0.007161, allocations: 19.94 kB / 270.1 MB, free: 3.289 MB / 266.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.0005579/0.007719, allocations: 246.8 kB / 270.4 MB, free: 3.039 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 9.959e-05/0.007818, allocations: 123.7 kB / 270.5 MB, free: 2.891 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 3.527e-06/0.007822, allocations: 0 / 270.5 MB, free: 2.891 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 3.599e-05/0.007858, allocations: 85.97 kB / 270.6 MB, free: 2.785 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 5.661e-05/0.007914, allocations: 12.06 kB / 270.6 MB, free: 2.773 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001554/0.00807, allocations: 112 kB / 270.7 MB, free: 2.629 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3e-05/0.0081, allocations: 51.36 kB / 270.7 MB, free: 2.559 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 5.4e-06/0.008105, allocations: 0 / 270.7 MB, free: 2.559 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.811e-05/0.008143, allocations: 51.38 kB / 270.8 MB, free: 2.508 MB / 266.7 MB Notification: Performance of SimCode: time 5.01e-07/0.008144, allocations: 0 / 270.8 MB, free: 2.508 MB / 266.7 MB Notification: Performance of Templates: time 0.002179/0.01032, allocations: 0.6961 MB / 271.5 MB, free: 1.812 MB / 266.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,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.694992852397263]