Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0_ModelicaTest.Utilities.TestInternal.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.001211/0.001211, allocations: 76.17 kB / 9.931 MB, free: 0.7539 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001821/0.003032, allocations: 449.7 kB / 10.37 MB, free: 324 kB / 10.45 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.001235/0.001235, allocations: 169.1 kB / 11.26 MB, free: 2.906 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001478/0.002713, allocations: 455.6 kB / 11.71 MB, free: 2.457 MB / 13.93 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.068/1.068, allocations: 177.2 MB / 189.6 MB, free: 5.309 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.09935/1.167, allocations: 53.65 MB / 243.3 MB, free: 15.58 MB / 250.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.284/0.284, allocations: 34.26 MB / 278.2 MB, free: 15.29 MB / 282.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.02674/0.3108, allocations: 13.09 MB / 291.3 MB, free: 7.375 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.TestInternal,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.1.0_ModelicaTest.Utilities.TestInternal") translateModel(ModelicaTest.Utilities.TestInternal,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.1.0_ModelicaTest.Utilities.TestInternal") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.776e-06/2.776e-06, allocations: 4 kB / 292.6 MB, free: 6.328 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.333e-05/2.611e-05, allocations: 3.188 kB / 292.6 MB, free: 6.324 MB / 282.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestInternal): time 0.00156/0.001586, allocations: 0.5313 MB / 293.1 MB, free: 5.797 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.0004104/0.001996, allocations: 271.1 kB / 293.4 MB, free: 5.531 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.331e-05/0.00201, allocations: 4 kB / 293.4 MB, free: 5.527 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 4.328e-06/0.002014, allocations: 0 / 293.4 MB, free: 5.527 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 1.112e-06/0.002015, allocations: 0 / 293.4 MB, free: 5.527 MB / 282.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/Utilities.mo:398:3-453: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.0001797/0.002195, allocations: 51.7 kB / 293.4 MB, free: 5.477 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 6.315e-05/0.002258, allocations: 0 / 293.4 MB, free: 5.477 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.587e-05/0.002294, allocations: 4 kB / 293.5 MB, free: 5.473 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 3.238e-05/0.002326, allocations: 7.922 kB / 293.5 MB, free: 5.465 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 2.915e-05/0.002355, allocations: 0 / 293.5 MB, free: 5.465 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 9.959e-06/0.002365, allocations: 3.938 kB / 293.5 MB, free: 5.461 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001715/0.002537, allocations: 71.88 kB / 293.5 MB, free: 5.391 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 6.903e-06/0.002544, allocations: 0 / 293.5 MB, free: 5.391 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 1.384e-05/0.002558, allocations: 4.5 kB / 293.5 MB, free: 5.387 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001241/0.002682, allocations: 51.89 kB / 293.6 MB, free: 5.336 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.535e-05/0.002697, allocations: 0 / 293.6 MB, free: 5.336 MB / 282.7 MB Notification: Performance of FrontEnd: time 2.074e-06/0.002699, allocations: 7.938 kB / 293.6 MB, free: 5.328 MB / 282.7 MB Notification: Performance of Transformations before backend: time 1.571e-05/0.002715, allocations: 0 / 293.6 MB, free: 5.328 MB / 282.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.0002835/0.002998, allocations: 258.3 kB / 293.8 MB, free: 5.043 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.26e-05/0.003031, allocations: 12.03 kB / 293.9 MB, free: 5.031 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.089e-05/0.003062, allocations: 0.9375 kB / 293.9 MB, free: 5.031 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 5.776e-05/0.00312, allocations: 101.8 kB / 294 MB, free: 4.906 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.006035/0.009154, allocations: 4.375 kB / 294 MB, free: 4.902 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.896e-06/0.009163, allocations: 384 / 294 MB, free: 4.902 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.362e-05/0.009257, allocations: 67.89 kB / 294 MB, free: 4.824 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.653e-06/0.009264, allocations: 192 / 294 MB, free: 4.824 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.481e-06/0.009269, allocations: 384 / 294 MB, free: 4.824 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.381e-06/0.009274, allocations: 384 / 294 MB, free: 4.824 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.168e-05/0.009296, allocations: 29.64 kB / 294.1 MB, free: 4.789 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 8.102e-05/0.009377, allocations: 65.05 kB / 294.1 MB, free: 4.711 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.403e-05/0.009421, allocations: 44.31 kB / 294.2 MB, free: 4.652 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.831e-05/0.009439, allocations: 34.55 kB / 294.2 MB, free: 4.609 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.128e-06/0.009444, allocations: 0 / 294.2 MB, free: 4.609 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.082e-05/0.009484, allocations: 68.25 kB / 294.3 MB, free: 4.527 MB / 282.7 MB Notification: Performance of pre-optimization done (n=1): time 1.082e-06/0.009485, allocations: 4 kB / 294.3 MB, free: 4.523 MB / 282.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001268/0.009612, allocations: 106.8 kB / 294.4 MB, free: 4.395 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.204e-05/0.009664, allocations: 85.09 kB / 294.5 MB, free: 4.293 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.663e-05/0.009701, allocations: 89.86 kB / 294.5 MB, free: 4.195 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 9.448e-06/0.00971, allocations: 25.7 kB / 294.6 MB, free: 4.164 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.057e-05/0.009731, allocations: 80.14 kB / 294.7 MB, free: 4.082 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.862e-05/0.00975, allocations: 4 kB / 294.7 MB, free: 4.078 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.279e-05/0.009782, allocations: 13.72 kB / 294.7 MB, free: 4.059 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 8.45e-05/0.009867, allocations: 318.7 kB / 295 MB, free: 3.738 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.455e-05/0.009891, allocations: 29.7 kB / 295 MB, free: 3.703 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.526e-05/0.009907, allocations: 33.77 kB / 295 MB, free: 3.664 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.698e-05/0.009954, allocations: 64.25 kB / 295.1 MB, free: 3.586 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.615e-06/0.009956, allocations: 0 / 295.1 MB, free: 3.586 MB / 282.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.26e-05/0.01003, allocations: 85.11 kB / 295.2 MB, free: 3.484 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.095e-05/0.01007, allocations: 29.7 kB / 295.2 MB, free: 3.449 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.542e-06/0.01008, allocations: 3.984 kB / 295.2 MB, free: 3.445 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.646e-06/0.01008, allocations: 0 / 295.2 MB, free: 3.445 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.089e-06/0.01009, allocations: 0 / 295.2 MB, free: 3.445 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.276e-06/0.01009, allocations: 4 kB / 295.2 MB, free: 3.441 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.018e-05/0.01011, allocations: 8.781 kB / 295.2 MB, free: 3.434 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.458e-06/0.01012, allocations: 0 / 295.2 MB, free: 3.434 MB / 282.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 6.739e-05/0.01019, allocations: 135.5 kB / 295.4 MB, free: 3.285 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.895e-06/0.0102, allocations: 7.938 kB / 295.4 MB, free: 3.277 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.718e-06/0.01021, allocations: 3 kB / 295.4 MB, free: 3.277 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.703e-06/0.01021, allocations: 0 / 295.4 MB, free: 3.277 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.623e-06/0.01021, allocations: 0 / 295.4 MB, free: 3.277 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.525e-06/0.01021, allocations: 0 / 295.4 MB, free: 3.277 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 6.051e-05/0.01027, allocations: 77.83 kB / 295.5 MB, free: 3.184 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.022e-06/0.01028, allocations: 0 / 295.5 MB, free: 3.184 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.022e-06/0.01028, allocations: 0 / 295.5 MB, free: 3.184 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.011e-06/0.01028, allocations: 7.984 kB / 295.5 MB, free: 3.176 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.445e-06/0.01028, allocations: 3.984 kB / 295.5 MB, free: 3.172 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.38e-06/0.01029, allocations: 4 kB / 295.5 MB, free: 3.168 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.103e-06/0.01029, allocations: 0 / 295.5 MB, free: 3.168 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.062e-06/0.01029, allocations: 0 / 295.5 MB, free: 3.168 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.04e-05/0.01037, allocations: 112.5 kB / 295.6 MB, free: 3.027 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.174e-05/0.01038, allocations: 4 kB / 295.6 MB, free: 3.023 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.076e-06/0.01039, allocations: 0 / 295.6 MB, free: 3.023 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.694e-06/0.0104, allocations: 0 / 295.6 MB, free: 3.023 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.685e-06/0.0104, allocations: 0 / 295.6 MB, free: 3.023 MB / 282.7 MB Notification: Performance of sorting global known variables: time 7.954e-06/0.01041, allocations: 12.83 kB / 295.6 MB, free: 3.008 MB / 282.7 MB Notification: Performance of sort global known variables: time 8e-08/0.01041, allocations: 0 / 295.6 MB, free: 3.008 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0001901/0.0106, allocations: 27.92 kB / 295.6 MB, free: 2.98 MB / 282.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.0008065/0.01141, allocations: 369 kB / 296 MB, free: 2.777 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0001041/0.01151, allocations: 119.7 kB / 296.1 MB, free: 2.633 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 3.767e-06/0.01152, allocations: 0 / 296.1 MB, free: 2.633 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 3.316e-05/0.01155, allocations: 89.97 kB / 296.2 MB, free: 2.523 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 5.912e-05/0.01161, allocations: 12.06 kB / 296.2 MB, free: 2.512 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001692/0.01178, allocations: 109.1 kB / 296.3 MB, free: 2.371 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.075e-05/0.01181, allocations: 51.36 kB / 296.4 MB, free: 2.301 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 7.665e-06/0.01182, allocations: 3.984 kB / 296.4 MB, free: 2.297 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.065e-05/0.01186, allocations: 51.38 kB / 296.4 MB, free: 2.246 MB / 282.7 MB Notification: Performance of SimCode: time 9.02e-07/0.01186, allocations: 0 / 296.4 MB, free: 2.246 MB / 282.7 MB Notification: Performance of Templates: time 0.005959/0.01782, allocations: 0.9511 MB / 297.4 MB, free: 1.297 MB / 282.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.1.0_ModelicaTest.Utilities.TestInternal.makefile [Timeout 660] (rm -f ModelicaTest_4.1.0_ModelicaTest.Utilities.TestInternal.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.Utilities.TestInternal.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.Utilities.TestInternal.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.Utilities.TestInternal.sim & ./ModelicaTest_4.1.0_ModelicaTest.Utilities.TestInternal -abortSlowSimulation -alarm=240 -emit_protected -ignoreHideResult -lv LOG_STATS > ModelicaTest_4.1.0_ModelicaTest.Utilities.TestInternal.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_4.1.0_ModelicaTest.Utilities.TestInternal_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Utilities/TestInternal/TestInternal.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: 2.960649856366217]