Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0_ModelicaTest.Utilities.TestFiles.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001292/0.001292, allocations: 80.41 kB / 22.21 MB, free: 2.289 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001303/0.001303, allocations: 167.6 kB / 25.61 MB, free: 8.582 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.044/1.044, allocations: 177.1 MB / 206 MB, free: 4.508 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo): time 0.1668/0.1668, allocations: 34.26 MB / 296.9 MB, free: 13.94 MB / 282.7 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(ModelicaTest.Utilities.TestFiles,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.1.0_ModelicaTest.Utilities.TestFiles") translateModel(ModelicaTest.Utilities.TestFiles,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.1.0_ModelicaTest.Utilities.TestFiles") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.613e-06/1.613e-06, allocations: 0 / 379.3 MB, free: 23.47 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.668e-05/2.829e-05, allocations: 2.312 kB / 379.3 MB, free: 23.47 MB / 314.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestFiles): time 0.004833/0.004861, allocations: 0.493 MB / 379.7 MB, free: 22.97 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.002507/0.007369, allocations: 1.391 MB / 381.1 MB, free: 21.57 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.319e-05/0.007412, allocations: 0 / 381.1 MB, free: 21.57 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 2.397e-05/0.007436, allocations: 4 kB / 381.1 MB, free: 21.57 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002452/0.007681, allocations: 3.938 kB / 381.1 MB, free: 21.57 MB / 314.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/Utilities.mo:455:3-487: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.001565/0.009246, allocations: 275.1 kB / 381.4 MB, free: 21.3 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 8.204e-05/0.009328, allocations: 15.98 kB / 381.4 MB, free: 21.29 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 5.367e-05/0.009382, allocations: 0 / 381.4 MB, free: 21.29 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 4.157e-05/0.009424, allocations: 7.922 kB / 381.4 MB, free: 21.28 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 6.451e-05/0.009488, allocations: 4 kB / 381.4 MB, free: 21.28 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 1.014e-05/0.009498, allocations: 0 / 381.4 MB, free: 21.28 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003464/0.01296, allocations: 0.9904 MB / 382.4 MB, free: 20.55 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 1.644e-05/0.01298, allocations: 0 / 382.4 MB, free: 20.55 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 2.758e-05/0.01301, allocations: 3.984 kB / 382.4 MB, free: 20.55 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004762/0.01348, allocations: 215.4 kB / 382.6 MB, free: 20.34 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.793e-06/0.01349, allocations: 0 / 382.6 MB, free: 20.34 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.264e-06/0.01349, allocations: 0 / 382.6 MB, free: 20.34 MB / 314.7 MB Notification: Performance of Transformations before backend: time 6.752e-06/0.0135, allocations: 0 / 382.6 MB, free: 20.34 MB / 314.7 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.00041/0.01391, allocations: 413.6 kB / 383 MB, free: 19.89 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.15e-05/0.01396, allocations: 8.031 kB / 383.1 MB, free: 19.88 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.885e-05/0.01401, allocations: 4.938 kB / 383.1 MB, free: 19.88 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001214/0.01413, allocations: 120.8 kB / 383.2 MB, free: 19.73 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.197e-05/0.01415, allocations: 4.375 kB / 383.2 MB, free: 19.73 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.181e-05/0.01416, allocations: 384 / 383.2 MB, free: 19.73 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001175/0.01428, allocations: 59.95 kB / 383.2 MB, free: 19.66 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.237e-05/0.01429, allocations: 192 / 383.2 MB, free: 19.66 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.212e-05/0.01431, allocations: 4.125 kB / 383.2 MB, free: 19.66 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.117e-06/0.01432, allocations: 0 / 383.2 MB, free: 19.66 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.883e-05/0.01433, allocations: 29.7 kB / 383.3 MB, free: 19.62 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 9.921e-05/0.01443, allocations: 89.27 kB / 383.4 MB, free: 19.51 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 5.236e-05/0.01449, allocations: 60.73 kB / 383.4 MB, free: 19.43 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.091e-05/0.01451, allocations: 37.38 kB / 383.5 MB, free: 19.38 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.861e-06/0.01451, allocations: 0 / 383.5 MB, free: 19.38 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.219e-05/0.01455, allocations: 67.14 kB / 383.5 MB, free: 19.3 MB / 314.7 MB Notification: Performance of pre-optimization done (n=1): time 1.603e-06/0.01456, allocations: 0 / 383.5 MB, free: 19.3 MB / 314.7 MB Notification: Performance of matching and sorting (n=1): time 0.0002148/0.01477, allocations: 118.8 kB / 383.6 MB, free: 19.16 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.698e-05/0.01481, allocations: 77.11 kB / 383.7 MB, free: 19.07 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.84e-05/0.01489, allocations: 157.9 kB / 383.9 MB, free: 18.89 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 8.376e-06/0.01489, allocations: 29.89 kB / 383.9 MB, free: 18.86 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.494e-05/0.01492, allocations: 130.9 kB / 384 MB, free: 18.73 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.86e-05/0.01495, allocations: 7.984 kB / 384 MB, free: 18.72 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.889e-05/0.01499, allocations: 15.38 kB / 384 MB, free: 18.7 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001101/0.0151, allocations: 0.4884 MB / 384.5 MB, free: 18.2 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.095e-05/0.01513, allocations: 25.7 kB / 384.6 MB, free: 18.16 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.662e-05/0.01514, allocations: 25.7 kB / 384.6 MB, free: 18.13 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.077e-05/0.0152, allocations: 67.09 kB / 384.7 MB, free: 18.05 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.945e-06/0.0152, allocations: 0 / 384.7 MB, free: 18.05 MB / 314.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 0.0001022/0.0153, allocations: 89.09 kB / 384.7 MB, free: 17.95 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.872e-05/0.01534, allocations: 37.8 kB / 384.8 MB, free: 17.9 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.231e-06/0.01535, allocations: 0 / 384.8 MB, free: 17.9 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.514e-05/0.01536, allocations: 0 / 384.8 MB, free: 17.9 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.563e-06/0.01536, allocations: 7.875 kB / 384.8 MB, free: 17.89 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.779e-06/0.01537, allocations: 3.938 kB / 384.8 MB, free: 17.89 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.936e-05/0.01539, allocations: 0 / 384.8 MB, free: 17.89 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.771e-06/0.01539, allocations: 0 / 384.8 MB, free: 17.89 MB / 314.7 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 5.686e-05/0.01545, allocations: 182.3 kB / 385 MB, free: 17.7 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.006e-05/0.01546, allocations: 4 kB / 385 MB, free: 17.69 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.378e-05/0.01547, allocations: 7.141 kB / 385 MB, free: 17.69 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.994e-06/0.01547, allocations: 4 kB / 385 MB, free: 17.68 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.375e-06/0.01548, allocations: 4 kB / 385 MB, free: 17.68 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.907e-06/0.01548, allocations: 3.938 kB / 385 MB, free: 17.68 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 5.608e-05/0.01554, allocations: 97.27 kB / 385.1 MB, free: 17.55 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.613e-06/0.01554, allocations: 0 / 385.1 MB, free: 17.55 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.232e-06/0.01554, allocations: 0 / 385.1 MB, free: 17.55 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.492e-06/0.01554, allocations: 0 / 385.1 MB, free: 17.55 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.009e-06/0.01555, allocations: 0 / 385.1 MB, free: 17.55 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.72e-07/0.01555, allocations: 0 / 385.1 MB, free: 17.55 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.11e-07/0.01555, allocations: 0 / 385.1 MB, free: 17.55 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.763e-05/0.01565, allocations: 135.7 kB / 385.2 MB, free: 17.39 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.606e-06/0.01565, allocations: 11.97 kB / 385.2 MB, free: 17.38 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.358e-05/0.01567, allocations: 4 kB / 385.2 MB, free: 17.37 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.397e-06/0.01568, allocations: 0 / 385.2 MB, free: 17.37 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.168e-05/0.01569, allocations: 3.984 kB / 385.2 MB, free: 17.37 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.198e-06/0.01569, allocations: 0 / 385.2 MB, free: 17.37 MB / 314.7 MB Notification: Performance of sorting global known variables: time 2.279e-05/0.01572, allocations: 127.2 kB / 385.4 MB, free: 17.24 MB / 314.7 MB Notification: Performance of sort global known variables: time 7e-08/0.01572, allocations: 0 / 385.4 MB, free: 17.24 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0003188/0.01603, allocations: 59.86 kB / 385.4 MB, free: 17.18 MB / 314.7 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.0008452/0.01688, allocations: 374 kB / 385.8 MB, free: 16.89 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.000108/0.01699, allocations: 122.5 kB / 385.9 MB, free: 16.74 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.385e-06/0.01699, allocations: 0 / 385.9 MB, free: 16.74 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 2.828e-05/0.01702, allocations: 92.78 kB / 386 MB, free: 16.63 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001574/0.01718, allocations: 3.984 kB / 386 MB, free: 16.62 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002125/0.01739, allocations: 126 kB / 386.1 MB, free: 16.47 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.912e-05/0.01742, allocations: 59.2 kB / 386.2 MB, free: 16.39 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 7.063e-06/0.01742, allocations: 0 / 386.2 MB, free: 16.39 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.649e-05/0.01746, allocations: 70.2 kB / 386.2 MB, free: 16.32 MB / 314.7 MB Notification: Performance of SimCode: time 1.032e-06/0.01746, allocations: 128 / 386.2 MB, free: 16.32 MB / 314.7 MB Notification: Performance of Templates: time 0.004983/0.02245, allocations: 1.907 MB / 388.2 MB, free: 14.42 MB / 314.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.1.0_ModelicaTest.Utilities.TestFiles.makefile [Timeout 660] (rm -f ModelicaTest_4.1.0_ModelicaTest.Utilities.TestFiles.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.Utilities.TestFiles.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.Utilities.TestFiles.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.Utilities.TestFiles.sim & ./ModelicaTest_4.1.0_ModelicaTest.Utilities.TestFiles -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0_ModelicaTest.Utilities.TestFiles.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_4.1.0_ModelicaTest.Utilities.TestFiles_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Utilities/TestFiles/TestFiles.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.46016827179119]