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/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/ModelicaServices 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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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) 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/Complex 4.0.0+maint.om/package.mo): time 0.001607/0.001607, allocations: 186.9 kB / 17.97 MB, free: 3.797 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.378/1.378, allocations: 222.9 MB / 241.6 MB, free: 10.97 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009982/0.0009981, allocations: 93.03 kB / 291.9 MB, free: 10.93 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.365/0.365, allocations: 44.13 MB / 386.1 MB, free: 38.05 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001039/0.001039, allocations: 55.92 kB / 457.7 MB, free: 2.305 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3001/0.3011, allocations: 60.8 MB / 0.5064 GB, free: 38.26 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestReadFile): time 0.001777/0.303, allocations: 0.5412 MB / 0.5069 GB, free: 37.95 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.001178/0.3042, allocations: 0.7626 MB / 0.5077 GB, free: 37.41 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.594e-05/0.3042, allocations: 1.062 kB / 0.5077 GB, free: 37.41 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 2.247e-05/0.3042, allocations: 0 / 0.5077 GB, free: 37.41 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001617/0.3044, allocations: 2.281 kB / 0.5077 GB, free: 37.41 MB / 378.7 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.0006822/0.3051, allocations: 45.41 kB / 0.5077 GB, free: 37.39 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 3.764e-05/0.3052, allocations: 1.406 kB / 0.5077 GB, free: 37.39 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.578e-05/0.3052, allocations: 9.703 kB / 0.5077 GB, free: 37.38 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 1.946e-05/0.3052, allocations: 5.688 kB / 0.5077 GB, free: 37.38 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 7.664e-05/0.3053, allocations: 10.78 kB / 0.5077 GB, free: 37.37 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 9.588e-06/0.3053, allocations: 0 / 0.5077 GB, free: 37.37 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001059/0.3054, allocations: 50.8 kB / 0.5078 GB, free: 37.35 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 7.484e-06/0.3055, allocations: 0 / 0.5078 GB, free: 37.35 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 2.204e-05/0.3055, allocations: 2.844 kB / 0.5078 GB, free: 37.35 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001054/0.3056, allocations: 46.47 kB / 0.5078 GB, free: 37.34 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.566e-06/0.3056, allocations: 3.938 kB / 0.5078 GB, free: 37.33 MB / 378.7 MB Notification: Performance of FrontEnd: time 9.12e-07/0.3056, allocations: 0 / 0.5078 GB, free: 37.33 MB / 378.7 MB Notification: Performance of Transformations before backend: time 4.389e-06/0.3056, allocations: 3.156 kB / 0.5078 GB, free: 37.33 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.0002567/0.3059, allocations: 351 kB / 0.5082 GB, free: 36.94 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.289e-05/0.3059, allocations: 12.81 kB / 0.5082 GB, free: 36.94 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.101e-05/0.306, allocations: 8.172 kB / 0.5082 GB, free: 36.93 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.821e-05/0.306, allocations: 167.2 kB / 0.5083 GB, free: 36.73 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.354e-06/0.3061, allocations: 384 / 0.5083 GB, free: 36.73 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.151e-05/0.3061, allocations: 384 / 0.5083 GB, free: 36.73 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 6.876e-05/0.3061, allocations: 33.06 kB / 0.5084 GB, free: 36.7 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.936e-06/0.3062, allocations: 192 / 0.5084 GB, free: 36.7 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.137e-06/0.3062, allocations: 7.875 kB / 0.5084 GB, free: 36.69 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.436e-06/0.3062, allocations: 3.938 kB / 0.5084 GB, free: 36.69 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.611e-05/0.3062, allocations: 10.34 kB / 0.5084 GB, free: 36.68 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 8.872e-05/0.3063, allocations: 141.7 kB / 0.5085 GB, free: 36.5 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 2.98e-05/0.3063, allocations: 21.39 kB / 0.5086 GB, free: 36.47 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.154e-05/0.3063, allocations: 8.094 kB / 0.5086 GB, free: 36.46 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.993e-06/0.3064, allocations: 2.5 kB / 0.5086 GB, free: 36.46 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.788e-05/0.3064, allocations: 56.27 kB / 0.5086 GB, free: 36.39 MB / 378.7 MB Notification: Performance of pre-optimization done (n=1): time 9.32e-07/0.3064, allocations: 0 / 0.5086 GB, free: 36.39 MB / 378.7 MB Notification: Performance of matching and sorting (n=1): time 0.000152/0.3066, allocations: 73.5 kB / 0.5087 GB, free: 36.32 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.818e-05/0.3066, allocations: 80.34 kB / 0.5088 GB, free: 36.22 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.462e-05/0.3067, allocations: 93.86 kB / 0.5089 GB, free: 36.12 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 9.057e-06/0.3067, allocations: 28.27 kB / 0.5089 GB, free: 36.09 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 1.515e-05/0.3067, allocations: 80.14 kB / 0.509 GB, free: 36.01 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.598e-05/0.3067, allocations: 0 / 0.509 GB, free: 36.01 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.551e-05/0.3068, allocations: 12.03 kB / 0.509 GB, free: 35.99 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 5.843e-05/0.3068, allocations: 318.5 kB / 0.5093 GB, free: 35.68 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.142e-05/0.3068, allocations: 2.281 kB / 0.5093 GB, free: 35.68 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.424e-06/0.3068, allocations: 0 / 0.5093 GB, free: 35.68 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.664e-05/0.3069, allocations: 73.36 kB / 0.5093 GB, free: 35.59 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.704e-06/0.3069, allocations: 0 / 0.5093 GB, free: 35.59 MB / 378.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 5.361e-05/0.307, allocations: 62.97 kB / 0.5094 GB, free: 35.53 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.875e-05/0.307, allocations: 31.05 kB / 0.5094 GB, free: 35.5 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.159e-06/0.307, allocations: 3.938 kB / 0.5094 GB, free: 35.5 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.411e-05/0.307, allocations: 4.094 kB / 0.5094 GB, free: 35.49 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.573e-06/0.307, allocations: 0 / 0.5094 GB, free: 35.49 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.29e-06/0.307, allocations: 0 / 0.5094 GB, free: 35.49 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.6e-05/0.3071, allocations: 2.844 kB / 0.5094 GB, free: 35.49 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.316e-06/0.3071, allocations: 7.984 kB / 0.5095 GB, free: 35.48 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 6.48e-05/0.3071, allocations: 138 kB / 0.5096 GB, free: 35.34 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.265e-06/0.3072, allocations: 3.281 kB / 0.5096 GB, free: 35.34 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.248e-05/0.3072, allocations: 10.66 kB / 0.5096 GB, free: 35.33 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.575e-06/0.3072, allocations: 2.625 kB / 0.5096 GB, free: 35.33 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.138e-06/0.3072, allocations: 4 kB / 0.5096 GB, free: 35.32 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.585e-06/0.3072, allocations: 0 / 0.5096 GB, free: 35.32 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 6.833e-05/0.3073, allocations: 150 kB / 0.5097 GB, free: 35.14 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.71e-07/0.3073, allocations: 0 / 0.5097 GB, free: 35.14 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.61e-07/0.3073, allocations: 0 / 0.5097 GB, free: 35.14 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.122e-06/0.3073, allocations: 0 / 0.5097 GB, free: 35.14 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.294e-06/0.3073, allocations: 3.938 kB / 0.5098 GB, free: 35.13 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.924e-06/0.3073, allocations: 3.938 kB / 0.5098 GB, free: 35.13 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.92e-07/0.3073, allocations: 2.688 kB / 0.5098 GB, free: 35.13 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000216/0.3075, allocations: 0.6483 MB / 0.5104 GB, free: 34.44 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.644e-05/0.3076, allocations: 77.11 kB / 0.5105 GB, free: 34.34 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.136e-05/0.3076, allocations: 0 / 0.5105 GB, free: 34.34 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.987e-06/0.3076, allocations: 0 / 0.5105 GB, free: 34.34 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.402e-05/0.3076, allocations: 2.406 kB / 0.5105 GB, free: 34.34 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.415e-06/0.3076, allocations: 0 / 0.5105 GB, free: 34.34 MB / 378.7 MB Notification: Performance of sorting global known variables: time 1.937e-05/0.3076, allocations: 82.19 kB / 0.5105 GB, free: 34.27 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3076, allocations: 0 / 0.5105 GB, free: 34.27 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0003799/0.308, allocations: 25.97 kB / 0.5106 GB, free: 34.26 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.0003445/0.3084, allocations: 194.6 kB / 0.5108 GB, free: 34.14 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 8.119e-05/0.3085, allocations: 57 kB / 0.5108 GB, free: 34.07 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.354e-06/0.3085, allocations: 0 / 0.5108 GB, free: 34.07 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 1.966e-05/0.3085, allocations: 54 kB / 0.5109 GB, free: 34.01 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001337/0.3086, allocations: 10.28 kB / 0.5109 GB, free: 34 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000222/0.3089, allocations: 184 kB / 0.511 GB, free: 33.8 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.821e-05/0.309, allocations: 0.6756 MB / 0.5117 GB, free: 33.1 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 5.53e-06/0.309, allocations: 0 / 0.5117 GB, free: 33.1 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.695e-06/0.309, allocations: 7.438 kB / 0.5117 GB, free: 33.1 MB / 378.7 MB Notification: Performance of SimCode: time 2.2e-07/0.309, allocations: 0 / 0.5117 GB, free: 33.1 MB / 378.7 MB Notification: Performance of Templates: time 0.002419/0.3114, allocations: 0.6355 MB / 0.5123 GB, free: 33 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@2/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