Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.Utilities.TestWriteFile.conf.json 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/ModelicaServices 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 ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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) Running command: translateModel(ModelicaTest.Utilities.TestWriteFile,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.Utilities.TestWriteFile") translateModel(ModelicaTest.Utilities.TestWriteFile,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.Utilities.TestWriteFile") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001647/0.001647, allocations: 198.3 kB / 16.1 MB, free: 5.707 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.339/1.339, allocations: 226.6 MB / 243.4 MB, free: 8.09 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007628/0.0007628, allocations: 95.83 kB / 295.5 MB, free: 6.883 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.3825/0.3825, allocations: 44.82 MB / 392.3 MB, free: 35.71 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002683/0.0002685, allocations: 8 kB / 465.3 MB, free: 12.69 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2856/0.2859, allocations: 62.96 MB / 0.5159 GB, free: 36.91 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestWriteFile): time 0.0005222/0.2864, allocations: 205.9 kB / 0.5161 GB, free: 36.77 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.0004053/0.2869, allocations: 199.6 kB / 0.5163 GB, free: 36.65 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.703e-05/0.2869, allocations: 2.844 kB / 0.5163 GB, free: 36.65 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 8.246e-06/0.2869, allocations: 0 / 0.5163 GB, free: 36.65 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 6.712e-06/0.2869, allocations: 0 / 0.5163 GB, free: 36.65 MB / 378.7 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.0002299/0.2872, allocations: 35.25 kB / 0.5163 GB, free: 36.63 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 3.455e-05/0.2872, allocations: 6.719 kB / 0.5163 GB, free: 36.63 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.232e-05/0.2873, allocations: 3.984 kB / 0.5163 GB, free: 36.62 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 1.512e-05/0.2873, allocations: 3.375 kB / 0.5163 GB, free: 36.62 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 2.402e-05/0.2873, allocations: 0 / 0.5163 GB, free: 36.62 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 6.141e-06/0.2873, allocations: 6.719 kB / 0.5163 GB, free: 36.62 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 9.641e-05/0.2874, allocations: 49.52 kB / 0.5164 GB, free: 36.6 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 6.703e-06/0.2874, allocations: 0 / 0.5164 GB, free: 36.6 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 2.438e-05/0.2875, allocations: 28.77 kB / 0.5164 GB, free: 36.57 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 6.875e-05/0.2875, allocations: 27.31 kB / 0.5164 GB, free: 36.56 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.819e-06/0.2875, allocations: 0 / 0.5164 GB, free: 36.56 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.773e-06/0.2876, allocations: 0 / 0.5164 GB, free: 36.56 MB / 378.7 MB Notification: Performance of Transformations before backend: time 3.777e-06/0.2876, allocations: 0 / 0.5164 GB, free: 36.56 MB / 378.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.0002135/0.2878, allocations: 351.5 kB / 0.5167 GB, free: 36.17 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.634e-05/0.2878, allocations: 11.92 kB / 0.5168 GB, free: 36.17 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.907e-05/0.2879, allocations: 0.9375 kB / 0.5168 GB, free: 36.17 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 5.611e-05/0.2879, allocations: 164.4 kB / 0.5169 GB, free: 35.97 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.204e-05/0.2879, allocations: 7.312 kB / 0.5169 GB, free: 35.96 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.837e-06/0.2879, allocations: 384 / 0.5169 GB, free: 35.96 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.779e-05/0.288, allocations: 29.23 kB / 0.517 GB, free: 35.93 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.955e-06/0.288, allocations: 192 / 0.517 GB, free: 35.93 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.586e-06/0.2881, allocations: 3.938 kB / 0.517 GB, free: 35.93 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.899e-06/0.2881, allocations: 0 / 0.517 GB, free: 35.93 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.641e-05/0.2881, allocations: 10.36 kB / 0.517 GB, free: 35.93 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 8.139e-05/0.2882, allocations: 141.7 kB / 0.5171 GB, free: 35.74 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 3.313e-05/0.2882, allocations: 21.55 kB / 0.5171 GB, free: 35.71 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.364e-05/0.2882, allocations: 8.859 kB / 0.5171 GB, free: 35.7 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.449e-06/0.2883, allocations: 3.938 kB / 0.5171 GB, free: 35.7 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.191e-05/0.2883, allocations: 66.16 kB / 0.5172 GB, free: 35.62 MB / 378.7 MB Notification: Performance of pre-optimization done (n=1): time 9.62e-07/0.2883, allocations: 0 / 0.5172 GB, free: 35.62 MB / 378.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001418/0.2884, allocations: 65.28 kB / 0.5173 GB, free: 35.55 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.109e-05/0.2885, allocations: 91.3 kB / 0.5173 GB, free: 35.45 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 1.97e-05/0.2885, allocations: 89.86 kB / 0.5174 GB, free: 35.35 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 6.612e-06/0.2885, allocations: 25.7 kB / 0.5175 GB, free: 35.32 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 1.215e-05/0.2885, allocations: 84.14 kB / 0.5175 GB, free: 35.23 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.761e-05/0.2886, allocations: 0 / 0.5175 GB, free: 35.23 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.744e-06/0.2886, allocations: 0 / 0.5175 GB, free: 35.23 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 4.632e-05/0.2886, allocations: 313.8 kB / 0.5178 GB, free: 34.92 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.164e-06/0.2886, allocations: 0 / 0.5178 GB, free: 34.92 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.158e-06/0.2886, allocations: 3.938 kB / 0.5178 GB, free: 34.92 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.882e-05/0.2887, allocations: 63.23 kB / 0.5179 GB, free: 34.84 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.033e-06/0.2887, allocations: 0 / 0.5179 GB, free: 34.84 MB / 378.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 4.637e-05/0.2887, allocations: 71.64 kB / 0.518 GB, free: 34.77 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.271e-05/0.2888, allocations: 31.89 kB / 0.518 GB, free: 34.74 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.038e-06/0.2888, allocations: 2.594 kB / 0.518 GB, free: 34.74 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.092e-05/0.2888, allocations: 3.938 kB / 0.518 GB, free: 34.74 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.31e-07/0.2888, allocations: 0 / 0.518 GB, free: 34.74 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.671e-06/0.2888, allocations: 3.281 kB / 0.518 GB, free: 34.74 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.437e-05/0.2888, allocations: 0 / 0.518 GB, free: 34.74 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.544e-06/0.2888, allocations: 6.75 kB / 0.518 GB, free: 34.73 MB / 378.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 4.825e-05/0.2889, allocations: 134.6 kB / 0.5181 GB, free: 34.59 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.891e-06/0.2889, allocations: 0 / 0.5181 GB, free: 34.59 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.296e-06/0.2889, allocations: 10.66 kB / 0.5182 GB, free: 34.59 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.31e-07/0.2889, allocations: 0 / 0.5182 GB, free: 34.59 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.226e-06/0.2889, allocations: 0 / 0.5182 GB, free: 34.59 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.953e-06/0.2889, allocations: 0 / 0.5182 GB, free: 34.59 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 5.001e-05/0.289, allocations: 151.2 kB / 0.5183 GB, free: 34.39 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.82e-07/0.289, allocations: 0 / 0.5183 GB, free: 34.39 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.41e-07/0.289, allocations: 4 kB / 0.5183 GB, free: 34.39 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.954e-06/0.289, allocations: 2.75 kB / 0.5183 GB, free: 34.39 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.172e-06/0.289, allocations: 3.938 kB / 0.5183 GB, free: 34.39 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.62e-07/0.289, allocations: 0 / 0.5183 GB, free: 34.39 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.875e-06/0.289, allocations: 3.281 kB / 0.5183 GB, free: 34.39 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.306e-05/0.2891, allocations: 94.22 kB / 0.5184 GB, free: 34.28 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.631e-05/0.2891, allocations: 84.58 kB / 0.5185 GB, free: 34.18 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.223e-05/0.2891, allocations: 6.719 kB / 0.5185 GB, free: 34.18 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.506e-06/0.2891, allocations: 4.031 kB / 0.5185 GB, free: 34.18 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.078e-05/0.2892, allocations: 0 / 0.5185 GB, free: 34.18 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.434e-06/0.2892, allocations: 0 / 0.5185 GB, free: 34.18 MB / 378.7 MB Notification: Performance of sorting global known variables: time 1.111e-05/0.2892, allocations: 75.28 kB / 0.5186 GB, free: 34.1 MB / 378.7 MB Notification: Performance of sort global known variables: time 1e-07/0.2892, allocations: 3 kB / 0.5186 GB, free: 34.1 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.000227/0.2894, allocations: 11.28 kB / 0.5186 GB, free: 34.1 MB / 378.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003269/0.2898, allocations: 205 kB / 0.5188 GB, free: 33.98 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 6.541e-05/0.2898, allocations: 69.31 kB / 0.5188 GB, free: 33.91 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.844e-06/0.2898, allocations: 0 / 0.5188 GB, free: 33.91 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 1.815e-05/0.2899, allocations: 54.38 kB / 0.5189 GB, free: 33.85 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001119/0.29, allocations: 2.969 kB / 0.5189 GB, free: 33.85 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001375/0.2901, allocations: 97.58 kB / 0.519 GB, free: 33.73 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.271e-05/0.2902, allocations: 0.6692 MB / 0.5196 GB, free: 33.03 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.985e-06/0.2902, allocations: 10.31 kB / 0.5196 GB, free: 33.02 MB / 378.7 MB Notification: Performance of SimCode: time 2.1e-07/0.2902, allocations: 128 / 0.5196 GB, free: 33.02 MB / 378.7 MB Notification: Performance of Templates: time 0.001743/0.292, allocations: 0.7479 MB / 0.5204 GB, free: 32.94 MB / 378.7 MB make -j1 -f ModelicaTest_trunk_cpp_ModelicaTest.Utilities.TestWriteFile.makefile (rm -f ModelicaTest_trunk_cpp_ModelicaTest.Utilities.TestWriteFile.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.Utilities.TestWriteFile.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.Utilities.TestWriteFile.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.Utilities.TestWriteFile.sim & ./ModelicaTest_trunk_cpp_ModelicaTest.Utilities.TestWriteFile --alarm=480 -emit_protected > ModelicaTest_trunk_cpp_ModelicaTest.Utilities.TestWriteFile.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_cpp_ModelicaTest.Utilities.TestWriteFile_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Utilities/TestWriteFile/TestWriteFile.csv","../files/ModelicaTest_trunk_cpp_ModelicaTest.Utilities.TestWriteFile.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches