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.001051/0.001051, allocations: 115.8 kB / 18.4 MB, free: 4.621 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001045/0.001046, allocations: 199.5 kB / 19.34 MB, free: 3.68 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.349/1.349, allocations: 227.4 MB / 247.5 MB, free: 10.34 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2165/0.2165, allocations: 46.11 MB / 344.9 MB, free: 11.48 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0015/0.0015, allocations: 79.88 kB / 419 MB, free: 19.01 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1322/0.1337, allocations: 62.45 MB / 481.4 MB, free: 4.527 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestReadFile): time 0.001633/0.1354, allocations: 474.9 kB / 481.9 MB, free: 4.062 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001129/0.1366, allocations: 0.7801 MB / 482.7 MB, free: 3.281 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.694e-05/0.1366, allocations: 4 kB / 482.7 MB, free: 3.277 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.558e-05/0.1366, allocations: 4 kB / 482.7 MB, free: 3.273 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001696/0.1368, allocations: 11.94 kB / 482.7 MB, free: 3.262 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.0005894/0.1374, allocations: 50.97 kB / 482.8 MB, free: 3.215 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 6.09e-05/0.1375, allocations: 7.938 kB / 482.8 MB, free: 3.207 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.997e-05/0.1375, allocations: 7.922 kB / 482.8 MB, free: 3.199 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.843e-05/0.1375, allocations: 0 / 482.8 MB, free: 3.199 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.918e-05/0.1376, allocations: 4 kB / 482.8 MB, free: 3.195 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 8.926e-06/0.1376, allocations: 0 / 482.8 MB, free: 3.195 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001228/0.1378, allocations: 55.95 kB / 482.8 MB, free: 3.141 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.504e-06/0.1378, allocations: 0 / 482.8 MB, free: 3.141 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 1.963e-05/0.1378, allocations: 4 kB / 482.8 MB, free: 3.137 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001265/0.1379, allocations: 55.86 kB / 482.9 MB, free: 3.082 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.26e-06/0.138, allocations: 0 / 482.9 MB, free: 3.082 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.044e-06/0.138, allocations: 0 / 482.9 MB, free: 3.082 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.23e-06/0.138, allocations: 4 kB / 482.9 MB, free: 3.078 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.0003461/0.1383, allocations: 349.3 kB / 483.2 MB, free: 2.68 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.336e-05/0.1384, allocations: 12.03 kB / 483.3 MB, free: 2.668 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.001e-05/0.1384, allocations: 0.9375 kB / 483.3 MB, free: 2.668 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001027/0.1385, allocations: 164.4 kB / 483.4 MB, free: 2.469 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.049e-05/0.1385, allocations: 384 / 483.4 MB, free: 2.469 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.149e-05/0.1385, allocations: 8.375 kB / 483.4 MB, free: 2.461 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.71e-05/0.1386, allocations: 30.2 kB / 483.5 MB, free: 2.426 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.584e-06/0.1386, allocations: 192 / 483.5 MB, free: 2.426 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.224e-05/0.1387, allocations: 7.938 kB / 483.5 MB, free: 2.418 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.705e-06/0.1387, allocations: 0 / 483.5 MB, free: 2.418 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.527e-05/0.1387, allocations: 4 kB / 483.5 MB, free: 2.414 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001343/0.1388, allocations: 153.6 kB / 483.6 MB, free: 2.215 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.008e-05/0.1389, allocations: 18.61 kB / 483.6 MB, free: 2.188 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.247e-05/0.1389, allocations: 8.859 kB / 483.6 MB, free: 2.176 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.177e-06/0.1389, allocations: 3.938 kB / 483.6 MB, free: 2.172 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.952e-05/0.139, allocations: 56.33 kB / 483.7 MB, free: 2.102 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 1.172e-06/0.139, allocations: 4 kB / 483.7 MB, free: 2.098 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001672/0.1391, allocations: 71.33 kB / 483.8 MB, free: 2.016 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.403e-05/0.1392, allocations: 77.11 kB / 483.8 MB, free: 1.922 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.288e-05/0.1393, allocations: 93.98 kB / 483.9 MB, free: 1.82 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.589e-05/0.1393, allocations: 29.64 kB / 484 MB, free: 1.785 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.387e-05/0.1393, allocations: 80.14 kB / 484 MB, free: 1.703 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.585e-05/0.1393, allocations: 4 kB / 484 MB, free: 1.699 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.498e-05/0.1394, allocations: 13.72 kB / 484.1 MB, free: 1.68 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001039/0.1395, allocations: 314.8 kB / 484.4 MB, free: 1.363 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.172e-05/0.1395, allocations: 4 kB / 484.4 MB, free: 1.359 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.622e-06/0.1395, allocations: 3.938 kB / 484.4 MB, free: 1.355 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.628e-05/0.1395, allocations: 64.45 kB / 484.4 MB, free: 1.277 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.224e-06/0.1396, allocations: 0 / 484.4 MB, free: 1.277 MB / 350.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.647e-05/0.1396, allocations: 67.31 kB / 484.5 MB, free: 1.199 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.485e-05/0.1397, allocations: 36.03 kB / 484.5 MB, free: 1.16 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.869e-06/0.1397, allocations: 3.938 kB / 484.5 MB, free: 1.156 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.322e-05/0.1397, allocations: 3.984 kB / 484.5 MB, free: 1.152 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.525e-06/0.1397, allocations: 4 kB / 484.6 MB, free: 1.148 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.208e-06/0.1397, allocations: 0 / 484.6 MB, free: 1.148 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.425e-05/0.1397, allocations: 0 / 484.6 MB, free: 1.148 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.703e-06/0.1397, allocations: 32 / 484.6 MB, free: 1.148 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 8.662e-05/0.1398, allocations: 139.5 kB / 484.7 MB, free: 0.9961 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.806e-06/0.1398, allocations: 0 / 484.7 MB, free: 0.9961 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.036e-05/0.1399, allocations: 11 kB / 484.7 MB, free: 0.9883 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.72e-07/0.1399, allocations: 0 / 484.7 MB, free: 0.9883 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.961e-06/0.1399, allocations: 3.984 kB / 484.7 MB, free: 0.9844 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.274e-06/0.1399, allocations: 0 / 484.7 MB, free: 0.9844 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.405e-05/0.14, allocations: 149.7 kB / 484.9 MB, free: 0.7891 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.91e-07/0.14, allocations: 0 / 484.9 MB, free: 0.7891 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.32e-07/0.14, allocations: 0 / 484.9 MB, free: 0.7891 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.052e-06/0.14, allocations: 4 kB / 484.9 MB, free: 0.7852 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.734e-06/0.14, allocations: 3.938 kB / 484.9 MB, free: 0.7812 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.02e-07/0.14, allocations: 0 / 484.9 MB, free: 0.7812 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.224e-06/0.14, allocations: 3.984 kB / 484.9 MB, free: 0.7773 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.351e-05/0.1401, allocations: 86.84 kB / 484.9 MB, free: 0.668 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.818e-05/0.1402, allocations: 81.11 kB / 485 MB, free: 0.5703 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.437e-05/0.1402, allocations: 7.922 kB / 485 MB, free: 0.5625 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.114e-05/0.1402, allocations: 11.97 kB / 485 MB, free: 0.5508 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.589e-05/0.1402, allocations: 0 / 485 MB, free: 0.5508 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.639e-06/0.1402, allocations: 0 / 485 MB, free: 0.5508 MB / 350.1 MB Notification: Performance of sorting global known variables: time 4.63e-05/0.1403, allocations: 83.22 kB / 485.1 MB, free: 480 kB / 350.1 MB Notification: Performance of sort global known variables: time 1.433e-06/0.1403, allocations: 0 / 485.1 MB, free: 480 kB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002206/0.1405, allocations: 19.94 kB / 485.1 MB, free: 460 kB / 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.0003646/0.1409, allocations: 198.6 kB / 485.3 MB, free: 276 kB / 350.1 MB Notification: Performance of simCode: created initialization part: time 9.101e-05/0.141, allocations: 55.41 kB / 485.4 MB, free: 208 kB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.575e-06/0.141, allocations: 0 / 485.4 MB, free: 208 kB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 3.45e-05/0.141, allocations: 59.47 kB / 485.5 MB, free: 136 kB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001328/0.1412, allocations: 4 kB / 485.5 MB, free: 132 kB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001681/0.1413, allocations: 80.92 kB / 485.5 MB, free: 24 kB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00024/0.1416, allocations: 0.669 MB / 486.2 MB, free: 15.33 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 5.139e-06/0.1416, allocations: 0 / 486.2 MB, free: 15.33 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.197e-06/0.1416, allocations: 7.438 kB / 486.2 MB, free: 15.32 MB / 366.1 MB Notification: Performance of SimCode: time 2.2e-07/0.1416, allocations: 0 / 486.2 MB, free: 15.32 MB / 366.1 MB Notification: Performance of Templates: time 0.002847/0.1445, allocations: 0.6595 MB / 486.9 MB, free: 14.67 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 -s cvode -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