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.00137/0.00137, allocations: 114.5 kB / 17.78 MB, free: 5.262 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.001331/0.001331, allocations: 187.7 kB / 18.72 MB, free: 4.332 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.467/1.467, allocations: 222.9 MB / 242.4 MB, free: 15.06 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.2088/0.2088, allocations: 44.19 MB / 336.8 MB, free: 2.648 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001147/0.001147, allocations: 67.84 kB / 470.5 MB, free: 13.18 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3719/0.373, allocations: 60.82 MB / 0.5189 GB, free: 3.598 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestReadFile): time 0.001853/0.375, allocations: 0.4913 MB / 0.5194 GB, free: 3.301 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.00119/0.3762, allocations: 0.7798 MB / 0.5201 GB, free: 2.746 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.061e-05/0.3762, allocations: 0 / 0.5201 GB, free: 2.746 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 1.661e-05/0.3762, allocations: 0 / 0.5201 GB, free: 2.746 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001766/0.3764, allocations: 6.922 kB / 0.5201 GB, free: 2.742 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.0006816/0.3771, allocations: 56.03 kB / 0.5202 GB, free: 2.715 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 6.4e-05/0.3772, allocations: 11.92 kB / 0.5202 GB, free: 2.707 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.812e-05/0.3773, allocations: 1.828 kB / 0.5202 GB, free: 2.707 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.197e-05/0.3773, allocations: 1.312 kB / 0.5202 GB, free: 2.707 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.222e-05/0.3774, allocations: 6.875 kB / 0.5202 GB, free: 2.703 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 8.406e-06/0.3774, allocations: 0 / 0.5202 GB, free: 2.703 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001632/0.3776, allocations: 59.91 kB / 0.5203 GB, free: 2.684 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 8.275e-06/0.3776, allocations: 0 / 0.5203 GB, free: 2.684 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 2.634e-05/0.3776, allocations: 1.094 kB / 0.5203 GB, free: 2.684 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001815/0.3778, allocations: 54.52 kB / 0.5203 GB, free: 2.664 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.584e-06/0.3778, allocations: 5.25 kB / 0.5203 GB, free: 2.66 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.883e-06/0.3778, allocations: 0 / 0.5203 GB, free: 2.66 MB / 382.1 MB Notification: Performance of Transformations before backend: time 6.732e-06/0.3778, allocations: 0 / 0.5203 GB, free: 2.66 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.0003741/0.3782, allocations: 350.2 kB / 0.5206 GB, free: 2.277 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.269e-05/0.3783, allocations: 9.688 kB / 0.5207 GB, free: 2.277 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.694e-05/0.3783, allocations: 0.9375 kB / 0.5207 GB, free: 2.277 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000127/0.3785, allocations: 166.5 kB / 0.5208 GB, free: 2.078 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.067e-05/0.3785, allocations: 4.375 kB / 0.5208 GB, free: 2.074 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.179e-05/0.3785, allocations: 1.375 kB / 0.5208 GB, free: 2.074 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001016/0.3786, allocations: 38.78 kB / 0.5209 GB, free: 2.035 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.027e-05/0.3786, allocations: 192 / 0.5209 GB, free: 2.035 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.472e-05/0.3786, allocations: 5.547 kB / 0.5209 GB, free: 2.031 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.983e-06/0.3787, allocations: 0 / 0.5209 GB, free: 2.031 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.136e-05/0.3787, allocations: 1.188 kB / 0.5209 GB, free: 2.031 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001135/0.3788, allocations: 146.2 kB / 0.521 GB, free: 1.844 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.459e-05/0.3789, allocations: 16.62 kB / 0.521 GB, free: 1.82 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.131e-05/0.3789, allocations: 14.02 kB / 0.521 GB, free: 1.805 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.452e-06/0.3789, allocations: 1.734 kB / 0.521 GB, free: 1.805 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.786e-05/0.379, allocations: 62.22 kB / 0.5211 GB, free: 1.73 MB / 382.1 MB Notification: Performance of pre-optimization done (n=1): time 1.162e-06/0.379, allocations: 0 / 0.5211 GB, free: 1.73 MB / 382.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001801/0.3791, allocations: 65.8 kB / 0.5212 GB, free: 1.664 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.262e-05/0.3792, allocations: 78.98 kB / 0.5212 GB, free: 1.57 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.852e-05/0.3793, allocations: 99.84 kB / 0.5213 GB, free: 1.465 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 6.442e-06/0.3793, allocations: 29.73 kB / 0.5214 GB, free: 1.43 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 1.023e-05/0.3793, allocations: 81.84 kB / 0.5214 GB, free: 1.348 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.414e-05/0.3793, allocations: 3.953 kB / 0.5214 GB, free: 1.344 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.968e-05/0.3793, allocations: 12.89 kB / 0.5215 GB, free: 1.328 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 6.661e-05/0.3794, allocations: 312.8 kB / 0.5217 GB, free: 1.016 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.333e-05/0.3794, allocations: 0.5156 kB / 0.5218 GB, free: 1.016 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.985e-06/0.3795, allocations: 1.406 kB / 0.5218 GB, free: 1.016 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.392e-05/0.3795, allocations: 73.42 kB / 0.5218 GB, free: 0.9336 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.734e-06/0.3795, allocations: 0 / 0.5218 GB, free: 0.9336 MB / 382.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.194e-05/0.3796, allocations: 61.36 kB / 0.5219 GB, free: 0.8711 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.816e-05/0.3796, allocations: 32.09 kB / 0.5219 GB, free: 0.8398 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.301e-06/0.3797, allocations: 3.938 kB / 0.5219 GB, free: 0.8359 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.183e-05/0.3797, allocations: 0 / 0.5219 GB, free: 0.8359 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.468e-06/0.3797, allocations: 5.797 kB / 0.5219 GB, free: 0.832 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.883e-06/0.3797, allocations: 0 / 0.5219 GB, free: 0.832 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.995e-05/0.3797, allocations: 1.75 kB / 0.5219 GB, free: 0.832 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.306e-06/0.3797, allocations: 0 / 0.5219 GB, free: 0.832 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.872e-05/0.3798, allocations: 143.3 kB / 0.5221 GB, free: 0.6797 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.367e-06/0.3798, allocations: 1.062 kB / 0.5221 GB, free: 0.6797 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.756e-05/0.3799, allocations: 12.67 kB / 0.5221 GB, free: 0.668 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.032e-06/0.3799, allocations: 0 / 0.5221 GB, free: 0.668 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.334e-06/0.3799, allocations: 1.625 kB / 0.5221 GB, free: 0.668 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.927e-06/0.3799, allocations: 3.938 kB / 0.5221 GB, free: 0.6641 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.677e-05/0.38, allocations: 146.4 kB / 0.5222 GB, free: 488 kB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.12e-07/0.38, allocations: 0 / 0.5222 GB, free: 488 kB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.323e-06/0.38, allocations: 4.875 kB / 0.5222 GB, free: 484 kB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.234e-06/0.38, allocations: 4.703 kB / 0.5222 GB, free: 480 kB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.076e-05/0.38, allocations: 5.188 kB / 0.5222 GB, free: 476 kB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.72e-07/0.38, allocations: 0 / 0.5222 GB, free: 476 kB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.777e-06/0.38, allocations: 1.875 kB / 0.5222 GB, free: 476 kB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001033/0.3801, allocations: 93.2 kB / 0.5223 GB, free: 372 kB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.342e-05/0.3802, allocations: 77.77 kB / 0.5224 GB, free: 276 kB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.956e-05/0.3802, allocations: 5.25 kB / 0.5224 GB, free: 272 kB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.238e-05/0.3802, allocations: 1.953 kB / 0.5224 GB, free: 272 kB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.413e-05/0.3803, allocations: 4.031 kB / 0.5224 GB, free: 268 kB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.661e-06/0.3803, allocations: 5.484 kB / 0.5224 GB, free: 264 kB / 382.1 MB Notification: Performance of sorting global known variables: time 2.248e-05/0.3803, allocations: 76.34 kB / 0.5225 GB, free: 188 kB / 382.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3803, allocations: 0 / 0.5225 GB, free: 188 kB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002904/0.3806, allocations: 24.66 kB / 0.5225 GB, free: 180 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.0004546/0.3811, allocations: 195.2 kB / 0.5227 GB, free: 52 kB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0001466/0.3812, allocations: 57.52 kB / 0.5227 GB, free: 15.99 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.785e-06/0.3812, allocations: 1.125 kB / 0.5227 GB, free: 15.99 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 4.583e-05/0.3813, allocations: 63.2 kB / 0.5228 GB, free: 15.92 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001825/0.3815, allocations: 6.344 kB / 0.5228 GB, free: 15.91 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002655/0.3818, allocations: 74.23 kB / 0.5229 GB, free: 15.82 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003824/0.3821, allocations: 0.6756 MB / 0.5235 GB, free: 15.12 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 8.135e-06/0.3822, allocations: 1.406 kB / 0.5235 GB, free: 15.12 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.451e-05/0.3822, allocations: 7.438 kB / 0.5236 GB, free: 15.12 MB / 398.1 MB Notification: Performance of SimCode: time 5.21e-07/0.3822, allocations: 0 / 0.5236 GB, free: 15.12 MB / 398.1 MB Notification: Performance of Templates: time 0.003764/0.386, allocations: 0.6416 MB / 0.5242 GB, free: 15.02 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