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.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.001911/0.001911, allocations: 111.1 kB / 20.44 MB, free: 1.062 MB / 14.72 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.002461/0.002461, allocations: 214.3 kB / 23.73 MB, free: 4.16 MB / 14.72 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.507/1.507, allocations: 230.6 MB / 257.5 MB, free: 7.805 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2228/0.2228, allocations: 44.94 MB / 358.8 MB, free: 6.074 MB / 286.1 MB " [Timeout remaining time 179] 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.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.0.0_ModelicaTest.Utilities.TestFiles") translateModel(ModelicaTest.Utilities.TestFiles,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Utilities.TestFiles") [Timeout 660] "Notification: ModelicaTest requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002139/0.002139, allocations: 63.89 kB / 0.4935 GB, free: 10.09 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3629/0.3651, allocations: 65.48 MB / 0.5574 GB, free: 7.508 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestFiles): time 0.001848/0.3669, allocations: 489.1 kB / 0.5579 GB, free: 7.027 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.00243/0.3694, allocations: 1.342 MB / 0.5592 GB, free: 5.68 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.594e-05/0.3694, allocations: 0 / 0.5592 GB, free: 5.68 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.913e-05/0.3694, allocations: 3.938 kB / 0.5592 GB, free: 5.676 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002114/0.3696, allocations: 8 kB / 0.5592 GB, free: 5.668 MB / 398.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.001189/0.3708, allocations: 272.2 kB / 0.5595 GB, free: 5.406 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 5.403e-05/0.3709, allocations: 7.938 kB / 0.5595 GB, free: 5.398 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.088e-05/0.3709, allocations: 3.938 kB / 0.5595 GB, free: 5.395 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.796e-05/0.3709, allocations: 0 / 0.5595 GB, free: 5.395 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.665e-05/0.371, allocations: 4 kB / 0.5595 GB, free: 5.391 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 7.805e-06/0.371, allocations: 0 / 0.5595 GB, free: 5.391 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004166/0.3751, allocations: 0.7196 MB / 0.5602 GB, free: 4.797 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 1.14e-05/0.3752, allocations: 0 / 0.5602 GB, free: 4.797 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.623e-05/0.3752, allocations: 3.938 kB / 0.5602 GB, free: 4.793 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003649/0.3755, allocations: 174.2 kB / 0.5604 GB, free: 4.629 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.779e-06/0.3755, allocations: 0 / 0.5604 GB, free: 4.629 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.184e-06/0.3756, allocations: 7.875 kB / 0.5604 GB, free: 4.621 MB / 398.1 MB Notification: Performance of Transformations before backend: time 7.324e-06/0.3756, allocations: 0 / 0.5604 GB, free: 4.621 MB / 398.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.0004777/0.376, allocations: 315.7 kB / 0.5607 GB, free: 4.277 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.457e-05/0.3761, allocations: 12.03 kB / 0.5607 GB, free: 4.266 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.72e-05/0.3761, allocations: 0.9375 kB / 0.5607 GB, free: 4.266 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001259/0.3762, allocations: 102.5 kB / 0.5608 GB, free: 4.141 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.315e-05/0.3763, allocations: 384 / 0.5608 GB, free: 4.141 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.021e-05/0.3763, allocations: 4.375 kB / 0.5608 GB, free: 4.137 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001717/0.3764, allocations: 63.52 kB / 0.5609 GB, free: 4.062 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.208e-05/0.3765, allocations: 4 kB / 0.5609 GB, free: 4.059 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.037e-06/0.3765, allocations: 0 / 0.5609 GB, free: 4.059 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.098e-06/0.3765, allocations: 0 / 0.5609 GB, free: 4.059 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.351e-05/0.3765, allocations: 29.7 kB / 0.5609 GB, free: 4.023 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001319/0.3766, allocations: 97.33 kB / 0.561 GB, free: 3.898 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 7.631e-05/0.3767, allocations: 48.2 kB / 0.561 GB, free: 3.836 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.393e-05/0.3767, allocations: 38.66 kB / 0.5611 GB, free: 3.789 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.097e-06/0.3767, allocations: 0 / 0.5611 GB, free: 3.789 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.463e-05/0.3768, allocations: 56.27 kB / 0.5611 GB, free: 3.719 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 1.353e-06/0.3768, allocations: 4 kB / 0.5611 GB, free: 3.715 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0002556/0.3771, allocations: 130.6 kB / 0.5612 GB, free: 3.562 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.672e-05/0.3771, allocations: 77.11 kB / 0.5613 GB, free: 3.469 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.72e-05/0.3772, allocations: 97.98 kB / 0.5614 GB, free: 3.363 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.585e-05/0.3772, allocations: 25.7 kB / 0.5614 GB, free: 3.332 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.13e-05/0.3773, allocations: 80.14 kB / 0.5615 GB, free: 3.25 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.866e-05/0.3773, allocations: 4 kB / 0.5615 GB, free: 3.246 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.564e-05/0.3773, allocations: 13.72 kB / 0.5615 GB, free: 3.227 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001708/0.3775, allocations: 314.8 kB / 0.5618 GB, free: 2.91 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.693e-05/0.3775, allocations: 29.7 kB / 0.5619 GB, free: 2.875 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.473e-05/0.3775, allocations: 25.7 kB / 0.5619 GB, free: 2.844 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.748e-05/0.3776, allocations: 60.27 kB / 0.5619 GB, free: 2.77 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.693e-06/0.3776, allocations: 4.188 kB / 0.5619 GB, free: 2.766 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 0.0001124/0.3777, allocations: 101 kB / 0.562 GB, free: 2.648 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.929e-05/0.3778, allocations: 37.64 kB / 0.5621 GB, free: 2.605 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.147e-06/0.3778, allocations: 0 / 0.5621 GB, free: 2.605 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.635e-05/0.3778, allocations: 3.984 kB / 0.5621 GB, free: 2.602 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.21e-07/0.3778, allocations: 3.938 kB / 0.5621 GB, free: 2.598 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.34e-06/0.3778, allocations: 0 / 0.5621 GB, free: 2.598 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.488e-05/0.3778, allocations: 0 / 0.5621 GB, free: 2.598 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.962e-06/0.3778, allocations: 4 kB / 0.5621 GB, free: 2.594 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: 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 0.0001096/0.3779, allocations: 135.5 kB / 0.5622 GB, free: 2.445 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.243e-05/0.3779, allocations: 11.97 kB / 0.5622 GB, free: 2.434 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.662e-05/0.3779, allocations: 3.156 kB / 0.5622 GB, free: 2.426 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.042e-06/0.3779, allocations: 0 / 0.5622 GB, free: 2.426 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.378e-06/0.3779, allocations: 0 / 0.5622 GB, free: 2.426 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.026e-06/0.3779, allocations: 0 / 0.5622 GB, free: 2.426 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.79e-05/0.378, allocations: 101.3 kB / 0.5623 GB, free: 2.297 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.01e-07/0.378, allocations: 0 / 0.5623 GB, free: 2.297 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.91e-07/0.378, allocations: 0 / 0.5623 GB, free: 2.297 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.29e-06/0.3781, allocations: 7.984 kB / 0.5623 GB, free: 2.289 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.132e-05/0.3781, allocations: 3.938 kB / 0.5623 GB, free: 2.285 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.91e-07/0.3781, allocations: 0 / 0.5623 GB, free: 2.285 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.939e-06/0.3781, allocations: 11.98 kB / 0.5624 GB, free: 2.273 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001382/0.3782, allocations: 120.5 kB / 0.5625 GB, free: 2.125 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.208e-06/0.3782, allocations: 0 / 0.5625 GB, free: 2.125 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.702e-05/0.3782, allocations: 7.938 kB / 0.5625 GB, free: 2.117 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.656e-06/0.3782, allocations: 3.938 kB / 0.5625 GB, free: 2.113 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.034e-05/0.3782, allocations: 0 / 0.5625 GB, free: 2.113 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.324e-06/0.3783, allocations: 0 / 0.5625 GB, free: 2.113 MB / 398.1 MB Notification: Performance of sorting global known variables: time 4.465e-05/0.3783, allocations: 79.28 kB / 0.5626 GB, free: 2.035 MB / 398.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3783, allocations: 0 / 0.5626 GB, free: 2.035 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0003099/0.3786, allocations: 63.86 kB / 0.5626 GB, free: 1.973 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.0008338/0.3794, allocations: 341.6 kB / 0.5629 GB, free: 1.707 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0001303/0.3796, allocations: 118.7 kB / 0.5631 GB, free: 1.566 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.114e-06/0.3796, allocations: 0 / 0.5631 GB, free: 1.566 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 5.945e-05/0.3796, allocations: 85.05 kB / 0.5631 GB, free: 1.465 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001363/0.3798, allocations: 4 kB / 0.5631 GB, free: 1.461 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002267/0.38, allocations: 114.7 kB / 0.5632 GB, free: 1.316 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.33e-05/0.38, allocations: 55.36 kB / 0.5633 GB, free: 1.242 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 6.011e-06/0.3801, allocations: 0 / 0.5633 GB, free: 1.242 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.788e-05/0.3801, allocations: 11.56 kB / 0.5633 GB, free: 1.23 MB / 398.1 MB Notification: Performance of SimCode: time 3.3e-07/0.3801, allocations: 0 / 0.5633 GB, free: 1.23 MB / 398.1 MB Notification: Performance of Templates: time 0.005102/0.3852, allocations: 1.592 MB / 0.5649 GB, free: 15.64 MB / 414.1 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Utilities.TestFiles.makefile [Timeout 660] (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) [Timeout 480] 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) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 5.286823008209467]