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.001802/0.001802, allocations: 103.9 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001982/0.001982, allocations: 210.4 kB / 18.58 MB, free: 4.578 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.545/1.545, allocations: 227.4 MB / 246.8 MB, free: 10.59 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2404/0.2404, allocations: 46.12 MB / 344.2 MB, free: 11.54 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002199/0.0022, allocations: 83.22 kB / 417.7 MB, free: 19.69 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1307/0.1329, allocations: 62.46 MB / 480.1 MB, free: 5.207 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestReadFile): time 0.001901/0.1348, allocations: 482 kB / 480.6 MB, free: 4.734 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001297/0.1362, allocations: 0.7724 MB / 481.4 MB, free: 3.961 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.57e-05/0.1362, allocations: 0 / 481.4 MB, free: 3.961 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.345e-05/0.1362, allocations: 7.938 kB / 481.4 MB, free: 3.953 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001913/0.1364, allocations: 7.938 kB / 481.4 MB, free: 3.945 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.0006111/0.137, allocations: 62.27 kB / 481.4 MB, free: 3.887 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 5.206e-05/0.1371, allocations: 0 / 481.4 MB, free: 3.887 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.163e-05/0.1372, allocations: 7.984 kB / 481.4 MB, free: 3.879 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.127e-05/0.1372, allocations: 3.984 kB / 481.4 MB, free: 3.875 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.285e-05/0.1373, allocations: 4 kB / 481.4 MB, free: 3.871 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 9.137e-06/0.1373, allocations: 0 / 481.4 MB, free: 3.871 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000132/0.1374, allocations: 51.97 kB / 481.5 MB, free: 3.82 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.512e-06/0.1374, allocations: 0 / 481.5 MB, free: 3.82 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.176e-05/0.1375, allocations: 3.984 kB / 481.5 MB, free: 3.816 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001244/0.1376, allocations: 51.88 kB / 481.6 MB, free: 3.766 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.657e-06/0.1376, allocations: 0 / 481.6 MB, free: 3.766 MB / 350.1 MB Notification: Performance of FrontEnd: time 9.22e-07/0.1376, allocations: 0 / 481.6 MB, free: 3.766 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.761e-06/0.1376, allocations: 0 / 481.6 MB, free: 3.766 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.0003812/0.138, allocations: 349.3 kB / 481.9 MB, free: 3.367 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.548e-05/0.1381, allocations: 12.03 kB / 481.9 MB, free: 3.355 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.141e-05/0.1381, allocations: 8.938 kB / 481.9 MB, free: 3.348 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001333/0.1382, allocations: 164.3 kB / 482.1 MB, free: 3.148 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.401e-05/0.1382, allocations: 384 / 482.1 MB, free: 3.148 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.117e-05/0.1383, allocations: 384 / 482.1 MB, free: 3.148 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000111/0.1384, allocations: 30.27 kB / 482.1 MB, free: 3.113 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.017e-06/0.1384, allocations: 192 / 482.1 MB, free: 3.113 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.12e-05/0.1384, allocations: 3.938 kB / 482.1 MB, free: 3.109 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.526e-06/0.1384, allocations: 0 / 482.1 MB, free: 3.109 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.919e-05/0.1384, allocations: 7.984 kB / 482.1 MB, free: 3.102 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001536/0.1386, allocations: 145.7 kB / 482.3 MB, free: 2.91 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.311e-05/0.1387, allocations: 26.55 kB / 482.3 MB, free: 2.875 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.618e-05/0.1387, allocations: 4.859 kB / 482.3 MB, free: 2.867 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.173e-06/0.1387, allocations: 0 / 482.3 MB, free: 2.867 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.758e-05/0.1387, allocations: 56.27 kB / 482.3 MB, free: 2.797 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 8.52e-07/0.1388, allocations: 0 / 482.3 MB, free: 2.797 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001691/0.1389, allocations: 71.38 kB / 482.4 MB, free: 2.715 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.177e-05/0.139, allocations: 89.17 kB / 482.5 MB, free: 2.609 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.404e-05/0.1391, allocations: 93.86 kB / 482.6 MB, free: 2.508 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.675e-05/0.1391, allocations: 25.7 kB / 482.6 MB, free: 2.477 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.548e-05/0.1392, allocations: 84.08 kB / 482.7 MB, free: 2.391 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.621e-05/0.1392, allocations: 3.984 kB / 482.7 MB, free: 2.387 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.555e-05/0.1392, allocations: 17.66 kB / 482.7 MB, free: 2.363 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001385/0.1393, allocations: 310.8 kB / 483 MB, free: 2.051 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.526e-06/0.1394, allocations: 4.125 kB / 483 MB, free: 2.047 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.3e-06/0.1394, allocations: 4 kB / 483 MB, free: 2.043 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.136e-05/0.1394, allocations: 64.27 kB / 483.1 MB, free: 1.965 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.193e-06/0.1394, allocations: 0 / 483.1 MB, free: 1.965 MB / 350.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 0.0001094/0.1396, allocations: 67.3 kB / 483.2 MB, free: 1.887 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.046e-05/0.1396, allocations: 29.7 kB / 483.2 MB, free: 1.852 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.931e-06/0.1396, allocations: 3.938 kB / 483.2 MB, free: 1.848 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.272e-05/0.1396, allocations: 0 / 483.2 MB, free: 1.848 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.565e-06/0.1396, allocations: 0 / 483.2 MB, free: 1.848 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.009e-06/0.1396, allocations: 8.031 kB / 483.2 MB, free: 1.84 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.592e-05/0.1397, allocations: 4 kB / 483.2 MB, free: 1.836 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.38e-06/0.1397, allocations: 0 / 483.2 MB, free: 1.836 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.0001046/0.1398, allocations: 139.5 kB / 483.3 MB, free: 1.684 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.738e-06/0.1398, allocations: 4 kB / 483.3 MB, free: 1.68 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.708e-06/0.1398, allocations: 7.062 kB / 483.4 MB, free: 1.676 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.072e-06/0.1398, allocations: 0 / 483.4 MB, free: 1.676 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.905e-06/0.1398, allocations: 0 / 483.4 MB, free: 1.676 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.384e-06/0.1398, allocations: 0 / 483.4 MB, free: 1.676 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001141/0.1399, allocations: 150 kB / 483.5 MB, free: 1.48 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.076e-06/0.14, allocations: 3.984 kB / 483.5 MB, free: 1.477 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.5e-07/0.14, allocations: 0 / 483.5 MB, free: 1.477 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.835e-06/0.14, allocations: 4 kB / 483.5 MB, free: 1.473 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.997e-06/0.14, allocations: 3.938 kB / 483.5 MB, free: 1.469 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.72e-07/0.14, allocations: 0 / 483.5 MB, free: 1.469 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.31e-07/0.14, allocations: 0 / 483.5 MB, free: 1.469 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001147/0.1401, allocations: 90.83 kB / 483.6 MB, free: 1.355 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.521e-05/0.1402, allocations: 81.14 kB / 483.7 MB, free: 1.258 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.877e-05/0.1402, allocations: 11.92 kB / 483.7 MB, free: 1.246 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.103e-05/0.1402, allocations: 3.938 kB / 483.7 MB, free: 1.242 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.379e-05/0.1402, allocations: 3.938 kB / 483.7 MB, free: 1.238 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.405e-06/0.1402, allocations: 0 / 483.7 MB, free: 1.238 MB / 350.1 MB Notification: Performance of sorting global known variables: time 4.886e-05/0.1403, allocations: 83.28 kB / 483.8 MB, free: 1.156 MB / 350.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1403, allocations: 0 / 483.8 MB, free: 1.156 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002441/0.1405, allocations: 16 kB / 483.8 MB, free: 1.141 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.0004487/0.141, allocations: 196.2 kB / 484 MB, free: 0.9648 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0001153/0.1411, allocations: 59.41 kB / 484 MB, free: 0.8945 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.724e-06/0.1411, allocations: 0 / 484 MB, free: 0.8945 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 4.448e-05/0.1412, allocations: 63.39 kB / 484.1 MB, free: 0.8203 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001227/0.1413, allocations: 0 / 484.1 MB, free: 0.8203 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002011/0.1415, allocations: 76.94 kB / 484.2 MB, free: 0.7188 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003419/0.1419, allocations: 0.6806 MB / 484.9 MB, free: 12 kB / 350.1 MB Notification: Performance of simCode: alias equations: time 6.312e-06/0.1419, allocations: 0 / 484.9 MB, free: 12 kB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.575e-05/0.1419, allocations: 11.56 kB / 484.9 MB, free: 4 kB / 350.1 MB Notification: Performance of SimCode: time 2.2e-07/0.1419, allocations: 0 / 484.9 MB, free: 4 kB / 350.1 MB Notification: Performance of Templates: time 0.003189/0.1451, allocations: 0.6411 MB / 485.5 MB, free: 15.36 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Utilities/TestReadFile/TestReadFile.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Utilities.TestReadFile.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches