Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Utilities.TestWriteFile.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001424/0.001424, allocations: 84.73 kB / 21.5 MB, free: 2.992 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009575/0.0009575, allocations: 166.3 kB / 24.91 MB, free: 8.77 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 0.9331/0.9331, allocations: 177 MB / 205.2 MB, free: 5.078 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2634/0.2634, allocations: 34.86 MB / 296.6 MB, free: 488 kB / 266.7 MB " [Timeout remaining time 180] Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(ModelicaTest.Utilities.TestWriteFile,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Utilities.TestWriteFile") translateModel(ModelicaTest.Utilities.TestWriteFile,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Utilities.TestWriteFile") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.744e-06/1.744e-06, allocations: 0 / 325.9 MB, free: 7.219 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.177e-05/3.351e-05, allocations: 4.609 kB / 325.9 MB, free: 7.215 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestWriteFile): time 0.001853/0.001886, allocations: 498.8 kB / 326.4 MB, free: 6.73 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0005526/0.002439, allocations: 223.3 kB / 326.6 MB, free: 6.512 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.678e-05/0.002466, allocations: 0 / 326.6 MB, free: 6.512 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 1.591e-05/0.002482, allocations: 0 / 326.6 MB, free: 6.512 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 7.163e-06/0.002489, allocations: 0 / 326.6 MB, free: 6.512 MB / 298.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/Utilities.mo:300:3-331: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.0003556/0.002844, allocations: 47.77 kB / 326.6 MB, free: 6.465 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 5.544e-05/0.0029, allocations: 0 / 326.6 MB, free: 6.465 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.484e-05/0.002945, allocations: 12.55 kB / 326.6 MB, free: 6.453 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 3.371e-05/0.002978, allocations: 4 kB / 326.6 MB, free: 6.449 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 3.145e-05/0.00301, allocations: 0 / 326.6 MB, free: 6.449 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 7.354e-06/0.003017, allocations: 0 / 326.6 MB, free: 6.449 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001417/0.003159, allocations: 51.89 kB / 326.7 MB, free: 6.398 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 9.548e-06/0.003168, allocations: 3.984 kB / 326.7 MB, free: 6.395 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 1.641e-05/0.003185, allocations: 0 / 326.7 MB, free: 6.395 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001239/0.003309, allocations: 55.81 kB / 326.8 MB, free: 6.34 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.565e-06/0.003311, allocations: 0 / 326.8 MB, free: 6.34 MB / 298.7 MB Notification: Performance of FrontEnd: time 9.01e-07/0.003312, allocations: 0 / 326.8 MB, free: 6.34 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.727e-06/0.003316, allocations: 4 kB / 326.8 MB, free: 6.336 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.0002737/0.00359, allocations: 246.3 kB / 327 MB, free: 6.062 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.933e-05/0.003629, allocations: 12.03 kB / 327 MB, free: 6.051 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.615e-05/0.003655, allocations: 0.9375 kB / 327 MB, free: 6.051 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 6.78e-05/0.003723, allocations: 109.7 kB / 327.1 MB, free: 5.918 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.039e-05/0.003733, allocations: 384 / 327.1 MB, free: 5.918 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.037e-05/0.003744, allocations: 384 / 327.1 MB, free: 5.918 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.866e-05/0.003832, allocations: 67.94 kB / 327.2 MB, free: 5.84 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.713e-06/0.003839, allocations: 192 / 327.2 MB, free: 5.84 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.107e-06/0.003848, allocations: 4.375 kB / 327.2 MB, free: 5.836 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.78e-06/0.003854, allocations: 384 / 327.2 MB, free: 5.836 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.253e-05/0.003876, allocations: 37.58 kB / 327.2 MB, free: 5.793 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 8.302e-05/0.003959, allocations: 61.05 kB / 327.3 MB, free: 5.719 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 5.994e-05/0.004019, allocations: 44.31 kB / 327.3 MB, free: 5.66 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.712e-05/0.004037, allocations: 30.56 kB / 327.4 MB, free: 5.621 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.667e-06/0.00404, allocations: 0 / 327.4 MB, free: 5.621 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.989e-05/0.00408, allocations: 64.31 kB / 327.4 MB, free: 5.543 MB / 298.7 MB Notification: Performance of pre-optimization done (n=1): time 9.72e-07/0.004081, allocations: 0 / 327.4 MB, free: 5.543 MB / 298.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001304/0.004211, allocations: 110.8 kB / 327.5 MB, free: 5.41 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.399e-05/0.004255, allocations: 81.11 kB / 327.6 MB, free: 5.312 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.023e-05/0.004296, allocations: 89.86 kB / 327.7 MB, free: 5.215 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.126e-05/0.004307, allocations: 29.81 kB / 327.7 MB, free: 5.18 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.638e-05/0.004333, allocations: 84.14 kB / 327.8 MB, free: 5.094 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.805e-05/0.004351, allocations: 1.375 kB / 327.8 MB, free: 5.094 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.889e-05/0.00438, allocations: 17.72 kB / 327.8 MB, free: 5.07 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 9.456e-05/0.004475, allocations: 314.8 kB / 328.1 MB, free: 4.754 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.884e-05/0.004494, allocations: 29.7 kB / 328.2 MB, free: 4.719 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.572e-05/0.004509, allocations: 25.7 kB / 328.2 MB, free: 4.688 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.046e-05/0.00456, allocations: 64.25 kB / 328.3 MB, free: 4.609 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.435e-06/0.004562, allocations: 0 / 328.3 MB, free: 4.609 MB / 298.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.514e-05/0.004637, allocations: 85.05 kB / 328.3 MB, free: 4.508 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.429e-05/0.004672, allocations: 37.8 kB / 328.4 MB, free: 4.465 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.11e-06/0.004677, allocations: 0 / 328.4 MB, free: 4.465 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.36e-05/0.00469, allocations: 0 / 328.4 MB, free: 4.465 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.489e-06/0.004695, allocations: 0 / 328.4 MB, free: 4.465 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.334e-06/0.004697, allocations: 0 / 328.4 MB, free: 4.465 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.334e-05/0.004711, allocations: 0 / 328.4 MB, free: 4.465 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.414e-06/0.004718, allocations: 3.984 kB / 328.4 MB, free: 4.461 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 7.543e-05/0.004793, allocations: 143.5 kB / 328.5 MB, free: 4.305 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.222e-06/0.0048, allocations: 0 / 328.5 MB, free: 4.305 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.998e-06/0.00481, allocations: 10.94 kB / 328.5 MB, free: 4.297 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.764e-06/0.004811, allocations: 4 kB / 328.5 MB, free: 4.293 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.583e-06/0.004813, allocations: 0 / 328.5 MB, free: 4.293 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.785e-06/0.004816, allocations: 0 / 328.5 MB, free: 4.293 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 5.896e-05/0.004875, allocations: 62.59 kB / 328.6 MB, free: 4.215 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.745e-06/0.004877, allocations: 4 kB / 328.6 MB, free: 4.211 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.255e-06/0.00488, allocations: 3.984 kB / 328.6 MB, free: 4.207 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.863e-06/0.004882, allocations: 0 / 328.6 MB, free: 4.207 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.108e-06/0.004886, allocations: 0 / 328.6 MB, free: 4.207 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.11e-07/0.004886, allocations: 0 / 328.6 MB, free: 4.207 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.152e-06/0.004888, allocations: 3.938 kB / 328.6 MB, free: 4.203 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.32e-05/0.004981, allocations: 128.5 kB / 328.7 MB, free: 4.047 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.28e-06/0.004986, allocations: 4.344 kB / 328.7 MB, free: 4.043 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.203e-05/0.004998, allocations: 0 / 328.7 MB, free: 4.043 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.005e-05/0.005008, allocations: 4 kB / 328.7 MB, free: 4.039 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.865e-06/0.005016, allocations: 0 / 328.7 MB, free: 4.039 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.286e-06/0.005019, allocations: 4 kB / 328.7 MB, free: 4.035 MB / 298.7 MB Notification: Performance of sorting global known variables: time 7.454e-06/0.005027, allocations: 4.859 kB / 328.8 MB, free: 4.027 MB / 298.7 MB Notification: Performance of sort global known variables: time 6.1e-08/0.005027, allocations: 0 / 328.8 MB, free: 4.027 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002071/0.005234, allocations: 15.94 kB / 328.8 MB, free: 4.012 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.0005177/0.005751, allocations: 209.4 kB / 329 MB, free: 3.859 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0001189/0.00587, allocations: 119.6 kB / 329.1 MB, free: 3.715 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.254e-06/0.005873, allocations: 0 / 329.1 MB, free: 3.715 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 4.107e-05/0.005914, allocations: 85.97 kB / 329.2 MB, free: 3.609 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 5.732e-05/0.005971, allocations: 14.27 kB / 329.2 MB, free: 3.598 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001989/0.00617, allocations: 104.9 kB / 329.3 MB, free: 3.461 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.883e-05/0.006209, allocations: 51.36 kB / 329.3 MB, free: 3.391 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 6.612e-06/0.006215, allocations: 0 / 329.3 MB, free: 3.391 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.334e-05/0.006269, allocations: 59.36 kB / 329.4 MB, free: 3.332 MB / 298.7 MB Notification: Performance of SimCode: time 9.52e-07/0.00627, allocations: 3.938 kB / 329.4 MB, free: 3.328 MB / 298.7 MB Notification: Performance of Templates: time 0.002975/0.009244, allocations: 0.6787 MB / 330.1 MB, free: 2.652 MB / 298.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_trunk_ModelicaTest.Utilities.TestWriteFile.makefile [Timeout 660] (rm -f ModelicaTest_trunk_ModelicaTest.Utilities.TestWriteFile.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Utilities.TestWriteFile.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Utilities.TestWriteFile.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Utilities.TestWriteFile.sim & ./ModelicaTest_trunk_ModelicaTest.Utilities.TestWriteFile -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Utilities.TestWriteFile.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_trunk_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.883861686103046]