Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Utilities.TestFiles.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.TestFiles,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Utilities.TestFiles") translateModel(ModelicaTest.Utilities.TestFiles,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Utilities.TestFiles") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001149/0.001149, allocations: 114.4 kB / 17.78 MB, free: 5.258 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.001148/0.001148, allocations: 183.8 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.375/1.375, allocations: 222.9 MB / 242.4 MB, free: 15.05 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.2697/0.2697, allocations: 44.18 MB / 336.8 MB, free: 2.652 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001529/0.001529, allocations: 55.91 kB / 470.5 MB, free: 13.2 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4439/0.4455, allocations: 60.82 MB / 0.5189 GB, free: 3.859 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestFiles): time 0.001532/0.4471, allocations: 0.4991 MB / 0.5194 GB, free: 3.555 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001839/0.4489, allocations: 1.264 MB / 0.5206 GB, free: 2.691 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.646e-05/0.449, allocations: 0 / 0.5206 GB, free: 2.691 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 1.656e-05/0.449, allocations: 1.188 kB / 0.5206 GB, free: 2.691 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001769/0.4492, allocations: 7.141 kB / 0.5206 GB, free: 2.688 MB / 382.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/Utilities.mo:456:3-488:12:writable] Warning: Pure function 'ModelicaTest.Utilities.Files' contains a call to impure function 'Modelica.Utilities.Streams.print'. Notification: Performance of NFTyping.typeClassSections: time 0.001056/0.4502, allocations: 255.3 kB / 0.5208 GB, free: 2.574 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 5.917e-05/0.4503, allocations: 3.891 kB / 0.5208 GB, free: 2.574 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.392e-05/0.4504, allocations: 6.375 kB / 0.5209 GB, free: 2.57 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.134e-05/0.4504, allocations: 1.094 kB / 0.5209 GB, free: 2.57 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.305e-05/0.4505, allocations: 10 kB / 0.5209 GB, free: 2.566 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 9.408e-06/0.4505, allocations: 4.859 kB / 0.5209 GB, free: 2.562 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003065/0.4535, allocations: 0.6721 MB / 0.5215 GB, free: 2.371 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 9.428e-06/0.4536, allocations: 0 / 0.5215 GB, free: 2.371 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 2.323e-05/0.4536, allocations: 4.906 kB / 0.5215 GB, free: 2.367 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003748/0.454, allocations: 183.7 kB / 0.5217 GB, free: 2.312 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.142e-06/0.454, allocations: 1.25 kB / 0.5217 GB, free: 2.312 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.274e-06/0.454, allocations: 0 / 0.5217 GB, free: 2.312 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.278e-05/0.454, allocations: 0 / 0.5217 GB, free: 2.312 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.0004295/0.4544, allocations: 383.3 kB / 0.5221 GB, free: 1.906 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.776e-05/0.4545, allocations: 10.31 kB / 0.5221 GB, free: 1.906 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.756e-05/0.4545, allocations: 1.734 kB / 0.5221 GB, free: 1.906 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.223e-05/0.4546, allocations: 170.2 kB / 0.5222 GB, free: 1.703 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.447e-05/0.4547, allocations: 1.438 kB / 0.5222 GB, free: 1.703 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.482e-05/0.4547, allocations: 2.156 kB / 0.5222 GB, free: 1.703 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.874e-05/0.4548, allocations: 37.12 kB / 0.5223 GB, free: 1.664 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.05e-05/0.4548, allocations: 0.6562 kB / 0.5223 GB, free: 1.664 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.369e-05/0.4548, allocations: 1.062 kB / 0.5223 GB, free: 1.664 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.676e-06/0.4548, allocations: 3.938 kB / 0.5223 GB, free: 1.66 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.876e-05/0.4549, allocations: 1.75 kB / 0.5223 GB, free: 1.66 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001337/0.455, allocations: 149.3 kB / 0.5224 GB, free: 1.469 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.848e-05/0.4551, allocations: 21.8 kB / 0.5225 GB, free: 1.441 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.137e-05/0.4551, allocations: 7.078 kB / 0.5225 GB, free: 1.434 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.407e-05/0.4551, allocations: 3.938 kB / 0.5225 GB, free: 1.43 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.13e-05/0.4552, allocations: 63.31 kB / 0.5225 GB, free: 1.355 MB / 382.1 MB Notification: Performance of pre-optimization done (n=1): time 1.202e-06/0.4552, allocations: 0 / 0.5225 GB, free: 1.355 MB / 382.1 MB Notification: Performance of matching and sorting (n=1): time 0.0002057/0.4554, allocations: 70.06 kB / 0.5226 GB, free: 1.285 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.329e-05/0.4554, allocations: 83.45 kB / 0.5227 GB, free: 1.188 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.502e-05/0.4555, allocations: 97.67 kB / 0.5228 GB, free: 1.086 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 7.413e-06/0.4555, allocations: 25.7 kB / 0.5228 GB, free: 1.055 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 1.57e-05/0.4555, allocations: 81.27 kB / 0.5229 GB, free: 0.9727 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.557e-05/0.4555, allocations: 0.5625 kB / 0.5229 GB, free: 0.9727 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.383e-05/0.4556, allocations: 13.02 kB / 0.5229 GB, free: 0.957 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 5.249e-05/0.4556, allocations: 316.5 kB / 0.5232 GB, free: 0.6406 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.21e-05/0.4556, allocations: 5.219 kB / 0.5232 GB, free: 0.6367 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.093e-06/0.4557, allocations: 1.641 kB / 0.5232 GB, free: 0.6367 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.371e-05/0.4557, allocations: 64.56 kB / 0.5232 GB, free: 0.5625 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.493e-06/0.4557, allocations: 0 / 0.5232 GB, free: 0.5625 MB / 382.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 5.806e-05/0.4558, allocations: 66.53 kB / 0.5233 GB, free: 0.4961 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.975e-05/0.4558, allocations: 31.66 kB / 0.5233 GB, free: 476 kB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.889e-06/0.4558, allocations: 0 / 0.5233 GB, free: 476 kB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.349e-05/0.4558, allocations: 1.312 kB / 0.5233 GB, free: 476 kB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.423e-06/0.4558, allocations: 4.703 kB / 0.5233 GB, free: 472 kB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.49e-06/0.4558, allocations: 3.984 kB / 0.5234 GB, free: 468 kB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.535e-05/0.4559, allocations: 1.406 kB / 0.5234 GB, free: 468 kB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.752e-06/0.4559, allocations: 0.7031 kB / 0.5234 GB, free: 468 kB / 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.921e-05/0.4559, allocations: 138.6 kB / 0.5235 GB, free: 316 kB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.207e-06/0.4559, allocations: 5.859 kB / 0.5235 GB, free: 312 kB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.154e-05/0.456, allocations: 12.89 kB / 0.5235 GB, free: 300 kB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.042e-06/0.456, allocations: 0 / 0.5235 GB, free: 300 kB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.13e-06/0.456, allocations: 1.062 kB / 0.5235 GB, free: 300 kB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.976e-06/0.456, allocations: 4.609 kB / 0.5235 GB, free: 296 kB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 6.342e-05/0.4561, allocations: 150.7 kB / 0.5237 GB, free: 100 kB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.12e-07/0.4561, allocations: 0 / 0.5237 GB, free: 100 kB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.914e-06/0.4561, allocations: 5.094 kB / 0.5237 GB, free: 96 kB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.463e-06/0.4561, allocations: 0.7031 kB / 0.5237 GB, free: 96 kB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.623e-06/0.4561, allocations: 1.125 kB / 0.5237 GB, free: 96 kB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.332e-06/0.4561, allocations: 3.938 kB / 0.5237 GB, free: 92 kB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.356e-06/0.4561, allocations: 1.75 kB / 0.5237 GB, free: 92 kB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001071/0.4562, allocations: 101.4 kB / 0.5238 GB, free: 15.98 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.955e-05/0.4563, allocations: 81.75 kB / 0.5238 GB, free: 15.88 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.731e-05/0.4563, allocations: 3.062 kB / 0.5238 GB, free: 15.88 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.538e-06/0.4563, allocations: 0 / 0.5238 GB, free: 15.88 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.234e-05/0.4563, allocations: 6.016 kB / 0.5238 GB, free: 15.88 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.346e-06/0.4563, allocations: 1.156 kB / 0.5239 GB, free: 15.88 MB / 398.1 MB Notification: Performance of sorting global known variables: time 4.307e-05/0.4564, allocations: 77.27 kB / 0.5239 GB, free: 15.8 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.4564, allocations: 0 / 0.5239 GB, free: 15.8 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0003706/0.4568, allocations: 60.27 kB / 0.524 GB, free: 15.79 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: 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.0008002/0.4576, allocations: 350.1 kB / 0.5243 GB, free: 15.62 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0001216/0.4577, allocations: 62.23 kB / 0.5244 GB, free: 15.55 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.064e-06/0.4577, allocations: 0 / 0.5244 GB, free: 15.55 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 3.578e-05/0.4578, allocations: 56.19 kB / 0.5244 GB, free: 15.49 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000143/0.4579, allocations: 5.969 kB / 0.5244 GB, free: 15.48 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002208/0.4581, allocations: 87.05 kB / 0.5245 GB, free: 15.38 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002532/0.4584, allocations: 0.6768 MB / 0.5252 GB, free: 14.68 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 7.824e-06/0.4584, allocations: 3.938 kB / 0.5252 GB, free: 14.68 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.194e-05/0.4584, allocations: 8.594 kB / 0.5252 GB, free: 14.67 MB / 398.1 MB Notification: Performance of SimCode: time 2.1e-07/0.4584, allocations: 1.5 kB / 0.5252 GB, free: 14.67 MB / 398.1 MB Notification: Performance of Templates: time 0.004916/0.4634, allocations: 1.593 MB / 0.5267 GB, free: 14.26 MB / 398.1 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Utilities.TestFiles.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Utilities.TestFiles.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Utilities.TestFiles.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Utilities.TestFiles.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Utilities.TestFiles.sim & ./ModelicaTest_4.0.0_ModelicaTest.Utilities.TestFiles -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Utilities.TestFiles.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Utilities.TestFiles_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Utilities/TestFiles/TestFiles.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Utilities.TestFiles.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches