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.0008581/0.0008581, allocations: 99.97 kB / 16.99 MB, free: 6.402 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009392/0.0009392, allocations: 198.3 kB / 17.9 MB, free: 5.945 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.45/1.45, allocations: 227.2 MB / 245.9 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.2057/0.2057, allocations: 45.91 MB / 344 MB, free: 12.14 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004243/0.0004246, allocations: 11.98 kB / 417.9 MB, free: 20.89 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1424/0.1428, allocations: 63.46 MB / 481.4 MB, free: 5.426 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestReadFile): time 0.0005285/0.1434, allocations: 206.9 kB / 481.6 MB, free: 5.223 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00108/0.1445, allocations: 0.7368 MB / 482.3 MB, free: 4.484 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.061e-05/0.1446, allocations: 0 / 482.3 MB, free: 4.484 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.203e-05/0.1446, allocations: 7.938 kB / 482.3 MB, free: 4.477 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001575/0.1447, allocations: 4 kB / 482.3 MB, free: 4.473 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.0002187/0.145, allocations: 35.89 kB / 482.4 MB, free: 4.438 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 3.151e-05/0.145, allocations: 3.984 kB / 482.4 MB, free: 4.434 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.161e-05/0.1451, allocations: 4 kB / 482.4 MB, free: 4.43 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.778e-05/0.1451, allocations: 3.938 kB / 482.4 MB, free: 4.426 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.313e-05/0.1452, allocations: 0 / 482.4 MB, free: 4.426 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 7.565e-06/0.1452, allocations: 8 kB / 482.4 MB, free: 4.418 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001056/0.1453, allocations: 39.97 kB / 482.4 MB, free: 4.379 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.073e-06/0.1453, allocations: 0 / 482.4 MB, free: 4.379 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.506e-05/0.1453, allocations: 29.69 kB / 482.5 MB, free: 4.344 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 8.564e-05/0.1454, allocations: 27.95 kB / 482.5 MB, free: 4.316 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.607e-06/0.1454, allocations: 0 / 482.5 MB, free: 4.316 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.914e-06/0.1454, allocations: 3.938 kB / 482.5 MB, free: 4.312 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.356e-06/0.1454, allocations: 0 / 482.5 MB, free: 4.312 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.0002884/0.1457, allocations: 353.1 kB / 482.8 MB, free: 3.914 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 0.0001114/0.1459, allocations: 12.03 kB / 482.8 MB, free: 3.902 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.791e-05/0.1459, allocations: 0 / 482.8 MB, free: 3.902 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001058/0.146, allocations: 163 kB / 483 MB, free: 3.703 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.258e-05/0.146, allocations: 0 / 483 MB, free: 3.703 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.221e-05/0.146, allocations: 7.938 kB / 483 MB, free: 3.695 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.912e-05/0.1461, allocations: 33.67 kB / 483 MB, free: 3.656 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.701e-06/0.1461, allocations: 0 / 483 MB, free: 3.656 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.868e-06/0.1462, allocations: 4 kB / 483 MB, free: 3.652 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.147e-06/0.1462, allocations: 4 kB / 483 MB, free: 3.648 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.337e-05/0.1462, allocations: 0 / 483 MB, free: 3.648 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001251/0.1463, allocations: 149.6 kB / 483.2 MB, free: 3.453 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.121e-05/0.1464, allocations: 18.61 kB / 483.2 MB, free: 3.426 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.895e-06/0.1464, allocations: 3.938 kB / 483.2 MB, free: 3.422 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.064e-05/0.1464, allocations: 68.19 kB / 483.3 MB, free: 3.34 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 1.513e-06/0.1464, allocations: 0 / 483.3 MB, free: 3.34 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001596/0.1466, allocations: 59.47 kB / 483.3 MB, free: 3.27 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.284e-05/0.1467, allocations: 85.23 kB / 483.4 MB, free: 3.168 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.292e-05/0.1467, allocations: 93.84 kB / 483.5 MB, free: 3.066 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.136e-05/0.1467, allocations: 25.7 kB / 483.5 MB, free: 3.035 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.401e-05/0.1468, allocations: 80.14 kB / 483.6 MB, free: 2.953 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.621e-05/0.1468, allocations: 4 kB / 483.6 MB, free: 2.949 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.904e-06/0.1468, allocations: 0 / 483.6 MB, free: 2.949 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001049/0.1469, allocations: 314.8 kB / 483.9 MB, free: 2.633 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.675e-06/0.1469, allocations: 0 / 483.9 MB, free: 2.633 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.272e-06/0.147, allocations: 8.062 kB / 483.9 MB, free: 2.625 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.34e-05/0.147, allocations: 29.7 kB / 484 MB, free: 2.59 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.268e-06/0.147, allocations: 3.953 kB / 484 MB, free: 2.586 MB / 350.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.545e-05/0.1471, allocations: 71.23 kB / 484 MB, free: 2.504 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.798e-05/0.1471, allocations: 29.7 kB / 484.1 MB, free: 2.469 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.31e-06/0.1471, allocations: 3.984 kB / 484.1 MB, free: 2.465 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.018e-05/0.1471, allocations: 0 / 484.1 MB, free: 2.465 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.354e-06/0.1472, allocations: 4 kB / 484.1 MB, free: 2.461 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.07e-06/0.1472, allocations: 0 / 484.1 MB, free: 2.461 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.678e-05/0.1472, allocations: 8.094 kB / 484.1 MB, free: 2.453 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.875e-06/0.1472, allocations: 4 kB / 484.1 MB, free: 2.449 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 9.033e-05/0.1473, allocations: 131.5 kB / 484.2 MB, free: 2.305 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.113e-05/0.1473, allocations: 7.953 kB / 484.2 MB, free: 2.297 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.356e-05/0.1473, allocations: 7.109 kB / 484.2 MB, free: 2.293 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.714e-06/0.1473, allocations: 0 / 484.2 MB, free: 2.293 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.807e-06/0.1473, allocations: 0 / 484.2 MB, free: 2.293 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.124e-06/0.1473, allocations: 0 / 484.2 MB, free: 2.293 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001112/0.1475, allocations: 146 kB / 484.4 MB, free: 2.102 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.343e-06/0.1475, allocations: 4 kB / 484.4 MB, free: 2.098 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.07e-06/0.1475, allocations: 7.891 kB / 484.4 MB, free: 2.09 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.428e-06/0.1475, allocations: 3.984 kB / 484.4 MB, free: 2.086 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.342e-06/0.1475, allocations: 0 / 484.4 MB, free: 2.086 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.172e-06/0.1475, allocations: 0 / 484.4 MB, free: 2.086 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.81e-07/0.1475, allocations: 0 / 484.4 MB, free: 2.086 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.987e-05/0.1476, allocations: 86.84 kB / 484.5 MB, free: 1.977 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.361e-05/0.1477, allocations: 81.09 kB / 484.6 MB, free: 1.879 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.478e-05/0.1477, allocations: 11.98 kB / 484.6 MB, free: 1.867 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.768e-06/0.1477, allocations: 0 / 484.6 MB, free: 1.867 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.524e-05/0.1477, allocations: 4 kB / 484.6 MB, free: 1.863 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.036e-06/0.1477, allocations: 0 / 484.6 MB, free: 1.863 MB / 350.1 MB Notification: Performance of sorting global known variables: time 2.709e-05/0.1478, allocations: 75.28 kB / 484.6 MB, free: 1.789 MB / 350.1 MB Notification: Performance of sort global known variables: time 3.01e-07/0.1478, allocations: 3.938 kB / 484.6 MB, free: 1.785 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002077/0.148, allocations: 16 kB / 484.7 MB, free: 1.77 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 (linear and non-linear blocks): 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.1484, allocations: 191 kB / 484.8 MB, free: 1.594 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0001111/0.1485, allocations: 71.34 kB / 484.9 MB, free: 1.512 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.224e-06/0.1485, allocations: 0 / 484.9 MB, free: 1.512 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 3.156e-05/0.1485, allocations: 55.41 kB / 485 MB, free: 1.445 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001114/0.1487, allocations: 0 / 485 MB, free: 1.445 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002258/0.1489, allocations: 78.75 kB / 485.1 MB, free: 1.34 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002849/0.1492, allocations: 0.6731 MB / 485.7 MB, free: 0.6406 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 7.223e-06/0.1492, allocations: 0 / 485.7 MB, free: 0.6406 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.388e-05/0.1492, allocations: 11.44 kB / 485.7 MB, free: 0.6289 MB / 350.1 MB Notification: Performance of SimCode: time 2.2e-07/0.1492, allocations: 128 / 485.7 MB, free: 0.6289 MB / 350.1 MB Notification: Performance of Templates: time 0.003153/0.1524, allocations: 0.6077 MB / 486.3 MB, free: 28 kB / 350.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","../files/ModelicaTest_trunk_ModelicaTest.Utilities.TestReadFile.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches