Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Utilities.TestReadFile.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(ModelicaTest.Utilities.TestReadFile,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Utilities.TestReadFile") translateModel(ModelicaTest.Utilities.TestReadFile,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Utilities.TestReadFile") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001201/0.001201, allocations: 110.1 kB / 17.86 MB, free: 5.504 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001209/0.001209, allocations: 201.9 kB / 18.78 MB, free: 4.586 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.864/1.864, allocations: 222.9 MB / 242.4 MB, free: 15.43 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2527/0.2527, allocations: 44.17 MB / 336.8 MB, free: 2.891 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001383/0.001383, allocations: 67.14 kB / 408.3 MB, free: 27.69 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1724/0.1738, allocations: 60.82 MB / 469.2 MB, free: 14.84 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestReadFile): time 0.002072/0.176, allocations: 0.5489 MB / 469.7 MB, free: 14.28 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001366/0.1774, allocations: 0.7641 MB / 470.5 MB, free: 13.52 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.677e-05/0.1774, allocations: 4 kB / 470.5 MB, free: 13.51 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.673e-05/0.1774, allocations: 0 / 470.5 MB, free: 13.51 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001647/0.1776, allocations: 0 / 470.5 MB, free: 13.51 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/Utilities.mo:323:3-363: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.0007455/0.1784, allocations: 57.98 kB / 470.5 MB, free: 13.46 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 4.011e-05/0.1784, allocations: 0 / 470.5 MB, free: 13.46 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.808e-05/0.1785, allocations: 4 kB / 470.5 MB, free: 13.46 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.304e-05/0.1785, allocations: 0 / 470.5 MB, free: 13.46 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.391e-05/0.1786, allocations: 11.98 kB / 470.6 MB, free: 13.45 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 8.095e-06/0.1786, allocations: 4 kB / 470.6 MB, free: 13.44 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001165/0.1787, allocations: 43.97 kB / 470.6 MB, free: 13.4 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 8.676e-06/0.1788, allocations: 0 / 470.6 MB, free: 13.4 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.906e-05/0.1788, allocations: 3.938 kB / 470.6 MB, free: 13.39 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000106/0.1789, allocations: 35.94 kB / 470.6 MB, free: 13.36 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5e-06/0.1789, allocations: 0 / 470.6 MB, free: 13.36 MB / 350.1 MB Notification: Performance of FrontEnd: time 8.41e-07/0.1789, allocations: 0 / 470.6 MB, free: 13.36 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.268e-06/0.1789, allocations: 0 / 470.6 MB, free: 13.36 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.0004262/0.1794, allocations: 353.3 kB / 471 MB, free: 12.96 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.186e-05/0.1794, allocations: 12.03 kB / 471 MB, free: 12.95 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.892e-05/0.1795, allocations: 4.938 kB / 471 MB, free: 12.94 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001346/0.1796, allocations: 164.3 kB / 471.2 MB, free: 12.74 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.229e-05/0.1796, allocations: 384 / 471.2 MB, free: 12.74 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.307e-05/0.1796, allocations: 4.375 kB / 471.2 MB, free: 12.74 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.699e-05/0.1797, allocations: 30.25 kB / 471.2 MB, free: 12.7 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.204e-06/0.1798, allocations: 192 / 471.2 MB, free: 12.7 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.297e-05/0.1798, allocations: 3.938 kB / 471.2 MB, free: 12.7 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.139e-06/0.1798, allocations: 0 / 471.2 MB, free: 12.7 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.181e-05/0.1798, allocations: 4 kB / 471.2 MB, free: 12.7 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001554/0.18, allocations: 149.7 kB / 471.3 MB, free: 12.5 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.656e-05/0.18, allocations: 22.55 kB / 471.4 MB, free: 12.47 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.93e-05/0.1801, allocations: 4.859 kB / 471.4 MB, free: 12.46 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.977e-06/0.1801, allocations: 0 / 471.4 MB, free: 12.46 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.363e-05/0.1801, allocations: 60.25 kB / 471.4 MB, free: 12.39 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 1.062e-06/0.1802, allocations: 0 / 471.4 MB, free: 12.39 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001996/0.1804, allocations: 79.39 kB / 471.5 MB, free: 12.3 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.604e-05/0.1804, allocations: 77.11 kB / 471.6 MB, free: 12.2 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.845e-05/0.1805, allocations: 101.7 kB / 471.7 MB, free: 12.09 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.197e-05/0.1805, allocations: 25.7 kB / 471.7 MB, free: 12.06 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.557e-05/0.1806, allocations: 80.14 kB / 471.8 MB, free: 11.98 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.982e-05/0.1806, allocations: 7.906 kB / 471.8 MB, free: 11.97 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.749e-05/0.1806, allocations: 9.719 kB / 471.8 MB, free: 11.96 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001282/0.1808, allocations: 315.1 kB / 472.1 MB, free: 11.64 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.17e-05/0.1808, allocations: 11.94 kB / 472.1 MB, free: 11.63 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.84e-06/0.1808, allocations: 0 / 472.1 MB, free: 11.63 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.845e-05/0.1809, allocations: 60.27 kB / 472.2 MB, free: 11.55 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.104e-06/0.1809, allocations: 0 / 472.2 MB, free: 11.55 MB / 350.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.569e-05/0.181, allocations: 67.39 kB / 472.3 MB, free: 11.48 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.682e-05/0.181, allocations: 29.7 kB / 472.3 MB, free: 11.44 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.084e-06/0.181, allocations: 3.938 kB / 472.3 MB, free: 11.44 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.313e-05/0.181, allocations: 3.938 kB / 472.3 MB, free: 11.43 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.72e-07/0.181, allocations: 4.094 kB / 472.3 MB, free: 11.43 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.803e-06/0.1811, allocations: 4 kB / 472.3 MB, free: 11.43 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.703e-05/0.1811, allocations: 4 kB / 472.3 MB, free: 11.42 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.324e-06/0.1811, allocations: 0 / 472.3 MB, free: 11.42 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.864e-05/0.1812, allocations: 135.5 kB / 472.4 MB, free: 11.27 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.797e-06/0.1812, allocations: 4 kB / 472.4 MB, free: 11.27 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.434e-05/0.1812, allocations: 11.02 kB / 472.4 MB, free: 11.26 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.222e-06/0.1812, allocations: 0 / 472.4 MB, free: 11.26 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.019e-06/0.1812, allocations: 0 / 472.4 MB, free: 11.26 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.033e-06/0.1812, allocations: 4 kB / 472.5 MB, free: 11.25 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001068/0.1814, allocations: 150 kB / 472.6 MB, free: 11.06 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.002e-06/0.1814, allocations: 0 / 472.6 MB, free: 11.06 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.51e-07/0.1814, allocations: 0 / 472.6 MB, free: 11.06 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.473e-06/0.1814, allocations: 0 / 472.6 MB, free: 11.06 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.428e-06/0.1814, allocations: 3.938 kB / 472.6 MB, free: 11.05 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.72e-07/0.1814, allocations: 0 / 472.6 MB, free: 11.05 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.61e-07/0.1814, allocations: 0 / 472.6 MB, free: 11.05 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001047/0.1815, allocations: 98.77 kB / 472.7 MB, free: 10.93 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.389e-05/0.1816, allocations: 81.09 kB / 472.8 MB, free: 10.84 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.632e-05/0.1816, allocations: 7.938 kB / 472.8 MB, free: 10.83 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.152e-05/0.1816, allocations: 4 kB / 472.8 MB, free: 10.82 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.877e-05/0.1816, allocations: 0 / 472.8 MB, free: 10.82 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.796e-06/0.1816, allocations: 3.938 kB / 472.8 MB, free: 10.82 MB / 350.1 MB Notification: Performance of sorting global known variables: time 3.235e-05/0.1817, allocations: 79.28 kB / 472.9 MB, free: 10.74 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1817, allocations: 0 / 472.9 MB, free: 10.74 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002848/0.182, allocations: 19.98 kB / 472.9 MB, free: 10.72 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.0005526/0.1825, allocations: 187.5 kB / 473.1 MB, free: 10.56 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0001065/0.1827, allocations: 59.41 kB / 473.1 MB, free: 10.49 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.134e-06/0.1827, allocations: 0 / 473.1 MB, free: 10.49 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 3.88e-05/0.1827, allocations: 59.39 kB / 473.2 MB, free: 10.42 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001495/0.1829, allocations: 7.984 kB / 473.2 MB, free: 10.41 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002156/0.1831, allocations: 108.3 kB / 473.3 MB, free: 10.27 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002462/0.1833, allocations: 0.677 MB / 474 MB, free: 9.57 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.056e-05/0.1834, allocations: 7.562 kB / 474 MB, free: 9.562 MB / 350.1 MB Notification: Performance of SimCode: time 3.51e-07/0.1834, allocations: 4 kB / 474 MB, free: 9.559 MB / 350.1 MB Notification: Performance of Templates: time 0.003585/0.187, allocations: 0.8107 MB / 474.8 MB, free: 8.75 MB / 350.1 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Utilities.TestReadFile.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Utilities.TestReadFile.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Utilities.TestReadFile.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Utilities.TestReadFile.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Utilities.TestReadFile.sim & ./ModelicaTest_4.0.0_ModelicaTest.Utilities.TestReadFile -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Utilities.TestReadFile.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_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_4.0.0_ModelicaTest.Utilities.TestReadFile.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches