Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Utilities.TestReadFile.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 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(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001043/0.001044, allocations: 175.2 kB / 17.41 MB, free: 4.293 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.337/1.337, allocations: 225.7 MB / 243.9 MB, free: 8.457 MB / 202.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008093/0.0008097, allocations: 89.31 kB / 295.1 MB, free: 9.52 MB / 234.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.3514/0.3514, allocations: 44.31 MB / 390.5 MB, free: 38.06 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004713/0.0004714, allocations: 12 kB / 463.1 MB, free: 0.4961 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.288/0.2885, allocations: 61.9 MB / 0.5127 GB, free: 37.68 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestReadFile): time 0.0005277/0.289, allocations: 222 kB / 0.5129 GB, free: 37.53 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.0008837/0.2899, allocations: 0.9777 MB / 0.5139 GB, free: 36.72 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.729e-05/0.29, allocations: 0 / 0.5139 GB, free: 36.72 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 1.721e-05/0.29, allocations: 0 / 0.5139 GB, free: 36.72 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001241/0.2901, allocations: 6.688 kB / 0.5139 GB, free: 36.72 MB / 378.7 MB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-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.0006309/0.2908, allocations: 49.89 kB / 0.5139 GB, free: 36.69 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 3.292e-05/0.2908, allocations: 2.906 kB / 0.514 GB, free: 36.69 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.972e-05/0.2908, allocations: 8 kB / 0.514 GB, free: 36.68 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 1.933e-05/0.2909, allocations: 6.875 kB / 0.514 GB, free: 36.68 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 8.822e-05/0.291, allocations: 10.86 kB / 0.514 GB, free: 36.67 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 8.706e-06/0.291, allocations: 0 / 0.514 GB, free: 36.67 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001033/0.2911, allocations: 45.16 kB / 0.514 GB, free: 36.66 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 9.528e-06/0.2911, allocations: 2.438 kB / 0.514 GB, free: 36.66 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 2.784e-05/0.2911, allocations: 25.7 kB / 0.514 GB, free: 36.63 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001214/0.2913, allocations: 52.86 kB / 0.5141 GB, free: 36.61 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.119e-06/0.2913, allocations: 0 / 0.5141 GB, free: 36.61 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.082e-06/0.2913, allocations: 0 / 0.5141 GB, free: 36.61 MB / 378.7 MB Notification: Performance of Transformations before backend: time 8.145e-06/0.2913, allocations: 0 / 0.5141 GB, free: 36.61 MB / 378.7 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.0002595/0.2916, allocations: 354.1 kB / 0.5144 GB, free: 36.21 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.369e-05/0.2916, allocations: 8.062 kB / 0.5144 GB, free: 36.21 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.826e-05/0.2916, allocations: 3.75 kB / 0.5144 GB, free: 36.21 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.428e-05/0.2917, allocations: 168.3 kB / 0.5146 GB, free: 36.01 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.262e-05/0.2918, allocations: 384 / 0.5146 GB, free: 36.01 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.235e-05/0.2918, allocations: 6.375 kB / 0.5146 GB, free: 36.01 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.176e-05/0.2919, allocations: 26.27 kB / 0.5146 GB, free: 35.98 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.945e-06/0.2919, allocations: 3.125 kB / 0.5146 GB, free: 35.98 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.516e-06/0.2919, allocations: 7.938 kB / 0.5146 GB, free: 35.97 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.308e-06/0.2919, allocations: 0 / 0.5146 GB, free: 35.97 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.432e-05/0.2919, allocations: 0 / 0.5146 GB, free: 35.97 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 8.988e-05/0.292, allocations: 148 kB / 0.5148 GB, free: 35.79 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 3.429e-05/0.2921, allocations: 25.48 kB / 0.5148 GB, free: 35.75 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.139e-05/0.2921, allocations: 4.859 kB / 0.5148 GB, free: 35.75 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.855e-06/0.2921, allocations: 0 / 0.5148 GB, free: 35.75 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.069e-05/0.2921, allocations: 63.27 kB / 0.5149 GB, free: 35.67 MB / 378.7 MB Notification: Performance of pre-optimization done (n=1): time 9.52e-07/0.2921, allocations: 0 / 0.5149 GB, free: 35.67 MB / 378.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001547/0.2923, allocations: 66.86 kB / 0.5149 GB, free: 35.61 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.364e-05/0.2923, allocations: 77.11 kB / 0.515 GB, free: 35.51 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.79e-05/0.2924, allocations: 93.86 kB / 0.5151 GB, free: 35.41 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 7.695e-06/0.2924, allocations: 28.61 kB / 0.5151 GB, free: 35.38 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 1.598e-05/0.2924, allocations: 80.14 kB / 0.5152 GB, free: 35.3 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.809e-05/0.2924, allocations: 7.656 kB / 0.5152 GB, free: 35.29 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.864e-06/0.2925, allocations: 4 kB / 0.5152 GB, free: 35.29 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 5.069e-05/0.2925, allocations: 310.8 kB / 0.5155 GB, free: 34.98 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.346e-06/0.2925, allocations: 6.906 kB / 0.5155 GB, free: 34.97 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.578e-06/0.2925, allocations: 0 / 0.5155 GB, free: 34.97 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.696e-05/0.2926, allocations: 62.77 kB / 0.5156 GB, free: 34.9 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.465e-06/0.2926, allocations: 2.656 kB / 0.5156 GB, free: 34.9 MB / 378.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 5.234e-05/0.2926, allocations: 60.33 kB / 0.5156 GB, free: 34.84 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.979e-05/0.2927, allocations: 31.42 kB / 0.5157 GB, free: 34.8 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.42e-06/0.2927, allocations: 11.94 kB / 0.5157 GB, free: 34.79 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.969e-06/0.2927, allocations: 0 / 0.5157 GB, free: 34.79 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.21e-07/0.2927, allocations: 7.062 kB / 0.5157 GB, free: 34.79 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.209e-06/0.2927, allocations: 3.938 kB / 0.5157 GB, free: 34.79 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.312e-05/0.2927, allocations: 0 / 0.5157 GB, free: 34.79 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.93e-06/0.2927, allocations: 0 / 0.5157 GB, free: 34.79 MB / 378.7 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 4.538e-05/0.2928, allocations: 138.4 kB / 0.5158 GB, free: 34.64 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.223e-06/0.2928, allocations: 3.984 kB / 0.5158 GB, free: 34.64 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.438e-06/0.2928, allocations: 21.69 kB / 0.5159 GB, free: 34.62 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.122e-06/0.2928, allocations: 0 / 0.5159 GB, free: 34.62 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.685e-06/0.2928, allocations: 0 / 0.5159 GB, free: 34.62 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.794e-06/0.2928, allocations: 0 / 0.5159 GB, free: 34.62 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 4.721e-05/0.2929, allocations: 153.9 kB / 0.516 GB, free: 34.43 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.52e-07/0.2929, allocations: 0 / 0.516 GB, free: 34.43 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.51e-07/0.2929, allocations: 0 / 0.516 GB, free: 34.43 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.02e-07/0.2929, allocations: 0 / 0.516 GB, free: 34.43 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.761e-06/0.2929, allocations: 3.938 kB / 0.516 GB, free: 34.43 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.61e-07/0.2929, allocations: 0 / 0.516 GB, free: 34.43 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.91e-07/0.2929, allocations: 3.125 kB / 0.516 GB, free: 34.43 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 5.996e-05/0.293, allocations: 97.67 kB / 0.5161 GB, free: 34.32 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.351e-05/0.293, allocations: 77.11 kB / 0.5162 GB, free: 34.23 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.225e-05/0.293, allocations: 7.172 kB / 0.5162 GB, free: 34.22 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.588e-06/0.293, allocations: 0 / 0.5162 GB, free: 34.22 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.363e-05/0.293, allocations: 7.812 kB / 0.5162 GB, free: 34.22 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.344e-06/0.2931, allocations: 0 / 0.5162 GB, free: 34.22 MB / 378.7 MB Notification: Performance of sorting global known variables: time 1.289e-05/0.2931, allocations: 75.28 kB / 0.5163 GB, free: 34.14 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2931, allocations: 4.125 kB / 0.5163 GB, free: 34.14 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0002043/0.2933, allocations: 18 kB / 0.5163 GB, free: 34.14 MB / 378.7 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.0002971/0.2936, allocations: 216.8 kB / 0.5165 GB, free: 34 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 7.316e-05/0.2937, allocations: 57.31 kB / 0.5165 GB, free: 33.94 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.134e-06/0.2937, allocations: 0 / 0.5165 GB, free: 33.94 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 1.837e-05/0.2937, allocations: 57.94 kB / 0.5166 GB, free: 33.88 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001269/0.2938, allocations: 3 kB / 0.5166 GB, free: 33.88 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001369/0.294, allocations: 84.89 kB / 0.5167 GB, free: 33.77 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.301e-05/0.2941, allocations: 0.6725 MB / 0.5173 GB, free: 33.08 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 5.6e-06/0.2941, allocations: 3.984 kB / 0.5173 GB, free: 33.07 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.462e-06/0.2941, allocations: 14.38 kB / 0.5174 GB, free: 33.06 MB / 378.7 MB Notification: Performance of SimCode: time 2.11e-07/0.2941, allocations: 0 / 0.5174 GB, free: 33.06 MB / 378.7 MB Notification: Performance of Templates: time 0.002351/0.2965, allocations: 0.6282 MB / 0.518 GB, free: 32.97 MB / 378.7 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Utilities/TestReadFile/TestReadFile.csv","../files/ModelicaTest_4.0.0_ModelicaTest.Utilities.TestReadFile.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches