Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Utilities.TestExamplesCalculator.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.TestExamplesCalculator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Utilities.TestExamplesCalculator") translateModel(ModelicaTest.Utilities.TestExamplesCalculator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Utilities.TestExamplesCalculator") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001501/0.001501, allocations: 114.4 kB / 17.78 MB, free: 5.266 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.001403/0.001404, allocations: 187.8 kB / 18.71 MB, free: 4.344 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.42/1.42, allocations: 222.9 MB / 242.4 MB, free: 15.18 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.2381/0.2381, allocations: 44.19 MB / 336.7 MB, free: 2.68 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002301/0.002302, allocations: 63.91 kB / 470.5 MB, free: 13.2 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4855/0.4879, allocations: 60.81 MB / 0.5189 GB, free: 3.609 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestExamplesCalculator): time 0.001709/0.4896, allocations: 0.4987 MB / 0.5194 GB, free: 3.301 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.003162/0.4928, allocations: 1.999 MB / 0.5213 GB, free: 1.902 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.795e-05/0.4928, allocations: 1.312 kB / 0.5213 GB, free: 1.902 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 2.362e-05/0.4929, allocations: 3.938 kB / 0.5213 GB, free: 1.898 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 2.038e-05/0.4929, allocations: 3.938 kB / 0.5213 GB, free: 1.895 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001188/0.4941, allocations: 373.8 kB / 0.5217 GB, free: 1.738 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 4.468e-05/0.4942, allocations: 6.281 kB / 0.5217 GB, free: 1.734 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.553e-05/0.4942, allocations: 2.094 kB / 0.5217 GB, free: 1.734 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.196e-05/0.4942, allocations: 2.094 kB / 0.5217 GB, free: 1.734 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01588/0.5101, allocations: 3.351 MB / 0.525 GB, free: 0.8672 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 2.504e-05/0.5102, allocations: 0 / 0.525 GB, free: 0.8672 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000134/0.5103, allocations: 12.78 kB / 0.525 GB, free: 0.8594 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 1.378e-05/0.5103, allocations: 2.172 kB / 0.525 GB, free: 0.8594 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 2.92e-05/0.5104, allocations: 0 / 0.525 GB, free: 0.8594 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00017/0.5106, allocations: 10.84 kB / 0.525 GB, free: 0.8555 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.991e-06/0.5106, allocations: 3.938 kB / 0.525 GB, free: 0.8516 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.973e-06/0.5106, allocations: 0 / 0.525 GB, free: 0.8516 MB / 382.1 MB Notification: Performance of Transformations before backend: time 6.703e-06/0.5106, allocations: 0 / 0.525 GB, free: 0.8516 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: 0 * Number of variables: 0 Notification: Performance of Generate backend data structure: time 0.0002836/0.5109, allocations: 319.7 kB / 0.5253 GB, free: 0.5 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.262e-05/0.5109, allocations: 9.625 kB / 0.5253 GB, free: 0.5 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001985/0.5111, allocations: 88.81 kB / 0.5254 GB, free: 432 kB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001051/0.5112, allocations: 237.8 kB / 0.5256 GB, free: 156 kB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.499e-05/0.5113, allocations: 151.5 kB / 0.5257 GB, free: 4 kB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.306e-05/0.5114, allocations: 156.1 kB / 0.5259 GB, free: 15.85 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 6.669e-05/0.5114, allocations: 101.5 kB / 0.526 GB, free: 15.75 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.64e-05/0.5115, allocations: 75.28 kB / 0.5261 GB, free: 15.67 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.26e-05/0.5116, allocations: 160.8 kB / 0.5262 GB, free: 15.52 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.961e-05/0.5116, allocations: 150.6 kB / 0.5264 GB, free: 15.37 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.602e-05/0.5117, allocations: 155.9 kB / 0.5265 GB, free: 15.21 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003726/0.5121, allocations: 439.7 kB / 0.5269 GB, free: 14.74 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001084/0.5122, allocations: 174.5 kB / 0.5271 GB, free: 14.56 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.189e-05/0.5123, allocations: 86.25 kB / 0.5272 GB, free: 14.47 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.752e-05/0.5123, allocations: 75.28 kB / 0.5273 GB, free: 14.4 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.828e-05/0.5124, allocations: 111.2 kB / 0.5274 GB, free: 14.28 MB / 398.1 MB Notification: Performance of pre-optimization done (n=0): time 8.52e-07/0.5124, allocations: 3.938 kB / 0.5274 GB, free: 14.28 MB / 398.1 MB Notification: Performance of matching and sorting (n=0): time 7.964e-05/0.5125, allocations: 27.78 kB / 0.5274 GB, free: 14.25 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001142/0.5126, allocations: 184.1 kB / 0.5276 GB, free: 14.04 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000121/0.5127, allocations: 96.08 kB / 0.5277 GB, free: 13.94 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.734e-05/0.5127, allocations: 25.7 kB / 0.5277 GB, free: 13.91 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.504e-05/0.5128, allocations: 82.31 kB / 0.5278 GB, free: 13.83 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.377e-06/0.5128, allocations: 0 / 0.5278 GB, free: 13.83 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.648e-05/0.5128, allocations: 12.47 kB / 0.5278 GB, free: 13.81 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001263/0.513, allocations: 312.2 kB / 0.5281 GB, free: 13.5 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.534e-06/0.513, allocations: 4 kB / 0.5281 GB, free: 13.5 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.5e-05/0.513, allocations: 12.47 kB / 0.5281 GB, free: 13.48 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.142e-05/0.5131, allocations: 79.97 kB / 0.5282 GB, free: 13.4 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.392e-05/0.5131, allocations: 84.59 kB / 0.5282 GB, free: 13.32 MB / 398.1 MB Notification: Performance of matching and sorting (n=0) (initialization): time 6.289e-05/0.5132, allocations: 36.95 kB / 0.5283 GB, free: 13.28 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.249e-05/0.5133, allocations: 80.25 kB / 0.5284 GB, free: 13.21 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.594e-05/0.5133, allocations: 76.66 kB / 0.5284 GB, free: 13.13 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.814e-05/0.5134, allocations: 164.8 kB / 0.5286 GB, free: 12.97 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.967e-05/0.5134, allocations: 75.8 kB / 0.5287 GB, free: 12.9 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.166e-05/0.5135, allocations: 156.4 kB / 0.5288 GB, free: 12.75 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.425e-05/0.5136, allocations: 77.5 kB / 0.5289 GB, free: 12.67 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.085e-05/0.5136, allocations: 76.66 kB / 0.529 GB, free: 12.6 MB / 398.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: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (0): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 0 * 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 0.0001577/0.5138, allocations: 268 kB / 0.5292 GB, free: 12.33 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.581e-05/0.5139, allocations: 110.8 kB / 0.5293 GB, free: 12.21 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.263e-05/0.514, allocations: 106.7 kB / 0.5294 GB, free: 12.11 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.481e-05/0.514, allocations: 180.8 kB / 0.5296 GB, free: 11.92 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.342e-05/0.5141, allocations: 178.2 kB / 0.5298 GB, free: 11.74 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.761e-05/0.5142, allocations: 178.8 kB / 0.5299 GB, free: 11.56 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002752/0.5145, allocations: 416.9 kB / 0.5303 GB, free: 11.1 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.804e-05/0.5145, allocations: 103.1 kB / 0.5304 GB, free: 11 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.316e-05/0.5146, allocations: 105.5 kB / 0.5305 GB, free: 10.89 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.514e-05/0.5147, allocations: 178.2 kB / 0.5307 GB, free: 10.71 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.135e-05/0.5148, allocations: 178.3 kB / 0.5309 GB, free: 10.53 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.671e-05/0.5148, allocations: 188.7 kB / 0.531 GB, free: 10.34 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.905e-05/0.5149, allocations: 182.4 kB / 0.5312 GB, free: 10.15 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001512/0.5151, allocations: 310 kB / 0.5315 GB, free: 9.832 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.507e-05/0.5152, allocations: 184.7 kB / 0.5317 GB, free: 9.629 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.559e-05/0.5153, allocations: 182.7 kB / 0.5319 GB, free: 9.445 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000105/0.5154, allocations: 107 kB / 0.532 GB, free: 9.336 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.152e-05/0.5155, allocations: 182.5 kB / 0.5321 GB, free: 9.152 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.065e-05/0.5155, allocations: 107 kB / 0.5322 GB, free: 9.043 MB / 398.1 MB Notification: Performance of sorting global known variables: time 4.133e-05/0.5156, allocations: 75.94 kB / 0.5323 GB, free: 8.969 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.5156, allocations: 1.375 kB / 0.5323 GB, free: 8.969 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002941/0.5159, allocations: 9.312 kB / 0.5323 GB, free: 8.961 MB / 398.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: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (0): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 0 * 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.0001553/0.5161, allocations: 171.6 kB / 0.5325 GB, free: 8.793 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 6.719e-05/0.5161, allocations: 5.969 kB / 0.5325 GB, free: 8.789 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.946e-06/0.5161, allocations: 0 / 0.5325 GB, free: 8.789 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 2.494e-06/0.5162, allocations: 1.375 kB / 0.5325 GB, free: 8.789 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004174/0.5166, allocations: 459.1 kB / 0.5329 GB, free: 8.34 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002629/0.5168, allocations: 158.3 kB / 0.5331 GB, free: 8.164 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002958/0.5172, allocations: 0.6747 MB / 0.5337 GB, free: 7.465 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 2.777e-05/0.5172, allocations: 1.375 kB / 0.5337 GB, free: 7.465 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.281e-05/0.5172, allocations: 7.438 kB / 0.5338 GB, free: 7.457 MB / 398.1 MB Notification: Performance of SimCode: time 2.61e-07/0.5172, allocations: 1.375 kB / 0.5338 GB, free: 7.457 MB / 398.1 MB Notification: Performance of Templates: time 0.002953/0.5202, allocations: 304.7 kB / 0.534 GB, free: 7.391 MB / 398.1 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Utilities.TestExamplesCalculator.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Utilities.TestExamplesCalculator.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Utilities.TestExamplesCalculator.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Utilities.TestExamplesCalculator.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Utilities.TestExamplesCalculator.sim & ./ModelicaTest_4.0.0_ModelicaTest.Utilities.TestExamplesCalculator -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Utilities.TestExamplesCalculator.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Utilities.TestExamplesCalculator_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Utilities/TestExamplesCalculator/TestExamplesCalculator.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Utilities.TestExamplesCalculator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches