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.001691/0.001691, allocations: 105.9 kB / 17.32 MB, free: 6 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00201/0.00201, allocations: 209.8 kB / 18.27 MB, free: 5.078 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.598/1.598, allocations: 227.4 MB / 246.4 MB, free: 10.77 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2087/0.2087, allocations: 46.1 MB / 343.8 MB, free: 11.73 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001546/0.001546, allocations: 80.48 kB / 417 MB, free: 20.05 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1073/0.1089, allocations: 62.45 MB / 479.5 MB, free: 5.582 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestReadFile): time 0.001629/0.1106, allocations: 0.5293 MB / 480 MB, free: 5.047 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001054/0.1116, allocations: 0.7644 MB / 480.8 MB, free: 4.281 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.968e-05/0.1117, allocations: 4 kB / 480.8 MB, free: 4.277 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.248e-05/0.1117, allocations: 0 / 480.8 MB, free: 4.277 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001433/0.1119, allocations: 4 kB / 480.8 MB, free: 4.273 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.0005197/0.1124, allocations: 56.14 kB / 480.8 MB, free: 4.227 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 4.515e-05/0.1124, allocations: 11.98 kB / 480.8 MB, free: 4.215 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 2.547e-05/0.1125, allocations: 0 / 480.8 MB, free: 4.215 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.668e-05/0.1125, allocations: 4 kB / 480.8 MB, free: 4.211 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.413e-05/0.1126, allocations: 3.984 kB / 480.9 MB, free: 4.207 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 7.484e-06/0.1126, allocations: 0 / 480.9 MB, free: 4.207 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001053/0.1127, allocations: 51.91 kB / 480.9 MB, free: 4.156 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.963e-06/0.1127, allocations: 0 / 480.9 MB, free: 4.156 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 1.66e-05/0.1127, allocations: 4 kB / 480.9 MB, free: 4.152 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001162/0.1128, allocations: 55.86 kB / 481 MB, free: 4.098 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.186e-06/0.1129, allocations: 0 / 481 MB, free: 4.098 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.403e-06/0.1129, allocations: 0 / 481 MB, free: 4.098 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.628e-06/0.1129, allocations: 0 / 481 MB, free: 4.098 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.0002928/0.1132, allocations: 353.3 kB / 481.3 MB, free: 3.695 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.135e-05/0.1132, allocations: 8.031 kB / 481.3 MB, free: 3.688 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.88e-05/0.1132, allocations: 4.922 kB / 481.3 MB, free: 3.684 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.715e-05/0.1133, allocations: 168.4 kB / 481.5 MB, free: 3.48 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.009e-05/0.1134, allocations: 4.375 kB / 481.5 MB, free: 3.477 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.677e-06/0.1134, allocations: 384 / 481.5 MB, free: 3.477 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 6.721e-05/0.1134, allocations: 30.27 kB / 481.5 MB, free: 3.441 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.292e-06/0.1135, allocations: 192 / 481.5 MB, free: 3.441 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.576e-06/0.1135, allocations: 3.938 kB / 481.5 MB, free: 3.438 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.571e-06/0.1135, allocations: 0 / 481.5 MB, free: 3.438 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.553e-05/0.1135, allocations: 3.938 kB / 481.5 MB, free: 3.434 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001276/0.1136, allocations: 153.7 kB / 481.7 MB, free: 3.234 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.703e-05/0.1137, allocations: 18.58 kB / 481.7 MB, free: 3.207 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.441e-05/0.1137, allocations: 8.953 kB / 481.7 MB, free: 3.195 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.001e-06/0.1137, allocations: 0 / 481.7 MB, free: 3.195 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.424e-05/0.1138, allocations: 56.27 kB / 481.8 MB, free: 3.125 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 8.62e-07/0.1138, allocations: 0 / 481.8 MB, free: 3.125 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001532/0.1139, allocations: 75.27 kB / 481.8 MB, free: 3.039 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.424e-05/0.114, allocations: 81.05 kB / 481.9 MB, free: 2.941 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.545e-05/0.1141, allocations: 97.98 kB / 482 MB, free: 2.836 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.035e-05/0.1141, allocations: 29.64 kB / 482 MB, free: 2.801 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.459e-05/0.1141, allocations: 80.14 kB / 482.1 MB, free: 2.719 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.259e-05/0.1141, allocations: 0 / 482.1 MB, free: 2.719 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.752e-05/0.1142, allocations: 21.7 kB / 482.1 MB, free: 2.691 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 9.225e-05/0.1143, allocations: 310.8 kB / 482.4 MB, free: 2.379 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.846e-06/0.1143, allocations: 0 / 482.4 MB, free: 2.379 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.52e-06/0.1143, allocations: 0 / 482.4 MB, free: 2.379 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.948e-05/0.1143, allocations: 64.45 kB / 482.5 MB, free: 2.301 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.764e-06/0.1143, allocations: 0 / 482.5 MB, free: 2.301 MB / 350.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.831e-05/0.1144, allocations: 79.23 kB / 482.6 MB, free: 2.211 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.915e-05/0.1145, allocations: 33.7 kB / 482.6 MB, free: 2.172 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.109e-06/0.1145, allocations: 3.938 kB / 482.6 MB, free: 2.168 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.898e-06/0.1145, allocations: 0 / 482.6 MB, free: 2.168 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.62e-07/0.1145, allocations: 0 / 482.6 MB, free: 2.168 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.737e-06/0.1145, allocations: 0 / 482.6 MB, free: 2.168 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.329e-05/0.1145, allocations: 0 / 482.6 MB, free: 2.168 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.591e-06/0.1145, allocations: 4.031 kB / 482.6 MB, free: 2.164 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 7.015e-05/0.1146, allocations: 135.5 kB / 482.8 MB, free: 2.016 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.995e-06/0.1146, allocations: 0 / 482.8 MB, free: 2.016 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.628e-06/0.1146, allocations: 11.05 kB / 482.8 MB, free: 2.008 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.635e-06/0.1146, allocations: 4 kB / 482.8 MB, free: 2.004 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.996e-06/0.1146, allocations: 0 / 482.8 MB, free: 2.004 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.934e-06/0.1147, allocations: 0 / 482.8 MB, free: 2.004 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.476e-05/0.1147, allocations: 142 kB / 482.9 MB, free: 1.816 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.72e-07/0.1148, allocations: 0 / 482.9 MB, free: 1.816 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.01e-07/0.1148, allocations: 4 kB / 482.9 MB, free: 1.812 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.673e-06/0.1148, allocations: 0 / 482.9 MB, free: 1.812 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.729e-06/0.1148, allocations: 15.92 kB / 482.9 MB, free: 1.797 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.162e-06/0.1148, allocations: 0 / 482.9 MB, free: 1.797 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.72e-07/0.1148, allocations: 0 / 482.9 MB, free: 1.797 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.487e-05/0.1149, allocations: 90.78 kB / 483 MB, free: 1.684 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.074e-05/0.1149, allocations: 81.09 kB / 483.1 MB, free: 1.586 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.289e-05/0.1149, allocations: 3.938 kB / 483.1 MB, free: 1.582 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.018e-05/0.115, allocations: 4.031 kB / 483.1 MB, free: 1.578 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.192e-05/0.115, allocations: 7.938 kB / 483.1 MB, free: 1.57 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.765e-06/0.115, allocations: 0 / 483.1 MB, free: 1.57 MB / 350.1 MB Notification: Performance of sorting global known variables: time 3.383e-05/0.115, allocations: 75.28 kB / 483.2 MB, free: 1.496 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.115, allocations: 0 / 483.2 MB, free: 1.496 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002144/0.1153, allocations: 20 kB / 483.2 MB, free: 1.477 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.0003443/0.1156, allocations: 195.5 kB / 483.4 MB, free: 1.297 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 9.426e-05/0.1157, allocations: 67.34 kB / 483.5 MB, free: 1.219 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.086e-06/0.1157, allocations: 4.062 kB / 483.5 MB, free: 1.215 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 2.739e-05/0.1157, allocations: 51.41 kB / 483.5 MB, free: 1.152 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001285/0.1159, allocations: 4 kB / 483.5 MB, free: 1.148 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000148/0.116, allocations: 84.92 kB / 483.6 MB, free: 1.039 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002137/0.1163, allocations: 0.669 MB / 484.3 MB, free: 352 kB / 350.1 MB Notification: Performance of simCode: alias equations: time 5.53e-06/0.1163, allocations: 0 / 484.3 MB, free: 352 kB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.456e-06/0.1163, allocations: 7.438 kB / 484.3 MB, free: 348 kB / 350.1 MB Notification: Performance of SimCode: time 2.5e-07/0.1163, allocations: 4 kB / 484.3 MB, free: 344 kB / 350.1 MB Notification: Performance of Templates: time 0.002635/0.1189, allocations: 0.645 MB / 484.9 MB, free: 15.69 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