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.001145/0.001145, allocations: 113.8 kB / 17.78 MB, free: 5.273 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.0009879/0.0009876, allocations: 183.1 kB / 18.7 MB, free: 4.359 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.38/1.38, allocations: 222.9 MB / 242.4 MB, free: 15.07 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.2011/0.2011, allocations: 44.19 MB / 336.7 MB, free: 2.688 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001169/0.001169, allocations: 59.91 kB / 470.5 MB, free: 13.23 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3692/0.3704, allocations: 60.82 MB / 0.5189 GB, free: 3.625 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestReadFile): time 0.001567/0.372, allocations: 0.4958 MB / 0.5194 GB, free: 3.32 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001007/0.373, allocations: 0.7796 MB / 0.5201 GB, free: 2.766 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.903e-05/0.3731, allocations: 0 / 0.5201 GB, free: 2.766 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 1.867e-05/0.3731, allocations: 1.062 kB / 0.5201 GB, free: 2.766 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000155/0.3733, allocations: 3.219 kB / 0.5201 GB, free: 2.766 MB / 382.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.0005572/0.3738, allocations: 63.44 kB / 0.5202 GB, free: 2.734 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 5.6e-05/0.3739, allocations: 9.703 kB / 0.5202 GB, free: 2.727 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.904e-05/0.374, allocations: 2.125 kB / 0.5202 GB, free: 2.727 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.804e-05/0.374, allocations: 1.094 kB / 0.5202 GB, free: 2.727 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.788e-05/0.3741, allocations: 4.516 kB / 0.5202 GB, free: 2.727 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 8.266e-06/0.3741, allocations: 0 / 0.5202 GB, free: 2.727 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001271/0.3742, allocations: 63.55 kB / 0.5203 GB, free: 2.703 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 6.772e-06/0.3742, allocations: 0 / 0.5203 GB, free: 2.703 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 2.006e-05/0.3742, allocations: 0.9062 kB / 0.5203 GB, free: 2.703 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001293/0.3744, allocations: 50.84 kB / 0.5203 GB, free: 2.684 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.999e-06/0.3744, allocations: 1.281 kB / 0.5203 GB, free: 2.684 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.653e-06/0.3744, allocations: 4 kB / 0.5203 GB, free: 2.68 MB / 382.1 MB Notification: Performance of Transformations before backend: time 5.18e-06/0.3744, allocations: 0 / 0.5203 GB, free: 2.68 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.0002784/0.3747, allocations: 360 kB / 0.5207 GB, free: 2.285 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.635e-05/0.3747, allocations: 9.172 kB / 0.5207 GB, free: 2.285 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.106e-05/0.3748, allocations: 2.219 kB / 0.5207 GB, free: 2.285 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.327e-05/0.3748, allocations: 161.3 kB / 0.5208 GB, free: 2.09 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.038e-05/0.3749, allocations: 1.375 kB / 0.5208 GB, free: 2.09 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.576e-06/0.3749, allocations: 1.469 kB / 0.5208 GB, free: 2.09 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 6.859e-05/0.3749, allocations: 34.73 kB / 0.5209 GB, free: 2.055 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.035e-06/0.375, allocations: 192 / 0.5209 GB, free: 2.055 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.367e-06/0.375, allocations: 3.938 kB / 0.5209 GB, free: 2.051 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.448e-06/0.375, allocations: 1.438 kB / 0.5209 GB, free: 2.051 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.669e-05/0.375, allocations: 6.156 kB / 0.5209 GB, free: 2.047 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 9.45e-05/0.3751, allocations: 144.4 kB / 0.521 GB, free: 1.859 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.259e-05/0.3751, allocations: 21.58 kB / 0.521 GB, free: 1.832 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.401e-05/0.3752, allocations: 11.08 kB / 0.521 GB, free: 1.82 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.223e-06/0.3752, allocations: 7.938 kB / 0.521 GB, free: 1.812 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.893e-05/0.3752, allocations: 57.98 kB / 0.5211 GB, free: 1.742 MB / 382.1 MB Notification: Performance of pre-optimization done (n=1): time 1.052e-06/0.3752, allocations: 0 / 0.5211 GB, free: 1.742 MB / 382.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001534/0.3754, allocations: 70.48 kB / 0.5212 GB, free: 1.672 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.421e-05/0.3754, allocations: 85.66 kB / 0.5212 GB, free: 1.57 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.827e-05/0.3755, allocations: 92.89 kB / 0.5213 GB, free: 1.473 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 6.482e-06/0.3755, allocations: 25.95 kB / 0.5214 GB, free: 1.441 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 1.353e-05/0.3755, allocations: 85.89 kB / 0.5214 GB, free: 1.355 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.503e-05/0.3755, allocations: 0 / 0.5214 GB, free: 1.355 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.352e-05/0.3755, allocations: 12.38 kB / 0.5215 GB, free: 1.34 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 4.314e-05/0.3756, allocations: 313.1 kB / 0.5218 GB, free: 1.027 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.042e-05/0.3756, allocations: 0.6094 kB / 0.5218 GB, free: 1.027 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.352e-06/0.3756, allocations: 5.281 kB / 0.5218 GB, free: 1.023 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.138e-05/0.3756, allocations: 60.66 kB / 0.5218 GB, free: 0.9531 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.145e-06/0.3757, allocations: 8.656 kB / 0.5218 GB, free: 0.9453 MB / 382.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 5.54e-05/0.3757, allocations: 60.83 kB / 0.5219 GB, free: 0.8828 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.549e-05/0.3757, allocations: 31.92 kB / 0.5219 GB, free: 0.8516 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.37e-06/0.3758, allocations: 4.734 kB / 0.5219 GB, free: 0.8477 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.247e-05/0.3758, allocations: 0.9375 kB / 0.5219 GB, free: 0.8477 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.22e-07/0.3758, allocations: 0 / 0.5219 GB, free: 0.8477 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.509e-06/0.3758, allocations: 0.9688 kB / 0.5219 GB, free: 0.8477 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.636e-05/0.3758, allocations: 4.422 kB / 0.5219 GB, free: 0.8438 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.753e-06/0.3758, allocations: 1.094 kB / 0.5219 GB, free: 0.8438 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 6.293e-05/0.3759, allocations: 143.5 kB / 0.5221 GB, free: 0.6914 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.275e-06/0.3759, allocations: 1.031 kB / 0.5221 GB, free: 0.6914 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.278e-06/0.3759, allocations: 12.89 kB / 0.5221 GB, free: 0.6797 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.72e-07/0.3759, allocations: 0 / 0.5221 GB, free: 0.6797 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.627e-06/0.3759, allocations: 0.5156 kB / 0.5221 GB, free: 0.6797 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.513e-06/0.3759, allocations: 1.156 kB / 0.5221 GB, free: 0.6797 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 5.088e-05/0.376, allocations: 145.8 kB / 0.5222 GB, free: 0.4922 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.32e-07/0.376, allocations: 0 / 0.5222 GB, free: 0.4922 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.61e-07/0.376, allocations: 1.219 kB / 0.5222 GB, free: 0.4922 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.603e-06/0.376, allocations: 3.984 kB / 0.5222 GB, free: 500 kB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.027e-06/0.376, allocations: 10.03 kB / 0.5222 GB, free: 492 kB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.61e-07/0.376, allocations: 0 / 0.5222 GB, free: 492 kB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.994e-06/0.376, allocations: 5.281 kB / 0.5222 GB, free: 488 kB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.303e-05/0.3761, allocations: 88.75 kB / 0.5223 GB, free: 388 kB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.721e-05/0.3761, allocations: 82.64 kB / 0.5224 GB, free: 292 kB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.305e-05/0.3761, allocations: 5.688 kB / 0.5224 GB, free: 288 kB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.498e-06/0.3762, allocations: 0 / 0.5224 GB, free: 288 kB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.518e-06/0.3762, allocations: 10.12 kB / 0.5224 GB, free: 280 kB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.976e-06/0.3762, allocations: 1.375 kB / 0.5224 GB, free: 280 kB / 382.1 MB Notification: Performance of sorting global known variables: time 1.521e-05/0.3762, allocations: 83.22 kB / 0.5225 GB, free: 196 kB / 382.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3762, allocations: 0 / 0.5225 GB, free: 196 kB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002517/0.3765, allocations: 16.06 kB / 0.5225 GB, free: 196 kB / 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.0003123/0.3768, allocations: 186.8 kB / 0.5227 GB, free: 72 kB / 382.1 MB Notification: Performance of simCode: created initialization part: time 8.321e-05/0.3769, allocations: 63.05 kB / 0.5227 GB, free: 4 kB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.154e-06/0.3769, allocations: 4 kB / 0.5227 GB, free: 0 / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 4.565e-05/0.3769, allocations: 55.55 kB / 0.5228 GB, free: 15.93 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001257/0.3771, allocations: 9.375 kB / 0.5228 GB, free: 15.93 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001808/0.3772, allocations: 78.53 kB / 0.5229 GB, free: 15.84 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002462/0.3775, allocations: 0.6752 MB / 0.5235 GB, free: 15.14 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 5.45e-06/0.3775, allocations: 0 / 0.5235 GB, free: 15.14 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.029e-05/0.3775, allocations: 8.594 kB / 0.5236 GB, free: 15.13 MB / 398.1 MB Notification: Performance of SimCode: time 2.11e-07/0.3775, allocations: 0 / 0.5236 GB, free: 15.13 MB / 398.1 MB Notification: Performance of Templates: time 0.002854/0.3804, allocations: 0.6483 MB / 0.5242 GB, free: 15.03 MB / 398.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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Utilities/TestReadFile/TestReadFile.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Utilities.TestReadFile.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches