Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Utilities.TestReadFile.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.TestReadFile,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Utilities.TestReadFile") translateModel(ModelicaTest.Utilities.TestReadFile,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Utilities.TestReadFile") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001357/0.001357, allocations: 107.4 kB / 17.98 MB, free: 5.355 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001607/0.001607, allocations: 209.8 kB / 18.92 MB, free: 4.422 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.757/1.757, allocations: 227.4 MB / 247.1 MB, free: 10.67 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.4978/0.4978, allocations: 46.1 MB / 344.4 MB, free: 11.78 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002757/0.002757, allocations: 72.77 kB / 417.7 MB, free: 20.11 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2303/0.2331, allocations: 62.44 MB / 480.1 MB, free: 5.648 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestReadFile): time 0.002642/0.2358, allocations: 0.5372 MB / 480.7 MB, free: 5.105 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001877/0.2377, allocations: 0.7605 MB / 481.4 MB, free: 4.344 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.889e-05/0.2378, allocations: 0 / 481.4 MB, free: 4.344 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 2.253e-05/0.2378, allocations: 0 / 481.4 MB, free: 4.344 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002351/0.2381, allocations: 4 kB / 481.4 MB, free: 4.34 MB / 350.1 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.001004/0.2391, allocations: 57.14 kB / 481.5 MB, free: 4.289 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 7.965e-05/0.2392, allocations: 7.984 kB / 481.5 MB, free: 4.281 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.771e-05/0.2393, allocations: 0 / 481.5 MB, free: 4.281 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.353e-05/0.2393, allocations: 4 kB / 481.5 MB, free: 4.277 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001149/0.2395, allocations: 11.92 kB / 481.5 MB, free: 4.266 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.128e-05/0.2395, allocations: 0 / 481.5 MB, free: 4.266 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001912/0.2397, allocations: 51.91 kB / 481.6 MB, free: 4.215 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.046e-05/0.2397, allocations: 0 / 481.6 MB, free: 4.215 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.964e-05/0.2398, allocations: 4 kB / 481.6 MB, free: 4.211 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001499/0.2399, allocations: 39.88 kB / 481.6 MB, free: 4.172 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.27e-06/0.2399, allocations: 0 / 481.6 MB, free: 4.172 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.655e-06/0.24, allocations: 0 / 481.6 MB, free: 4.172 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.295e-06/0.24, allocations: 0 / 481.6 MB, free: 4.172 MB / 350.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.0004956/0.2405, allocations: 357.3 kB / 482 MB, free: 3.766 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.776e-05/0.2406, allocations: 8.031 kB / 482 MB, free: 3.758 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.442e-05/0.2406, allocations: 4.938 kB / 482 MB, free: 3.754 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001533/0.2408, allocations: 160.4 kB / 482.1 MB, free: 3.559 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.992e-05/0.2408, allocations: 4.375 kB / 482.1 MB, free: 3.555 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.066e-05/0.2409, allocations: 384 / 482.1 MB, free: 3.555 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001236/0.241, allocations: 34.25 kB / 482.2 MB, free: 3.516 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.374e-05/0.241, allocations: 192 / 482.2 MB, free: 3.516 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.628e-05/0.2411, allocations: 7.875 kB / 482.2 MB, free: 3.508 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.752e-06/0.2411, allocations: 4 kB / 482.2 MB, free: 3.504 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.75e-05/0.2411, allocations: 0 / 482.2 MB, free: 3.504 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002032/0.2413, allocations: 145.7 kB / 482.3 MB, free: 3.312 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 6.243e-05/0.2414, allocations: 18.58 kB / 482.3 MB, free: 3.285 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.408e-05/0.2415, allocations: 12.94 kB / 482.4 MB, free: 3.27 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.025e-05/0.2415, allocations: 0 / 482.4 MB, free: 3.27 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.927e-05/0.2416, allocations: 56.27 kB / 482.4 MB, free: 3.199 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 2.234e-06/0.2416, allocations: 4 kB / 482.4 MB, free: 3.195 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.0002534/0.2418, allocations: 67.28 kB / 482.5 MB, free: 3.117 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.964e-05/0.2419, allocations: 81.11 kB / 482.6 MB, free: 3.02 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.65e-05/0.242, allocations: 97.84 kB / 482.7 MB, free: 2.914 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.834e-05/0.2421, allocations: 25.7 kB / 482.7 MB, free: 2.883 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.194e-05/0.2422, allocations: 80.14 kB / 482.8 MB, free: 2.801 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.151e-05/0.2422, allocations: 0 / 482.8 MB, free: 2.801 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.548e-05/0.2423, allocations: 17.97 kB / 482.8 MB, free: 2.777 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001345/0.2424, allocations: 314.8 kB / 483.1 MB, free: 2.461 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.04e-05/0.2424, allocations: 4 kB / 483.1 MB, free: 2.457 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.767e-05/0.2425, allocations: 4 kB / 483.1 MB, free: 2.453 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.847e-05/0.2426, allocations: 64.19 kB / 483.2 MB, free: 2.375 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.916e-06/0.2426, allocations: 0 / 483.2 MB, free: 2.375 MB / 350.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 0.0001181/0.2427, allocations: 63.31 kB / 483.2 MB, free: 2.301 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.019e-05/0.2428, allocations: 33.7 kB / 483.2 MB, free: 2.262 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.748e-06/0.2428, allocations: 8.031 kB / 483.3 MB, free: 2.254 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.62e-05/0.2428, allocations: 0 / 483.3 MB, free: 2.254 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.964e-06/0.2429, allocations: 3.938 kB / 483.3 MB, free: 2.25 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.655e-06/0.2429, allocations: 0 / 483.3 MB, free: 2.25 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.501e-05/0.2429, allocations: 0 / 483.3 MB, free: 2.25 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.801e-05/0.2429, allocations: 7.984 kB / 483.3 MB, free: 2.242 MB / 350.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 0.0001496/0.2431, allocations: 139.5 kB / 483.4 MB, free: 2.09 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.529e-05/0.2431, allocations: 0 / 483.4 MB, free: 2.09 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.504e-05/0.2432, allocations: 11.06 kB / 483.4 MB, free: 2.082 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.151e-06/0.2432, allocations: 7.984 kB / 483.4 MB, free: 2.074 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.641e-06/0.2432, allocations: 0 / 483.4 MB, free: 2.074 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.216e-06/0.2432, allocations: 0 / 483.4 MB, free: 2.074 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002339/0.2435, allocations: 146 kB / 483.6 MB, free: 1.883 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.195e-06/0.2435, allocations: 0 / 483.6 MB, free: 1.883 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.012e-06/0.2435, allocations: 0 / 483.6 MB, free: 1.883 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.785e-06/0.2435, allocations: 4 kB / 483.6 MB, free: 1.879 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.865e-05/0.2435, allocations: 3.938 kB / 483.6 MB, free: 1.875 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.104e-06/0.2436, allocations: 3.938 kB / 483.6 MB, free: 1.871 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.964e-06/0.2436, allocations: 0 / 483.6 MB, free: 1.871 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001952/0.2438, allocations: 94.83 kB / 483.7 MB, free: 1.754 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.531e-05/0.2439, allocations: 77.11 kB / 483.7 MB, free: 1.66 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.855e-05/0.2439, allocations: 7.938 kB / 483.8 MB, free: 1.652 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.197e-05/0.244, allocations: 4 kB / 483.8 MB, free: 1.648 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.697e-05/0.244, allocations: 0 / 483.8 MB, free: 1.648 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.24e-06/0.244, allocations: 0 / 483.8 MB, free: 1.648 MB / 350.1 MB Notification: Performance of sorting global known variables: time 5.989e-05/0.2441, allocations: 79.28 kB / 483.8 MB, free: 1.57 MB / 350.1 MB Notification: Performance of sort global known variables: time 5.81e-07/0.2441, allocations: 4.125 kB / 483.8 MB, free: 1.566 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004205/0.2445, allocations: 23.98 kB / 483.9 MB, free: 1.543 MB / 350.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.0006815/0.2452, allocations: 193.1 kB / 484 MB, free: 1.367 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0001687/0.2454, allocations: 71.33 kB / 484.1 MB, free: 1.285 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.536e-06/0.2454, allocations: 0 / 484.1 MB, free: 1.285 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 7.773e-05/0.2455, allocations: 55.41 kB / 484.2 MB, free: 1.219 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002334/0.2458, allocations: 0 / 484.2 MB, free: 1.219 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002945/0.2461, allocations: 102.6 kB / 484.3 MB, free: 1.086 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003958/0.2465, allocations: 0.6769 MB / 485 MB, free: 392 kB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.582e-05/0.2465, allocations: 7.438 kB / 485 MB, free: 388 kB / 350.1 MB Notification: Performance of SimCode: time 6.21e-07/0.2466, allocations: 4 kB / 485 MB, free: 384 kB / 350.1 MB Notification: Performance of Templates: time 0.003478/0.25, allocations: 0.8188 MB / 485.8 MB, free: 15.55 MB / 366.1 MB make -j1 -f ModelicaTest_trunk_ModelicaTest.Utilities.TestReadFile.makefile (rm -f ModelicaTest_trunk_ModelicaTest.Utilities.TestReadFile.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Utilities.TestReadFile.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Utilities.TestReadFile.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Utilities.TestReadFile.sim & ./ModelicaTest_trunk_ModelicaTest.Utilities.TestReadFile -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Utilities.TestReadFile.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Utilities.TestReadFile_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Utilities/TestReadFile/TestReadFile.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Utilities.TestReadFile.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches