Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3.2.3_ModelicaTest.Utilities.TestReadFile") translateModel(ModelicaTest.Utilities.TestReadFile,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Utilities.TestReadFile") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001253/0.001253, allocations: 110.1 kB / 16.41 MB, free: 6.48 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.001223/0.001223, allocations: 185.5 kB / 17.34 MB, free: 5.766 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.63/1.63, allocations: 205.1 MB / 223.2 MB, free: 12.11 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2144/0.2144, allocations: 43.53 MB / 314.1 MB, free: 440 kB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0024/0.0024, allocations: 70.03 kB / 441.8 MB, free: 5.68 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1742/0.1766, allocations: 57.79 MB / 499.6 MB, free: 11.81 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestReadFile): time 0.002093/0.1788, allocations: 486.8 kB / 0.4883 GB, free: 11.34 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001702/0.1805, allocations: 0.7882 MB / 0.4891 GB, free: 10.55 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.308e-05/0.1806, allocations: 0 / 0.4891 GB, free: 10.55 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 1.705e-05/0.1806, allocations: 0 / 0.4891 GB, free: 10.55 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002391/0.1808, allocations: 7.938 kB / 0.4891 GB, free: 10.54 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008529/0.1817, allocations: 58.28 kB / 0.4892 GB, free: 10.49 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 7.332e-05/0.1818, allocations: 15.92 kB / 0.4892 GB, free: 10.48 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.567e-05/0.1818, allocations: 4 kB / 0.4892 GB, free: 10.47 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.773e-05/0.1819, allocations: 0 / 0.4892 GB, free: 10.47 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.767e-05/0.182, allocations: 11.92 kB / 0.4892 GB, free: 10.46 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 1.047e-05/0.182, allocations: 0 / 0.4892 GB, free: 10.46 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001658/0.1822, allocations: 51.95 kB / 0.4892 GB, free: 10.41 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 8.105e-06/0.1822, allocations: 0 / 0.4892 GB, free: 10.41 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 2.869e-05/0.1822, allocations: 0 / 0.4892 GB, free: 10.41 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001624/0.1824, allocations: 47.94 kB / 0.4893 GB, free: 10.36 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.587e-05/0.1824, allocations: 3.984 kB / 0.4893 GB, free: 10.36 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.663e-06/0.1824, allocations: 0 / 0.4893 GB, free: 10.36 MB / 382.1 MB Notification: Performance of Transformations before backend: time 6.212e-06/0.1824, allocations: 4 kB / 0.4893 GB, free: 10.36 MB / 382.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.000428/0.1829, allocations: 357.1 kB / 0.4896 GB, free: 9.949 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.279e-05/0.1829, allocations: 19.88 kB / 0.4897 GB, free: 9.93 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.38e-05/0.183, allocations: 0.9375 kB / 0.4897 GB, free: 9.93 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001381/0.1831, allocations: 168.3 kB / 0.4898 GB, free: 9.727 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.247e-05/0.1831, allocations: 384 / 0.4898 GB, free: 9.727 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.406e-06/0.1832, allocations: 384 / 0.4898 GB, free: 9.727 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.215e-05/0.1833, allocations: 30.27 kB / 0.4898 GB, free: 9.691 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.325e-06/0.1833, allocations: 4.188 kB / 0.4898 GB, free: 9.688 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.3e-05/0.1833, allocations: 3.938 kB / 0.4899 GB, free: 9.684 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.648e-06/0.1833, allocations: 0 / 0.4899 GB, free: 9.684 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.057e-05/0.1833, allocations: 4 kB / 0.4899 GB, free: 9.68 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001694/0.1835, allocations: 145.7 kB / 0.49 GB, free: 9.488 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.737e-05/0.1836, allocations: 22.52 kB / 0.49 GB, free: 9.457 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.944e-05/0.1836, allocations: 8.953 kB / 0.49 GB, free: 9.445 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.208e-05/0.1836, allocations: 0 / 0.49 GB, free: 9.445 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.678e-05/0.1837, allocations: 60.27 kB / 0.4901 GB, free: 9.371 MB / 382.1 MB Notification: Performance of pre-optimization done (n=1): time 1.252e-06/0.1837, allocations: 0 / 0.4901 GB, free: 9.371 MB / 382.1 MB Notification: Performance of matching and sorting (n=1): time 0.0002285/0.1839, allocations: 67.33 kB / 0.4901 GB, free: 9.293 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.151e-05/0.184, allocations: 81.11 kB / 0.4902 GB, free: 9.195 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.93e-05/0.1841, allocations: 93.86 kB / 0.4903 GB, free: 9.094 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.531e-05/0.1841, allocations: 29.64 kB / 0.4903 GB, free: 9.059 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.775e-05/0.1842, allocations: 80.39 kB / 0.4904 GB, free: 8.977 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.859e-05/0.1842, allocations: 4 kB / 0.4904 GB, free: 8.973 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.851e-05/0.1843, allocations: 17.7 kB / 0.4904 GB, free: 8.949 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001614/0.1844, allocations: 310.8 kB / 0.4907 GB, free: 8.637 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.219e-05/0.1844, allocations: 0 / 0.4907 GB, free: 8.637 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.144e-05/0.1845, allocations: 8 kB / 0.4907 GB, free: 8.629 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.607e-05/0.1845, allocations: 64.27 kB / 0.4908 GB, free: 8.551 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.374e-06/0.1846, allocations: 0 / 0.4908 GB, free: 8.551 MB / 382.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 9.653e-05/0.1847, allocations: 67.45 kB / 0.4909 GB, free: 8.473 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.479e-05/0.1847, allocations: 33.64 kB / 0.4909 GB, free: 8.434 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.456e-06/0.1847, allocations: 3.938 kB / 0.4909 GB, free: 8.43 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.543e-05/0.1848, allocations: 3.938 kB / 0.4909 GB, free: 8.426 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.827e-06/0.1848, allocations: 3.938 kB / 0.4909 GB, free: 8.422 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.362e-06/0.1848, allocations: 0 / 0.4909 GB, free: 8.422 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.024e-05/0.1848, allocations: 4 kB / 0.4909 GB, free: 8.418 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.368e-06/0.1848, allocations: 0 / 0.4909 GB, free: 8.418 MB / 382.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 0.0001011/0.1849, allocations: 139.5 kB / 0.491 GB, free: 8.266 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.929e-06/0.185, allocations: 8.031 kB / 0.4911 GB, free: 8.258 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.625e-05/0.185, allocations: 11.05 kB / 0.4911 GB, free: 8.242 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.172e-06/0.185, allocations: 0 / 0.4911 GB, free: 8.242 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.817e-06/0.185, allocations: 0 / 0.4911 GB, free: 8.242 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.525e-06/0.185, allocations: 0 / 0.4911 GB, free: 8.242 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001039/0.1851, allocations: 145.7 kB / 0.4912 GB, free: 8.051 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.52e-07/0.1851, allocations: 4 kB / 0.4912 GB, free: 8.047 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.61e-07/0.1851, allocations: 0 / 0.4912 GB, free: 8.047 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.685e-06/0.1851, allocations: 3.984 kB / 0.4912 GB, free: 8.043 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.835e-06/0.1851, allocations: 3.938 kB / 0.4912 GB, free: 8.039 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.62e-07/0.1851, allocations: 0 / 0.4912 GB, free: 8.039 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.114e-06/0.1851, allocations: 7.984 kB / 0.4912 GB, free: 8.031 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001037/0.1853, allocations: 86.84 kB / 0.4913 GB, free: 7.922 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.625e-05/0.1853, allocations: 85 kB / 0.4914 GB, free: 7.82 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.539e-05/0.1853, allocations: 11.88 kB / 0.4914 GB, free: 7.809 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.516e-06/0.1853, allocations: 0 / 0.4914 GB, free: 7.809 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.496e-05/0.1854, allocations: 0 / 0.4914 GB, free: 7.809 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.685e-06/0.1854, allocations: 0 / 0.4914 GB, free: 7.809 MB / 382.1 MB Notification: Performance of sorting global known variables: time 5.042e-05/0.1854, allocations: 79.31 kB / 0.4915 GB, free: 7.73 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.91e-07/0.1854, allocations: 0 / 0.4915 GB, free: 7.73 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0003323/0.1858, allocations: 24 kB / 0.4915 GB, free: 7.707 MB / 382.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.000576/0.1864, allocations: 173.3 kB / 0.4917 GB, free: 7.539 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0002008/0.1866, allocations: 59.41 kB / 0.4917 GB, free: 7.469 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.785e-06/0.1866, allocations: 3.938 kB / 0.4917 GB, free: 7.465 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 5.516e-05/0.1867, allocations: 59.41 kB / 0.4918 GB, free: 7.395 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000233/0.1869, allocations: 7.734 kB / 0.4918 GB, free: 7.391 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003303/0.1873, allocations: 84.92 kB / 0.4919 GB, free: 7.281 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005038/0.1878, allocations: 0.6807 MB / 0.4925 GB, free: 6.574 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 1.251e-05/0.1878, allocations: 3.984 kB / 0.4925 GB, free: 6.57 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.61e-05/0.1878, allocations: 7.438 kB / 0.4925 GB, free: 6.562 MB / 382.1 MB Notification: Performance of SimCode: time 9.82e-07/0.1878, allocations: 0 / 0.4925 GB, free: 6.562 MB / 382.1 MB Notification: Performance of Templates: time 0.004475/0.1923, allocations: 0.6524 MB / 0.4932 GB, free: 5.914 MB / 382.1 MB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.Utilities.TestReadFile.makefile (rm -f ModelicaTest_3.2.3_ModelicaTest.Utilities.TestReadFile.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Utilities.TestReadFile.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Utilities.TestReadFile.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Utilities.TestReadFile.sim & ./ModelicaTest_3.2.3_ModelicaTest.Utilities.TestReadFile -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.Utilities.TestReadFile.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Utilities.TestReadFile_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Utilities/TestReadFile/TestReadFile.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_ModelicaTest.Utilities.TestReadFile.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches