Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0_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.0009305/0.0009305, allocations: 77.05 kB / 10 MB, free: 0.6836 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001348/0.002279, 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.0007554/0.0007554, allocations: 165.1 kB / 11.36 MB, free: 2.816 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0009984/0.001754, 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.132/1.132, allocations: 177.2 MB / 189.8 MB, free: 5.25 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.09498/1.227, 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.2837/0.2837, allocations: 34.25 MB / 278.4 MB, free: 15.28 MB / 282.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.04564/0.3293, allocations: 13.1 MB / 291.5 MB, free: 7.336 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.TestWriteFile,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.1.0_ModelicaTest.Utilities.TestWriteFile") translateModel(ModelicaTest.Utilities.TestWriteFile,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.1.0_ModelicaTest.Utilities.TestWriteFile") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.743e-06/1.743e-06, allocations: 0 / 292.8 MB, free: 6.238 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.549e-05/2.723e-05, allocations: 7.406 kB / 292.8 MB, free: 6.23 MB / 282.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestWriteFile): time 0.001625/0.001652, allocations: 0.5301 MB / 293.3 MB, free: 5.703 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.0003155/0.001968, allocations: 227.3 kB / 293.6 MB, free: 5.48 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.202e-05/0.00198, allocations: 3.938 kB / 293.6 MB, free: 5.477 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 4.588e-06/0.001984, allocations: 0 / 293.6 MB, free: 5.477 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 8.62e-07/0.001985, allocations: 0 / 293.6 MB, free: 5.477 MB / 282.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/Utilities.mo:289:3-320:16:writable] Warning: Pure function 'ModelicaTest.Utilities.WriteFile' contains a call to impure function 'Modelica.Utilities.Streams.print'. Notification: Performance of NFTyping.typeClassSections: time 0.0001605/0.002146, allocations: 47.77 kB / 293.6 MB, free: 5.43 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 5.756e-05/0.002203, allocations: 4.484 kB / 293.6 MB, free: 5.426 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.596e-05/0.002239, allocations: 8 kB / 293.6 MB, free: 5.418 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 3.436e-05/0.002273, allocations: 0 / 293.6 MB, free: 5.418 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 3.456e-05/0.002308, allocations: 0 / 293.6 MB, free: 5.418 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 6.242e-06/0.002314, allocations: 0 / 293.6 MB, free: 5.418 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001323/0.002447, allocations: 55.83 kB / 293.7 MB, free: 5.363 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 1.207e-05/0.002459, allocations: 3.938 kB / 293.7 MB, free: 5.359 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 1.688e-05/0.002475, allocations: 4 kB / 293.7 MB, free: 5.355 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001237/0.002599, allocations: 47.89 kB / 293.7 MB, free: 5.309 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.357e-05/0.002613, allocations: 0 / 293.7 MB, free: 5.309 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.212e-06/0.002614, allocations: 0 / 293.7 MB, free: 5.309 MB / 282.7 MB Notification: Performance of Transformations before backend: time 1.139e-05/0.002625, allocations: 4 kB / 293.7 MB, free: 5.305 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.0003019/0.002927, allocations: 258.3 kB / 294 MB, free: 5.02 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.576e-05/0.002963, allocations: 8.031 kB / 294 MB, free: 5.012 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.096e-05/0.003004, allocations: 0.9375 kB / 294 MB, free: 5.012 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.04e-05/0.003094, allocations: 109.7 kB / 294.1 MB, free: 4.879 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.049e-05/0.003105, allocations: 4.312 kB / 294.1 MB, free: 4.875 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.247e-06/0.003114, allocations: 384 / 294.1 MB, free: 4.875 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.013e-05/0.003184, allocations: 55.97 kB / 294.2 MB, free: 4.809 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.672e-06/0.003191, allocations: 192 / 294.2 MB, free: 4.809 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.571e-06/0.003196, allocations: 384 / 294.2 MB, free: 4.809 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.19e-06/0.003202, allocations: 384 / 294.2 MB, free: 4.809 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.869e-05/0.00322, allocations: 41.62 kB / 294.2 MB, free: 4.762 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 6.413e-05/0.003284, allocations: 53.05 kB / 294.3 MB, free: 4.695 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 3.912e-05/0.003324, allocations: 52.25 kB / 294.3 MB, free: 4.629 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.628e-05/0.00334, allocations: 34.62 kB / 294.3 MB, free: 4.586 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.707e-06/0.003344, allocations: 0 / 294.3 MB, free: 4.586 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.242e-05/0.003376, allocations: 56.27 kB / 294.4 MB, free: 4.516 MB / 282.7 MB Notification: Performance of pre-optimization done (n=1): time 5.81e-07/0.003377, allocations: 0 / 294.4 MB, free: 4.516 MB / 282.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001224/0.003499, allocations: 114.8 kB / 294.5 MB, free: 4.379 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.494e-05/0.003554, allocations: 154.2 kB / 294.7 MB, free: 4.191 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.279e-05/0.003587, allocations: 93.84 kB / 294.8 MB, free: 4.09 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 1.073e-05/0.003597, allocations: 33.83 kB / 294.8 MB, free: 4.051 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 1.831e-05/0.003616, allocations: 88.06 kB / 294.9 MB, free: 3.961 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.865e-05/0.003634, allocations: 0 / 294.9 MB, free: 3.961 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.34e-05/0.003658, allocations: 17.72 kB / 294.9 MB, free: 3.938 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 7.903e-05/0.003737, allocations: 318.8 kB / 295.2 MB, free: 3.617 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.97e-05/0.003757, allocations: 25.7 kB / 295.2 MB, free: 3.586 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.216e-05/0.003769, allocations: 29.7 kB / 295.3 MB, free: 3.551 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.392e-05/0.003813, allocations: 64.25 kB / 295.3 MB, free: 3.473 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.004e-06/0.003815, allocations: 0 / 295.3 MB, free: 3.473 MB / 282.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 5.602e-05/0.003871, allocations: 85.17 kB / 295.4 MB, free: 3.371 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.307e-05/0.003904, allocations: 33.7 kB / 295.4 MB, free: 3.332 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.689e-06/0.003908, allocations: 0 / 295.4 MB, free: 3.332 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.358e-05/0.003922, allocations: 0 / 295.4 MB, free: 3.332 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.765e-06/0.003925, allocations: 3.938 kB / 295.4 MB, free: 3.328 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.31e-06/0.00393, allocations: 3.984 kB / 295.4 MB, free: 3.324 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.242e-05/0.003953, allocations: 0.6875 kB / 295.4 MB, free: 3.324 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.356e-06/0.003961, allocations: 0 / 295.4 MB, free: 3.324 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 6.676e-05/0.004028, allocations: 139.5 kB / 295.6 MB, free: 3.172 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.282e-06/0.004034, allocations: 0 / 295.6 MB, free: 3.172 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.498e-06/0.004043, allocations: 11.03 kB / 295.6 MB, free: 3.164 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.405e-06/0.004046, allocations: 7.922 kB / 295.6 MB, free: 3.156 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.182e-06/0.004047, allocations: 0 / 295.6 MB, free: 3.156 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.615e-06/0.00405, allocations: 0 / 295.6 MB, free: 3.156 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 5.065e-05/0.0041, allocations: 69.83 kB / 295.7 MB, free: 3.07 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.483e-06/0.004102, allocations: 0 / 295.7 MB, free: 3.07 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.91e-07/0.004102, allocations: 4 kB / 295.7 MB, free: 3.066 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.622e-06/0.004109, allocations: 7.984 kB / 295.7 MB, free: 3.059 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.71e-07/0.00411, allocations: 0 / 295.7 MB, free: 3.059 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.838e-06/0.004114, allocations: 0 / 295.7 MB, free: 3.059 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.82e-07/0.004115, allocations: 0 / 295.7 MB, free: 3.059 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.443e-06/0.004116, allocations: 0 / 295.7 MB, free: 3.059 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.76e-05/0.004194, allocations: 124.4 kB / 295.8 MB, free: 2.906 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.091e-05/0.004204, allocations: 0 / 295.8 MB, free: 2.906 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.38e-06/0.00421, allocations: 0 / 295.8 MB, free: 2.906 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.092e-05/0.004221, allocations: 4 kB / 295.8 MB, free: 2.902 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.885e-06/0.004224, allocations: 0 / 295.8 MB, free: 2.902 MB / 282.7 MB Notification: Performance of sorting global known variables: time 8.276e-06/0.004232, allocations: 4.859 kB / 295.8 MB, free: 2.895 MB / 282.7 MB Notification: Performance of sort global known variables: time 5e-08/0.004232, allocations: 0 / 295.8 MB, free: 2.895 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0001286/0.004361, allocations: 19.92 kB / 295.8 MB, free: 2.875 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.0004548/0.004815, allocations: 220.9 kB / 296 MB, free: 2.723 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0001096/0.004925, allocations: 119.7 kB / 296.2 MB, free: 2.578 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 5.39e-06/0.00493, allocations: 0 / 296.2 MB, free: 2.578 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 4.091e-05/0.004971, allocations: 93.89 kB / 296.3 MB, free: 2.465 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 5.594e-05/0.005027, allocations: 7.938 kB / 296.3 MB, free: 2.457 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001673/0.005194, allocations: 117.1 kB / 296.4 MB, free: 2.309 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.991e-05/0.005224, allocations: 51.36 kB / 296.4 MB, free: 2.238 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 6.011e-06/0.00523, allocations: 0 / 296.4 MB, free: 2.238 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.585e-05/0.005266, allocations: 51.38 kB / 296.5 MB, free: 2.188 MB / 282.7 MB Notification: Performance of SimCode: time 5.31e-07/0.005267, allocations: 0 / 296.5 MB, free: 2.188 MB / 282.7 MB Notification: Performance of Templates: time 0.002471/0.007738, allocations: 0.703 MB / 297.2 MB, free: 1.488 MB / 282.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.1.0_ModelicaTest.Utilities.TestWriteFile.makefile [Timeout 660] (rm -f ModelicaTest_4.1.0_ModelicaTest.Utilities.TestWriteFile.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.Utilities.TestWriteFile.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.Utilities.TestWriteFile.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.Utilities.TestWriteFile.sim & ./ModelicaTest_4.1.0_ModelicaTest.Utilities.TestWriteFile -abortSlowSimulation -alarm=240 -emit_protected -ignoreHideResult -lv LOG_STATS > ModelicaTest_4.1.0_ModelicaTest.Utilities.TestWriteFile.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_4.1.0_ModelicaTest.Utilities.TestWriteFile_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/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: 3.0847600381821394]