Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Utilities.TestInternal.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.TestInternal,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Utilities.TestInternal") translateModel(ModelicaTest.Utilities.TestInternal,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Utilities.TestInternal") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001126/0.001126, allocations: 113.8 kB / 17.78 MB, free: 5.309 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.001129/0.001129, allocations: 183.1 kB / 18.71 MB, free: 4.387 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.413/1.413, allocations: 222.9 MB / 242.4 MB, free: 15.21 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.2382/0.2382, allocations: 44.18 MB / 336.7 MB, free: 2.707 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001184/0.001184, allocations: 63.89 kB / 470.5 MB, free: 13.23 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3963/0.3975, allocations: 60.82 MB / 0.5189 GB, free: 3.609 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestInternal): time 0.001468/0.399, allocations: 0.493 MB / 0.5193 GB, free: 3.309 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0005343/0.3995, allocations: 254.2 kB / 0.5196 GB, free: 3.156 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.704e-05/0.3996, allocations: 0.9688 kB / 0.5196 GB, free: 3.156 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 1.213e-05/0.3996, allocations: 0 / 0.5196 GB, free: 3.156 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 3.767e-06/0.3996, allocations: 0 / 0.5196 GB, free: 3.156 MB / 382.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/Utilities.mo:399:3-454:15:writable] Warning: Pure function 'ModelicaTest.Utilities.Internal' contains a call to impure function 'Modelica.Utilities.Streams.print'. Notification: Performance of NFTyping.typeClassSections: time 0.0002407/0.3998, allocations: 53.59 kB / 0.5196 GB, free: 3.129 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 4.246e-05/0.3999, allocations: 5.406 kB / 0.5196 GB, free: 3.125 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 2.814e-05/0.3999, allocations: 0.75 kB / 0.5196 GB, free: 3.125 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.132e-05/0.3999, allocations: 5.312 kB / 0.5197 GB, free: 3.121 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.386e-05/0.4, allocations: 1.156 kB / 0.5197 GB, free: 3.121 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 6.342e-06/0.4, allocations: 4 kB / 0.5197 GB, free: 3.117 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001248/0.4001, allocations: 70.56 kB / 0.5197 GB, free: 3.09 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 6.362e-06/0.4001, allocations: 0 / 0.5197 GB, free: 3.09 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 1.606e-05/0.4001, allocations: 1.281 kB / 0.5197 GB, free: 3.09 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001167/0.4003, allocations: 53.77 kB / 0.5198 GB, free: 3.07 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.835e-06/0.4003, allocations: 0 / 0.5198 GB, free: 3.07 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.112e-06/0.4003, allocations: 0 / 0.5198 GB, free: 3.07 MB / 382.1 MB Notification: Performance of Transformations before backend: time 4.058e-06/0.4003, allocations: 0 / 0.5198 GB, free: 3.07 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.0002249/0.4005, allocations: 358.3 kB / 0.5201 GB, free: 2.676 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.172e-05/0.4005, allocations: 10.06 kB / 0.5201 GB, free: 2.676 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.569e-05/0.4006, allocations: 5.688 kB / 0.5201 GB, free: 2.672 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 4.535e-05/0.4006, allocations: 161.1 kB / 0.5203 GB, free: 2.477 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.901e-06/0.4006, allocations: 1.469 kB / 0.5203 GB, free: 2.477 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.021e-05/0.4007, allocations: 2.062 kB / 0.5203 GB, free: 2.477 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 5.412e-05/0.4007, allocations: 36.67 kB / 0.5203 GB, free: 2.438 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.392e-06/0.4007, allocations: 2.547 kB / 0.5203 GB, free: 2.438 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.581e-06/0.4007, allocations: 3.938 kB / 0.5203 GB, free: 2.434 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.046e-06/0.4007, allocations: 0 / 0.5203 GB, free: 2.434 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.238e-05/0.4008, allocations: 1.125 kB / 0.5203 GB, free: 2.434 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 6.783e-05/0.4008, allocations: 153.1 kB / 0.5205 GB, free: 2.238 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 2.565e-05/0.4009, allocations: 17.86 kB / 0.5205 GB, free: 2.215 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.939e-06/0.4009, allocations: 12.73 kB / 0.5205 GB, free: 2.199 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.336e-06/0.4009, allocations: 2.062 kB / 0.5205 GB, free: 2.199 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.365e-05/0.4009, allocations: 58.52 kB / 0.5206 GB, free: 2.129 MB / 382.1 MB Notification: Performance of pre-optimization done (n=1): time 1.182e-06/0.4009, allocations: 3.984 kB / 0.5206 GB, free: 2.125 MB / 382.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001182/0.401, allocations: 72.89 kB / 0.5206 GB, free: 2.051 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.206e-05/0.4011, allocations: 78.89 kB / 0.5207 GB, free: 1.957 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 1.538e-05/0.4011, allocations: 89.86 kB / 0.5208 GB, free: 1.859 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 5.009e-06/0.4011, allocations: 25.7 kB / 0.5208 GB, free: 1.828 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 1.134e-05/0.4011, allocations: 80.94 kB / 0.5209 GB, free: 1.746 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.169e-05/0.4011, allocations: 1.281 kB / 0.5209 GB, free: 1.746 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.133e-05/0.4012, allocations: 12.16 kB / 0.5209 GB, free: 1.73 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 3.584e-05/0.4012, allocations: 311.8 kB / 0.5212 GB, free: 1.418 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.854e-06/0.4012, allocations: 5.094 kB / 0.5212 GB, free: 1.414 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.652e-06/0.4012, allocations: 10.03 kB / 0.5212 GB, free: 1.406 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.733e-05/0.4013, allocations: 59.75 kB / 0.5213 GB, free: 1.336 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.643e-06/0.4013, allocations: 1.406 kB / 0.5213 GB, free: 1.336 MB / 382.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 5.187e-05/0.4013, allocations: 59.83 kB / 0.5213 GB, free: 1.273 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.003e-05/0.4013, allocations: 35.75 kB / 0.5214 GB, free: 1.238 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.416e-06/0.4014, allocations: 1.156 kB / 0.5214 GB, free: 1.238 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.134e-05/0.4014, allocations: 3.938 kB / 0.5214 GB, free: 1.234 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.585e-06/0.4014, allocations: 6.016 kB / 0.5214 GB, free: 1.23 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.364e-06/0.4014, allocations: 0 / 0.5214 GB, free: 1.23 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.277e-05/0.4014, allocations: 1.219 kB / 0.5214 GB, free: 1.23 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.208e-06/0.4014, allocations: 0 / 0.5214 GB, free: 1.23 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 4.851e-05/0.4015, allocations: 139.3 kB / 0.5215 GB, free: 1.082 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.446e-06/0.4015, allocations: 5.984 kB / 0.5215 GB, free: 1.078 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.444e-06/0.4015, allocations: 11.02 kB / 0.5215 GB, free: 1.066 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.523e-06/0.4015, allocations: 0.8906 kB / 0.5215 GB, free: 1.066 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.204e-06/0.4015, allocations: 1.281 kB / 0.5215 GB, free: 1.066 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.383e-06/0.4015, allocations: 4 kB / 0.5215 GB, free: 1.062 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 4.752e-05/0.4016, allocations: 145.4 kB / 0.5217 GB, free: 0.875 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.703e-06/0.4016, allocations: 1.156 kB / 0.5217 GB, free: 0.875 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.71e-07/0.4016, allocations: 0 / 0.5217 GB, free: 0.875 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.132e-06/0.4016, allocations: 0 / 0.5217 GB, free: 0.875 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.661e-06/0.4016, allocations: 6.016 kB / 0.5217 GB, free: 0.8711 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.442e-06/0.4016, allocations: 4 kB / 0.5217 GB, free: 0.8672 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.81e-07/0.4016, allocations: 1.281 kB / 0.5217 GB, free: 0.8672 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.379e-05/0.4017, allocations: 92.5 kB / 0.5218 GB, free: 0.7656 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.29e-05/0.4017, allocations: 77.77 kB / 0.5219 GB, free: 0.6719 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.065e-05/0.4017, allocations: 5.984 kB / 0.5219 GB, free: 0.668 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.797e-06/0.4017, allocations: 1.219 kB / 0.5219 GB, free: 0.668 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.844e-06/0.4017, allocations: 0.75 kB / 0.5219 GB, free: 0.668 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.104e-06/0.4017, allocations: 5.188 kB / 0.5219 GB, free: 0.6641 MB / 382.1 MB Notification: Performance of sorting global known variables: time 1.215e-05/0.4018, allocations: 75.28 kB / 0.5219 GB, free: 0.5898 MB / 382.1 MB Notification: Performance of sort global known variables: time 1e-07/0.4018, allocations: 5.094 kB / 0.5219 GB, free: 0.5859 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002204/0.402, allocations: 24.41 kB / 0.522 GB, free: 0.5781 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.000442/0.4024, allocations: 275.8 kB / 0.5222 GB, free: 440 kB / 382.1 MB Notification: Performance of simCode: created initialization part: time 7.128e-05/0.4025, allocations: 62.66 kB / 0.5223 GB, free: 372 kB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.804e-06/0.4025, allocations: 0 / 0.5223 GB, free: 372 kB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 1.935e-05/0.4025, allocations: 55.42 kB / 0.5223 GB, free: 308 kB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001121/0.4027, allocations: 2.188 kB / 0.5223 GB, free: 308 kB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000119/0.4028, allocations: 85.97 kB / 0.5224 GB, free: 204 kB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000236/0.403, allocations: 0.6744 MB / 0.5231 GB, free: 15.5 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 4.979e-06/0.403, allocations: 6.031 kB / 0.5231 GB, free: 15.5 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.306e-06/0.4031, allocations: 7.438 kB / 0.5231 GB, free: 15.49 MB / 398.1 MB Notification: Performance of SimCode: time 2.1e-07/0.4031, allocations: 1.094 kB / 0.5231 GB, free: 15.49 MB / 398.1 MB Notification: Performance of Templates: time 0.00331/0.4064, allocations: 0.7982 MB / 0.5239 GB, free: 15.34 MB / 398.1 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Utilities.TestInternal.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Utilities.TestInternal.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Utilities.TestInternal.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Utilities.TestInternal.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Utilities.TestInternal.sim & ./ModelicaTest_4.0.0_ModelicaTest.Utilities.TestInternal -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Utilities.TestInternal.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Utilities.TestInternal_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Utilities/TestInternal/TestInternal.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Utilities.TestInternal.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches