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.001115/0.001115, allocations: 76.17 kB / 9.931 MB, free: 0.7578 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001495/0.00261, allocations: 449.7 kB / 10.37 MB, free: 328 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.001036/0.001036, allocations: 169.1 kB / 11.26 MB, free: 2.91 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001216/0.002252, allocations: 455.6 kB / 11.71 MB, free: 2.461 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 0.9053/0.9053, allocations: 177.2 MB / 189.6 MB, free: 5.301 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.08961/0.9949, allocations: 53.64 MB / 243.2 MB, free: 15.58 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.2683/0.2683, allocations: 34.26 MB / 278.2 MB, free: 15.29 MB / 282.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.02568/0.294, allocations: 13.1 MB / 291.3 MB, free: 7.371 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.423e-06/1.423e-06, allocations: 0 / 292.6 MB, free: 6.332 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.096e-05/2.238e-05, allocations: 4.203 kB / 292.6 MB, free: 6.328 MB / 282.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestWriteFile): time 0.001362/0.001384, allocations: 0.5378 MB / 293.1 MB, free: 5.793 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.000284/0.001668, allocations: 231.3 kB / 293.4 MB, free: 5.566 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.145e-05/0.00168, allocations: 0 / 293.4 MB, free: 5.566 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 3.958e-06/0.001684, allocations: 4 kB / 293.4 MB, free: 5.562 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 2.404e-06/0.001686, allocations: 3.938 kB / 293.4 MB, free: 5.559 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.0001255/0.001811, allocations: 39.77 kB / 293.4 MB, free: 5.52 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 5.854e-05/0.00187, allocations: 11.98 kB / 293.4 MB, free: 5.508 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.185e-05/0.001902, allocations: 0 / 293.4 MB, free: 5.508 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.983e-05/0.001932, allocations: 0 / 293.4 MB, free: 5.508 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 2.826e-05/0.00196, allocations: 4 kB / 293.4 MB, free: 5.504 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 6.483e-06/0.001966, allocations: 0 / 293.4 MB, free: 5.504 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001083/0.002075, allocations: 51.88 kB / 293.5 MB, free: 5.453 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 7.124e-06/0.002082, allocations: 4 kB / 293.5 MB, free: 5.449 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 1.303e-05/0.002095, allocations: 0.5 kB / 293.5 MB, free: 5.449 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001029/0.002198, allocations: 51.78 kB / 293.5 MB, free: 5.398 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.648e-05/0.002214, allocations: 3.984 kB / 293.5 MB, free: 5.395 MB / 282.7 MB Notification: Performance of FrontEnd: time 5.31e-07/0.002215, allocations: 0 / 293.5 MB, free: 5.395 MB / 282.7 MB Notification: Performance of Transformations before backend: time 1.39e-05/0.002229, allocations: 0 / 293.5 MB, free: 5.395 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.0002556/0.002484, allocations: 250.3 kB / 293.8 MB, free: 5.117 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.301e-05/0.002517, allocations: 12.03 kB / 293.8 MB, free: 5.105 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.297e-05/0.00255, allocations: 0.9375 kB / 293.8 MB, free: 5.105 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 5.952e-05/0.00261, allocations: 101.8 kB / 293.9 MB, free: 4.98 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.037e-05/0.00262, allocations: 384 / 293.9 MB, free: 4.98 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.075e-06/0.002628, allocations: 4.375 kB / 293.9 MB, free: 4.977 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.632e-05/0.002705, allocations: 67.89 kB / 294 MB, free: 4.898 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.321e-06/0.002711, allocations: 192 / 294 MB, free: 4.898 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.431e-06/0.002716, allocations: 4.375 kB / 294 MB, free: 4.895 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.069e-06/0.002721, allocations: 384 / 294 MB, free: 4.895 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.79e-05/0.002739, allocations: 29.64 kB / 294 MB, free: 4.859 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 6.65e-05/0.002806, allocations: 57.05 kB / 294 MB, free: 4.789 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.076e-05/0.002847, allocations: 40.28 kB / 294.1 MB, free: 4.734 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.977e-05/0.002866, allocations: 38.64 kB / 294.1 MB, free: 4.688 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.607e-06/0.00287, allocations: 0 / 294.1 MB, free: 4.688 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.45e-05/0.002904, allocations: 64.25 kB / 294.2 MB, free: 4.609 MB / 282.7 MB Notification: Performance of pre-optimization done (n=1): time 7.11e-07/0.002905, allocations: 3.938 kB / 294.2 MB, free: 4.605 MB / 282.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001196/0.003025, allocations: 114.8 kB / 294.3 MB, free: 4.469 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.401e-05/0.003069, allocations: 89.09 kB / 294.4 MB, free: 4.363 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.728e-05/0.003106, allocations: 89.86 kB / 294.5 MB, free: 4.266 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 1.211e-05/0.003118, allocations: 25.7 kB / 294.5 MB, free: 4.234 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 1.987e-05/0.003138, allocations: 80.14 kB / 294.6 MB, free: 4.152 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.716e-05/0.003155, allocations: 0 / 294.6 MB, free: 4.152 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.643e-05/0.003182, allocations: 13.72 kB / 294.6 MB, free: 4.133 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 7.671e-05/0.003258, allocations: 318.8 kB / 294.9 MB, free: 3.812 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.96e-05/0.003278, allocations: 25.7 kB / 294.9 MB, free: 3.781 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.381e-05/0.003292, allocations: 33.83 kB / 295 MB, free: 3.742 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.732e-05/0.003339, allocations: 68.19 kB / 295 MB, free: 3.66 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.833e-06/0.003341, allocations: 0 / 295 MB, free: 3.66 MB / 282.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 5.06e-05/0.003391, allocations: 81.11 kB / 295.1 MB, free: 3.562 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.477e-05/0.003426, allocations: 37.69 kB / 295.1 MB, free: 3.52 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.849e-06/0.003431, allocations: 0 / 295.1 MB, free: 3.52 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.077e-06/0.00344, allocations: 0 / 295.1 MB, free: 3.52 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.078e-06/0.003444, allocations: 0 / 295.1 MB, free: 3.52 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.096e-06/0.003447, allocations: 4 kB / 295.1 MB, free: 3.516 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.53e-05/0.003463, allocations: 0.6875 kB / 295.1 MB, free: 3.516 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.454e-06/0.00347, allocations: 8.094 kB / 295.2 MB, free: 3.508 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 5.325e-05/0.003523, allocations: 139.5 kB / 295.3 MB, free: 3.355 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.889e-06/0.003528, allocations: 4 kB / 295.3 MB, free: 3.352 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.113e-06/0.003535, allocations: 3 kB / 295.3 MB, free: 3.352 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.092e-06/0.003536, allocations: 0 / 295.3 MB, free: 3.352 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.112e-06/0.003538, allocations: 0 / 295.3 MB, free: 3.352 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.117e-06/0.003542, allocations: 3.984 kB / 295.3 MB, free: 3.348 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 4.174e-05/0.003583, allocations: 73.78 kB / 295.4 MB, free: 3.258 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.41e-07/0.003584, allocations: 0 / 295.4 MB, free: 3.258 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.12e-07/0.003585, allocations: 0 / 295.4 MB, free: 3.258 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.318e-06/0.003589, allocations: 7.984 kB / 295.4 MB, free: 3.25 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.42e-07/0.00359, allocations: 0 / 295.4 MB, free: 3.25 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.516e-06/0.003593, allocations: 0 / 295.4 MB, free: 3.25 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.41e-07/0.003594, allocations: 4 kB / 295.4 MB, free: 3.246 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.91e-07/0.003595, allocations: 0 / 295.4 MB, free: 3.246 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.202e-05/0.003657, allocations: 112.5 kB / 295.5 MB, free: 3.105 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.045e-05/0.003667, allocations: 3.984 kB / 295.5 MB, free: 3.102 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.811e-06/0.003673, allocations: 7.938 kB / 295.5 MB, free: 3.094 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.993e-06/0.00368, allocations: 0 / 295.5 MB, free: 3.094 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.004e-06/0.003682, allocations: 0 / 295.5 MB, free: 3.094 MB / 282.7 MB Notification: Performance of sorting global known variables: time 5.441e-06/0.003687, allocations: 4.859 kB / 295.5 MB, free: 3.086 MB / 282.7 MB Notification: Performance of sort global known variables: time 5e-08/0.003687, allocations: 4.031 kB / 295.5 MB, free: 3.082 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0001176/0.003805, allocations: 23.92 kB / 295.5 MB, free: 3.059 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.0003945/0.004199, allocations: 228.7 kB / 295.8 MB, free: 2.898 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 8.29e-05/0.004282, allocations: 111.7 kB / 295.9 MB, free: 2.762 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 3.977e-06/0.004286, allocations: 3.984 kB / 295.9 MB, free: 2.758 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 2.787e-05/0.004314, allocations: 85.97 kB / 296 MB, free: 2.652 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 4.485e-05/0.004359, allocations: 7.938 kB / 296 MB, free: 2.645 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001411/0.0045, allocations: 113.1 kB / 296.1 MB, free: 2.5 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.546e-05/0.004525, allocations: 59.48 kB / 296.1 MB, free: 2.422 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 5.049e-06/0.004531, allocations: 0 / 296.1 MB, free: 2.422 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.203e-05/0.004563, allocations: 51.38 kB / 296.2 MB, free: 2.371 MB / 282.7 MB Notification: Performance of SimCode: time 6.81e-07/0.004563, allocations: 0 / 296.2 MB, free: 2.371 MB / 282.7 MB Notification: Performance of Templates: time 0.002182/0.006745, allocations: 0.6898 MB / 296.9 MB, free: 1.688 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,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.7789441775530577]