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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) 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=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Utilities.TestWriteFile") translateModel(ModelicaTest.Utilities.TestWriteFile,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Utilities.TestWriteFile") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001142/0.001142, allocations: 113.1 kB / 18.45 MB, free: 4.645 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001187/0.001187, allocations: 208.9 kB / 19.4 MB, free: 3.699 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.236/1.236, allocations: 227.4 MB / 247.6 MB, free: 10.48 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2018/0.2018, allocations: 46.09 MB / 344.9 MB, free: 11.52 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001404/0.001404, allocations: 79.88 kB / 482 MB, free: 4.105 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2841/0.2855, allocations: 62.44 MB / 0.5316 GB, free: 13.61 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestWriteFile): time 0.00136/0.2869, allocations: 484.2 kB / 0.5321 GB, free: 13.26 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.000459/0.2874, allocations: 208.4 kB / 0.5323 GB, free: 13.11 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.995e-05/0.2874, allocations: 3.938 kB / 0.5323 GB, free: 13.11 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.59e-05/0.2875, allocations: 4 kB / 0.5323 GB, free: 13.11 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 4.899e-06/0.2875, allocations: 0 / 0.5323 GB, free: 13.11 MB / 398.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/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.0002671/0.2877, allocations: 43.98 kB / 0.5323 GB, free: 13.07 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 5.161e-05/0.2878, allocations: 3.188 kB / 0.5323 GB, free: 13.07 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.981e-05/0.2878, allocations: 4 kB / 0.5323 GB, free: 13.07 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.604e-05/0.2879, allocations: 3.984 kB / 0.5324 GB, free: 13.07 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.983e-05/0.2879, allocations: 1.062 kB / 0.5324 GB, free: 13.07 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 5.159e-06/0.2879, allocations: 0 / 0.5324 GB, free: 13.07 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001053/0.288, allocations: 51.58 kB / 0.5324 GB, free: 13.04 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 7.514e-06/0.288, allocations: 3.984 kB / 0.5324 GB, free: 13.04 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 1.576e-05/0.288, allocations: 0 / 0.5324 GB, free: 13.04 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001066/0.2882, allocations: 54.09 kB / 0.5325 GB, free: 13 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.787e-06/0.2882, allocations: 0 / 0.5325 GB, free: 13 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.313e-06/0.2882, allocations: 0 / 0.5325 GB, free: 13 MB / 398.1 MB Notification: Performance of Transformations before backend: time 4.248e-06/0.2882, allocations: 0 / 0.5325 GB, free: 13 MB / 398.1 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.0002879/0.2885, allocations: 347.7 kB / 0.5328 GB, free: 12.62 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.056e-05/0.2885, allocations: 6.875 kB / 0.5328 GB, free: 12.62 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.752e-05/0.2885, allocations: 4.938 kB / 0.5328 GB, free: 12.61 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.569e-05/0.2886, allocations: 164.3 kB / 0.533 GB, free: 12.41 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.835e-06/0.2886, allocations: 1.75 kB / 0.533 GB, free: 12.41 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.688e-06/0.2887, allocations: 4.375 kB / 0.533 GB, free: 12.41 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 6.616e-05/0.2887, allocations: 33 kB / 0.533 GB, free: 12.38 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.67e-06/0.2887, allocations: 192 / 0.533 GB, free: 12.38 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.496e-06/0.2888, allocations: 5.312 kB / 0.533 GB, free: 12.37 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.262e-06/0.2888, allocations: 3.984 kB / 0.533 GB, free: 12.37 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.503e-05/0.2888, allocations: 1.375 kB / 0.533 GB, free: 12.37 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001109/0.2889, allocations: 143.1 kB / 0.5331 GB, free: 12.18 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.099e-05/0.2889, allocations: 23.89 kB / 0.5332 GB, free: 12.15 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.271e-05/0.289, allocations: 14.22 kB / 0.5332 GB, free: 12.13 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.647e-06/0.289, allocations: 1.375 kB / 0.5332 GB, free: 12.13 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.025e-05/0.289, allocations: 57.64 kB / 0.5332 GB, free: 12.06 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 8.22e-07/0.289, allocations: 0 / 0.5332 GB, free: 12.06 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001374/0.2892, allocations: 62.22 kB / 0.5333 GB, free: 12 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.728e-05/0.2892, allocations: 78.39 kB / 0.5334 GB, free: 11.9 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.126e-05/0.2893, allocations: 97.84 kB / 0.5335 GB, free: 11.8 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 9.518e-06/0.2893, allocations: 31.17 kB / 0.5335 GB, free: 11.76 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.204e-05/0.2893, allocations: 80.14 kB / 0.5336 GB, free: 11.68 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.599e-05/0.2893, allocations: 0 / 0.5336 GB, free: 11.68 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.369e-05/0.2893, allocations: 16.31 kB / 0.5336 GB, free: 11.66 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 9.905e-05/0.2895, allocations: 314.8 kB / 0.5339 GB, free: 11.34 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.105e-06/0.2895, allocations: 5.281 kB / 0.5339 GB, free: 11.34 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.92e-06/0.2895, allocations: 1.344 kB / 0.5339 GB, free: 11.34 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.221e-05/0.2895, allocations: 68.64 kB / 0.534 GB, free: 11.26 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.503e-06/0.2895, allocations: 0 / 0.534 GB, free: 11.26 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.093e-05/0.2896, allocations: 61.42 kB / 0.534 GB, free: 11.2 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.65e-05/0.2896, allocations: 31.61 kB / 0.534 GB, free: 11.16 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.938e-06/0.2896, allocations: 0 / 0.534 GB, free: 11.16 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.376e-05/0.2897, allocations: 5.281 kB / 0.534 GB, free: 11.16 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.41e-07/0.2897, allocations: 0 / 0.534 GB, free: 11.16 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.33e-06/0.2897, allocations: 0 / 0.534 GB, free: 11.16 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.318e-05/0.2897, allocations: 5.312 kB / 0.5341 GB, free: 11.16 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.541e-06/0.2897, allocations: 0 / 0.5341 GB, free: 11.16 MB / 398.1 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.987e-05/0.2898, allocations: 146.5 kB / 0.5342 GB, free: 11 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.554e-06/0.2898, allocations: 0 / 0.5342 GB, free: 11 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.416e-06/0.2898, allocations: 8.062 kB / 0.5342 GB, free: 11 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.002e-06/0.2898, allocations: 0 / 0.5342 GB, free: 11 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.348e-06/0.2898, allocations: 5.156 kB / 0.5342 GB, free: 10.99 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.013e-06/0.2898, allocations: 0 / 0.5342 GB, free: 10.99 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.373e-05/0.2899, allocations: 150.8 kB / 0.5344 GB, free: 10.8 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.91e-07/0.2899, allocations: 1.125 kB / 0.5344 GB, free: 10.8 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.91e-07/0.2899, allocations: 0 / 0.5344 GB, free: 10.8 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.753e-06/0.2899, allocations: 1.156 kB / 0.5344 GB, free: 10.8 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.432e-06/0.2899, allocations: 7.938 kB / 0.5344 GB, free: 10.79 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.303e-06/0.2899, allocations: 1.25 kB / 0.5344 GB, free: 10.79 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.894e-06/0.29, allocations: 3.984 kB / 0.5344 GB, free: 10.79 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.893e-05/0.29, allocations: 89.61 kB / 0.5345 GB, free: 10.68 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.348e-05/0.2901, allocations: 78.61 kB / 0.5345 GB, free: 10.59 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.072e-05/0.2901, allocations: 3.938 kB / 0.5345 GB, free: 10.59 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.326e-06/0.2901, allocations: 1.219 kB / 0.5345 GB, free: 10.59 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.3e-05/0.2901, allocations: 7.969 kB / 0.5345 GB, free: 10.58 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.354e-06/0.2901, allocations: 1.125 kB / 0.5345 GB, free: 10.58 MB / 398.1 MB Notification: Performance of sorting global known variables: time 2.187e-05/0.2902, allocations: 75.28 kB / 0.5346 GB, free: 10.5 MB / 398.1 MB Notification: Performance of sort global known variables: time 9e-08/0.2902, allocations: 1.219 kB / 0.5346 GB, free: 10.5 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0001963/0.2904, allocations: 18.94 kB / 0.5346 GB, free: 10.5 MB / 398.1 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.0003588/0.2907, allocations: 213.5 kB / 0.5348 GB, free: 10.35 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 7.895e-05/0.2908, allocations: 64.77 kB / 0.5349 GB, free: 10.28 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.064e-06/0.2908, allocations: 0 / 0.5349 GB, free: 10.28 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 2.859e-05/0.2909, allocations: 54.78 kB / 0.5349 GB, free: 10.22 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001154/0.291, allocations: 2.906 kB / 0.535 GB, free: 10.22 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001598/0.2911, allocations: 109 kB / 0.5351 GB, free: 10.09 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002187/0.2914, allocations: 0.6742 MB / 0.5357 GB, free: 9.387 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.128e-05/0.2914, allocations: 7.438 kB / 0.5357 GB, free: 9.379 MB / 398.1 MB Notification: Performance of SimCode: time 2.31e-07/0.2914, allocations: 3.938 kB / 0.5357 GB, free: 9.375 MB / 398.1 MB Notification: Performance of Templates: time 0.001842/0.2932, allocations: 0.7543 MB / 0.5365 GB, free: 8.988 MB / 398.1 MB make -j1 -f ModelicaTest_trunk_ModelicaTest.Utilities.TestWriteFile.makefile (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=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Utilities.TestWriteFile.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Utilities.TestWriteFile_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Utilities/TestWriteFile/TestWriteFile.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Utilities.TestWriteFile.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches