Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.Utilities.TestReadFile.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.TestReadFile,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.Utilities.TestReadFile") translateModel(ModelicaTest.Utilities.TestReadFile,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.Utilities.TestReadFile") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001064/0.001064, allocations: 201.7 kB / 15.8 MB, free: 6.309 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.321/1.321, allocations: 226.6 MB / 243.1 MB, free: 14.3 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008064/0.0008064, allocations: 89.31 kB / 295.1 MB, free: 10.07 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1805/0.1805, allocations: 44.83 MB / 392 MB, free: 9.332 MB / 330.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002668/0.0002669, allocations: 8 kB / 464.7 MB, free: 49.77 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09608/0.09636, allocations: 62.95 MB / 0.5153 GB, free: 2.781 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestReadFile): time 0.0005809/0.09698, allocations: 204.6 kB / 0.5155 GB, free: 2.578 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.001041/0.09803, allocations: 0.7358 MB / 0.5162 GB, free: 1.84 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.121e-05/0.09806, allocations: 0 / 0.5162 GB, free: 1.84 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 8.445e-06/0.09808, allocations: 0 / 0.5162 GB, free: 1.84 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001254/0.09821, allocations: 12 kB / 0.5162 GB, free: 1.828 MB / 346.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/Utilities.mo:322:3-362:15:writable] Warning: Pure function ‘ModelicaTest.Utilities.ReadFile‘ contains a call to impure function ‘Modelica.Utilities.Streams.print‘. Notification: Performance of NFTyping.typeClassSections: time 0.0002703/0.09849, allocations: 39.89 kB / 0.5163 GB, free: 1.789 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 2.635e-05/0.09853, allocations: 3.938 kB / 0.5163 GB, free: 1.785 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 2.95e-05/0.09856, allocations: 0 / 0.5163 GB, free: 1.785 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 1.674e-05/0.09858, allocations: 3.938 kB / 0.5163 GB, free: 1.781 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 6.108e-05/0.09865, allocations: 11.97 kB / 0.5163 GB, free: 1.77 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 6.612e-06/0.09867, allocations: 0 / 0.5163 GB, free: 1.77 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 9.219e-05/0.09876, allocations: 49.94 kB / 0.5163 GB, free: 1.723 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 4.849e-06/0.09878, allocations: 0 / 0.5163 GB, free: 1.723 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 2.266e-05/0.0988, allocations: 29.7 kB / 0.5164 GB, free: 1.688 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 7.62e-05/0.09889, allocations: 31.94 kB / 0.5164 GB, free: 1.656 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.177e-06/0.0989, allocations: 4 kB / 0.5164 GB, free: 1.652 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.212e-06/0.09891, allocations: 0 / 0.5164 GB, free: 1.652 MB / 346.7 MB Notification: Performance of Transformations before backend: time 3.176e-06/0.09892, allocations: 0 / 0.5164 GB, free: 1.652 MB / 346.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.0002658/0.09919, allocations: 353.1 kB / 0.5167 GB, free: 1.254 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.003e-05/0.09923, allocations: 12.03 kB / 0.5168 GB, free: 1.242 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.848e-05/0.09926, allocations: 4 kB / 0.5168 GB, free: 1.238 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001018/0.09937, allocations: 171 kB / 0.5169 GB, free: 1.031 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.107e-05/0.09938, allocations: 0 / 0.5169 GB, free: 1.031 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.596e-06/0.0994, allocations: 4 kB / 0.5169 GB, free: 1.027 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 6.536e-05/0.09947, allocations: 29.7 kB / 0.517 GB, free: 0.9922 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.001e-06/0.09948, allocations: 0 / 0.517 GB, free: 0.9922 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.536e-06/0.09949, allocations: 3.984 kB / 0.517 GB, free: 0.9883 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.246e-06/0.0995, allocations: 0 / 0.517 GB, free: 0.9883 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.387e-05/0.09952, allocations: 4 kB / 0.517 GB, free: 0.9844 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001148/0.09964, allocations: 149.6 kB / 0.5171 GB, free: 0.7891 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 3.358e-05/0.09968, allocations: 26.48 kB / 0.5171 GB, free: 0.7539 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.489e-05/0.0997, allocations: 8.859 kB / 0.5171 GB, free: 0.7422 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.711e-06/0.09971, allocations: 0 / 0.5171 GB, free: 0.7422 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.029e-05/0.09976, allocations: 60.25 kB / 0.5172 GB, free: 0.668 MB / 346.7 MB Notification: Performance of pre-optimization done (n=1): time 9.52e-07/0.09976, allocations: 0 / 0.5172 GB, free: 0.668 MB / 346.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001383/0.09991, allocations: 67.47 kB / 0.5173 GB, free: 0.5898 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.876e-05/0.09996, allocations: 81.05 kB / 0.5173 GB, free: 0.4922 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.296e-05/0.1, allocations: 93.84 kB / 0.5174 GB, free: 400 kB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 9.197e-06/0.1, allocations: 33.89 kB / 0.5175 GB, free: 360 kB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.099e-05/0.1001, allocations: 80.14 kB / 0.5175 GB, free: 276 kB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.232e-05/0.1001, allocations: 4 kB / 0.5175 GB, free: 272 kB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.673e-06/0.1001, allocations: 0 / 0.5175 GB, free: 272 kB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.1896/0.2897, allocations: 314.8 kB / 0.5178 GB, free: 11.5 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.554e-05/0.2897, allocations: 0 / 0.5178 GB, free: 11.5 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.119e-05/0.2898, allocations: 0 / 0.5178 GB, free: 11.5 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.545e-05/0.2898, allocations: 27.8 kB / 0.5179 GB, free: 11.46 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.166e-06/0.2898, allocations: 0 / 0.5179 GB, free: 11.46 MB / 346.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 0.0001124/0.2899, allocations: 64.48 kB / 0.5179 GB, free: 11.4 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.255e-05/0.29, allocations: 32.28 kB / 0.518 GB, free: 11.37 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.752e-06/0.29, allocations: 0.5625 kB / 0.518 GB, free: 11.37 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.572e-05/0.29, allocations: 0.6875 kB / 0.518 GB, free: 11.37 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.954e-06/0.29, allocations: 0.5625 kB / 0.518 GB, free: 11.37 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.46e-06/0.29, allocations: 0.5938 kB / 0.518 GB, free: 11.37 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.141e-05/0.29, allocations: 2.25 kB / 0.518 GB, free: 11.37 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.785e-06/0.2901, allocations: 4.719 kB / 0.518 GB, free: 11.37 MB / 346.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 6.051e-05/0.2901, allocations: 138.3 kB / 0.5181 GB, free: 11.23 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.276e-05/0.2901, allocations: 8.266 kB / 0.5181 GB, free: 11.22 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.561e-05/0.2902, allocations: 8.375 kB / 0.5181 GB, free: 11.21 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.928e-06/0.2902, allocations: 1 kB / 0.5181 GB, free: 11.21 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.278e-06/0.2902, allocations: 3.828 kB / 0.5181 GB, free: 11.21 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.696e-06/0.2902, allocations: 0 / 0.5181 GB, free: 11.21 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 6.722e-05/0.2903, allocations: 147.9 kB / 0.5183 GB, free: 11.03 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.51e-07/0.2903, allocations: 0 / 0.5183 GB, free: 11.03 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.202e-06/0.2903, allocations: 1.594 kB / 0.5183 GB, free: 11.03 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.974e-06/0.2903, allocations: 3.953 kB / 0.5183 GB, free: 11.02 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.049e-05/0.2903, allocations: 1.703 kB / 0.5183 GB, free: 11.02 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.82e-07/0.2903, allocations: 2.734 kB / 0.5183 GB, free: 11.02 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.052e-06/0.2903, allocations: 0.625 kB / 0.5183 GB, free: 11.02 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.769e-05/0.2904, allocations: 90.95 kB / 0.5184 GB, free: 10.93 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.631e-05/0.2904, allocations: 80.98 kB / 0.5184 GB, free: 10.84 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.427e-05/0.2905, allocations: 5.266 kB / 0.5184 GB, free: 10.83 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.186e-05/0.2905, allocations: 1.562 kB / 0.5184 GB, free: 10.83 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.543e-05/0.2905, allocations: 2.281 kB / 0.5184 GB, free: 10.83 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.959e-06/0.2905, allocations: 10.34 kB / 0.5185 GB, free: 10.83 MB / 346.7 MB Notification: Performance of sorting global known variables: time 1.755e-05/0.2905, allocations: 76.28 kB / 0.5185 GB, free: 10.76 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.2905, allocations: 0.5625 kB / 0.5185 GB, free: 10.76 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0002757/0.2908, allocations: 15.94 kB / 0.5185 GB, free: 10.76 MB / 346.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.0003512/0.2912, allocations: 185.4 kB / 0.5187 GB, free: 10.66 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 7.319e-05/0.2912, allocations: 62.78 kB / 0.5188 GB, free: 10.59 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.144e-06/0.2913, allocations: 0 / 0.5188 GB, free: 10.59 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 1.924e-05/0.2913, allocations: 61.25 kB / 0.5188 GB, free: 10.53 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001375/0.2914, allocations: 3.078 kB / 0.5188 GB, free: 10.53 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001439/0.2916, allocations: 105.2 kB / 0.5189 GB, free: 10.4 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.374e-05/0.2917, allocations: 0.6718 MB / 0.5196 GB, free: 9.707 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.614e-06/0.2917, allocations: 8.156 kB / 0.5196 GB, free: 9.699 MB / 346.7 MB Notification: Performance of SimCode: time 2.11e-07/0.2917, allocations: 0 / 0.5196 GB, free: 9.699 MB / 346.7 MB Notification: Performance of Templates: time 0.002333/0.294, allocations: 0.8166 MB / 0.5204 GB, free: 9.633 MB / 346.7 MB make -j1 -f ModelicaTest_trunk_cpp_ModelicaTest.Utilities.TestReadFile.makefile (rm -f ModelicaTest_trunk_cpp_ModelicaTest.Utilities.TestReadFile.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.Utilities.TestReadFile.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.Utilities.TestReadFile.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.Utilities.TestReadFile.sim & ./ModelicaTest_trunk_cpp_ModelicaTest.Utilities.TestReadFile --alarm=480 -emit_protected > ModelicaTest_trunk_cpp_ModelicaTest.Utilities.TestReadFile.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_cpp_ModelicaTest.Utilities.TestReadFile_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Utilities/TestReadFile/TestReadFile.csv","../files/ModelicaTest_trunk_cpp_ModelicaTest.Utilities.TestReadFile.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches