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.001115/0.001115, allocations: 109.5 kB / 17.86 MB, free: 5.504 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001217/0.001217, allocations: 209.7 kB / 18.79 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.357/1.357, allocations: 227.3 MB / 246.9 MB, free: 8.977 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2134/0.2134, allocations: 46.11 MB / 344.3 MB, free: 11.54 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001477/0.001477, allocations: 76.38 kB / 417.5 MB, free: 20.15 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1079/0.1094, allocations: 62.44 MB / 479.9 MB, free: 5.703 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestReadFile): time 0.00186/0.1113, allocations: 0.545 MB / 480.5 MB, free: 5.152 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001271/0.1126, allocations: 0.7681 MB / 481.2 MB, free: 4.383 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.268e-05/0.1126, allocations: 0 / 481.2 MB, free: 4.383 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.743e-05/0.1126, allocations: 4 kB / 481.2 MB, free: 4.379 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001429/0.1128, allocations: 7.922 kB / 481.2 MB, free: 4.371 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.0005831/0.1134, allocations: 39.95 kB / 481.3 MB, free: 4.332 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 3.612e-05/0.1135, allocations: 4 kB / 481.3 MB, free: 4.328 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.557e-05/0.1135, allocations: 7.938 kB / 481.3 MB, free: 4.32 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.732e-05/0.1135, allocations: 0 / 481.3 MB, free: 4.32 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.138e-05/0.1136, allocations: 7.984 kB / 481.3 MB, free: 4.312 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 9.758e-06/0.1137, allocations: 4 kB / 481.3 MB, free: 4.309 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001254/0.1138, allocations: 43.97 kB / 481.3 MB, free: 4.266 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 8.305e-06/0.1138, allocations: 0 / 481.3 MB, free: 4.266 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.479e-05/0.1138, allocations: 7.922 kB / 481.4 MB, free: 4.258 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001112/0.114, allocations: 31.95 kB / 481.4 MB, free: 4.227 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.046e-06/0.114, allocations: 0 / 481.4 MB, free: 4.227 MB / 350.1 MB Notification: Performance of FrontEnd: time 7.92e-07/0.114, allocations: 0 / 481.4 MB, free: 4.227 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.657e-06/0.114, allocations: 0 / 481.4 MB, free: 4.227 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.0003233/0.1143, allocations: 353.3 kB / 481.7 MB, free: 3.824 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.057e-05/0.1144, allocations: 12.88 kB / 481.7 MB, free: 3.812 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.92e-05/0.1144, allocations: 4.938 kB / 481.7 MB, free: 3.809 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001082/0.1145, allocations: 160.4 kB / 481.9 MB, free: 3.613 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.122e-05/0.1145, allocations: 384 / 481.9 MB, free: 3.613 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.3e-05/0.1145, allocations: 4.359 kB / 481.9 MB, free: 3.609 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.592e-05/0.1146, allocations: 42.17 kB / 482 MB, free: 3.562 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.562e-06/0.1146, allocations: 192 / 482 MB, free: 3.562 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.053e-05/0.1147, allocations: 3.938 kB / 482 MB, free: 3.559 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.839e-06/0.1147, allocations: 3.938 kB / 482 MB, free: 3.555 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.913e-05/0.1147, allocations: 4 kB / 482 MB, free: 3.551 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001442/0.1148, allocations: 149.7 kB / 482.1 MB, free: 3.355 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.205e-05/0.1149, allocations: 18.61 kB / 482.1 MB, free: 3.328 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.63e-05/0.1149, allocations: 8.859 kB / 482.1 MB, free: 3.316 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.688e-06/0.1149, allocations: 3.984 kB / 482.1 MB, free: 3.312 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.381e-05/0.115, allocations: 60.2 kB / 482.2 MB, free: 3.238 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 1.122e-06/0.115, allocations: 3.938 kB / 482.2 MB, free: 3.234 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001787/0.1152, allocations: 75.41 kB / 482.3 MB, free: 3.148 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.768e-05/0.1152, allocations: 77.11 kB / 482.4 MB, free: 3.055 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.561e-05/0.1153, allocations: 93.84 kB / 482.4 MB, free: 2.953 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.216e-05/0.1153, allocations: 25.7 kB / 482.5 MB, free: 2.922 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.55e-05/0.1154, allocations: 80.14 kB / 482.5 MB, free: 2.84 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.788e-05/0.1154, allocations: 4 kB / 482.6 MB, free: 2.836 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.836e-05/0.1154, allocations: 13.72 kB / 482.6 MB, free: 2.816 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001172/0.1155, allocations: 315.1 kB / 482.9 MB, free: 2.5 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.965e-05/0.1156, allocations: 4 kB / 482.9 MB, free: 2.496 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.865e-06/0.1156, allocations: 3.938 kB / 482.9 MB, free: 2.492 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.439e-05/0.1156, allocations: 60.27 kB / 482.9 MB, free: 2.418 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.295e-06/0.1156, allocations: 0 / 482.9 MB, free: 2.418 MB / 350.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.352e-05/0.1157, allocations: 71.3 kB / 483 MB, free: 2.336 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.085e-05/0.1158, allocations: 31.89 kB / 483 MB, free: 2.301 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.272e-06/0.1158, allocations: 3.938 kB / 483 MB, free: 2.297 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.155e-05/0.1158, allocations: 96 / 483 MB, free: 2.297 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.21e-07/0.1158, allocations: 4 kB / 483 MB, free: 2.293 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.438e-06/0.1158, allocations: 0 / 483 MB, free: 2.293 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.45e-05/0.1158, allocations: 4 kB / 483.1 MB, free: 2.289 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.761e-06/0.1158, allocations: 0 / 483.1 MB, free: 2.289 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 9.068e-05/0.1159, allocations: 135.5 kB / 483.2 MB, free: 2.141 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.556e-06/0.1159, allocations: 4 kB / 483.2 MB, free: 2.137 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.058e-05/0.116, allocations: 7.062 kB / 483.2 MB, free: 2.133 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.136e-06/0.116, allocations: 0 / 483.2 MB, free: 2.133 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.767e-06/0.116, allocations: 3.938 kB / 483.2 MB, free: 2.129 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.244e-06/0.116, allocations: 4 kB / 483.2 MB, free: 2.125 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001017/0.1161, allocations: 154 kB / 483.4 MB, free: 1.926 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.403e-06/0.1161, allocations: 0 / 483.4 MB, free: 1.926 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.31e-07/0.1161, allocations: 0 / 483.4 MB, free: 1.926 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.703e-06/0.1161, allocations: 0 / 483.4 MB, free: 1.926 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.436e-06/0.1161, allocations: 3.938 kB / 483.4 MB, free: 1.922 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.242e-06/0.1161, allocations: 0 / 483.4 MB, free: 1.922 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.112e-06/0.1161, allocations: 0 / 483.4 MB, free: 1.922 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001014/0.1162, allocations: 94.83 kB / 483.4 MB, free: 1.805 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.836e-05/0.1163, allocations: 81.05 kB / 483.5 MB, free: 1.707 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.734e-05/0.1163, allocations: 11.88 kB / 483.5 MB, free: 1.695 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.806e-06/0.1163, allocations: 0 / 483.5 MB, free: 1.695 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.176e-05/0.1163, allocations: 0 / 483.5 MB, free: 1.695 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.825e-06/0.1163, allocations: 0 / 483.5 MB, free: 1.695 MB / 350.1 MB Notification: Performance of sorting global known variables: time 3.162e-05/0.1164, allocations: 79.28 kB / 483.6 MB, free: 1.617 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1164, allocations: 0 / 483.6 MB, free: 1.617 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002154/0.1166, allocations: 19.98 kB / 483.6 MB, free: 1.598 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.000392/0.117, allocations: 195.8 kB / 483.8 MB, free: 1.418 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 9.131e-05/0.1171, allocations: 63.39 kB / 483.9 MB, free: 1.344 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.843e-06/0.1171, allocations: 0 / 483.9 MB, free: 1.344 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 4.021e-05/0.1172, allocations: 55.41 kB / 483.9 MB, free: 1.277 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001317/0.1173, allocations: 0 / 483.9 MB, free: 1.277 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001881/0.1175, allocations: 104.5 kB / 484 MB, free: 1.141 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002655/0.1178, allocations: 0.677 MB / 484.7 MB, free: 448 kB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.046e-05/0.1178, allocations: 15.5 kB / 484.7 MB, free: 436 kB / 350.1 MB Notification: Performance of SimCode: time 2.1e-07/0.1178, allocations: 0 / 484.7 MB, free: 436 kB / 350.1 MB Notification: Performance of Templates: time 0.002359/0.1202, allocations: 0.8139 MB / 485.6 MB, free: 15.62 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