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.001399/0.001399, allocations: 111.1 kB / 20.44 MB, free: 1.176 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.002217/0.002217, allocations: 204.2 kB / 23.73 MB, free: 4.379 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.521/1.521, allocations: 230.6 MB / 257.5 MB, free: 7.785 MB / 206.1 MB " [Timeout remaining time 178] 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.2543/0.2543, allocations: 46.96 MB / 360.9 MB, free: 4.023 MB / 286.1 MB " [Timeout remaining time 179] 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 0.002389/0.002389, allocations: 71.89 kB / 0.4966 GB, free: 7.227 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3823/0.3846, allocations: 66.04 MB / 0.5611 GB, free: 4.148 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestFiles): time 0.001799/0.3864, allocations: 485.1 kB / 0.5615 GB, free: 3.672 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.002394/0.3888, allocations: 1.354 MB / 0.5628 GB, free: 2.312 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.418e-05/0.3889, allocations: 0 / 0.5628 GB, free: 2.312 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.395e-05/0.3889, allocations: 0 / 0.5628 GB, free: 2.312 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002273/0.3891, allocations: 11.94 kB / 0.5629 GB, free: 2.301 MB / 398.1 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.001243/0.3904, allocations: 265 kB / 0.5631 GB, free: 2.047 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 6.711e-05/0.3904, allocations: 11.98 kB / 0.5631 GB, free: 2.035 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.204e-05/0.3905, allocations: 0 / 0.5631 GB, free: 2.035 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.062e-05/0.3905, allocations: 4 kB / 0.5631 GB, free: 2.031 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.538e-05/0.3905, allocations: 0 / 0.5631 GB, free: 2.031 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 8.786e-06/0.3906, allocations: 0 / 0.5631 GB, free: 2.031 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004323/0.3949, allocations: 0.7372 MB / 0.5638 GB, free: 1.422 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 1.707e-05/0.3949, allocations: 3.938 kB / 0.5638 GB, free: 1.418 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.699e-05/0.3949, allocations: 4 kB / 0.5639 GB, free: 1.414 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00037/0.3953, allocations: 178.1 kB / 0.564 GB, free: 1.246 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.378e-06/0.3953, allocations: 0 / 0.564 GB, free: 1.246 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.684e-06/0.3953, allocations: 0 / 0.564 GB, free: 1.246 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.408e-05/0.3953, allocations: 3.938 kB / 0.564 GB, free: 1.242 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.00045/0.3958, allocations: 307.7 kB / 0.5643 GB, free: 0.9062 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.701e-05/0.3958, allocations: 12.03 kB / 0.5643 GB, free: 0.8945 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.215e-05/0.3958, allocations: 4.938 kB / 0.5643 GB, free: 0.8906 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001101/0.3959, allocations: 110.5 kB / 0.5644 GB, free: 0.7578 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.348e-05/0.396, allocations: 4.375 kB / 0.5644 GB, free: 0.7539 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.44e-05/0.396, allocations: 384 / 0.5644 GB, free: 0.7539 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001314/0.3961, allocations: 63.53 kB / 0.5645 GB, free: 0.6797 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.989e-06/0.3961, allocations: 0 / 0.5645 GB, free: 0.6797 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.816e-06/0.3961, allocations: 0 / 0.5645 GB, free: 0.6797 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.328e-06/0.3961, allocations: 0 / 0.5645 GB, free: 0.6797 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.372e-05/0.3962, allocations: 29.64 kB / 0.5645 GB, free: 0.6445 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000138/0.3963, allocations: 101.3 kB / 0.5646 GB, free: 0.5156 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 7.816e-05/0.3964, allocations: 48.31 kB / 0.5647 GB, free: 464 kB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.412e-05/0.3964, allocations: 38.5 kB / 0.5647 GB, free: 416 kB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.05e-05/0.3964, allocations: 0 / 0.5647 GB, free: 416 kB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.612e-05/0.3965, allocations: 60.33 kB / 0.5648 GB, free: 340 kB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 8.02e-07/0.3965, allocations: 0 / 0.5648 GB, free: 340 kB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0002538/0.3967, allocations: 122.7 kB / 0.5649 GB, free: 192 kB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.218e-05/0.3968, allocations: 85.11 kB / 0.565 GB, free: 88 kB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.992e-05/0.3969, allocations: 89.86 kB / 0.5651 GB, free: 15.99 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 1.769e-05/0.3969, allocations: 25.95 kB / 0.5651 GB, free: 15.96 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.025e-05/0.3969, allocations: 92.12 kB / 0.5652 GB, free: 15.86 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.603e-05/0.397, allocations: 0 / 0.5652 GB, free: 15.86 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.791e-05/0.397, allocations: 9.719 kB / 0.5652 GB, free: 15.85 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001481/0.3971, allocations: 318.8 kB / 0.5655 GB, free: 15.53 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.842e-05/0.3972, allocations: 25.7 kB / 0.5655 GB, free: 15.5 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.159e-05/0.3972, allocations: 25.7 kB / 0.5655 GB, free: 15.46 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.59e-05/0.3973, allocations: 60.27 kB / 0.5656 GB, free: 15.39 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.573e-06/0.3973, allocations: 7.938 kB / 0.5656 GB, free: 15.38 MB / 414.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 9.82e-05/0.3974, allocations: 97.05 kB / 0.5657 GB, free: 15.27 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.282e-05/0.3974, allocations: 37.73 kB / 0.5657 GB, free: 15.23 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.318e-06/0.3974, allocations: 0 / 0.5657 GB, free: 15.23 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.459e-05/0.3974, allocations: 0 / 0.5657 GB, free: 15.23 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.52e-07/0.3974, allocations: 0 / 0.5657 GB, free: 15.23 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.428e-06/0.3974, allocations: 0 / 0.5657 GB, free: 15.23 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.359e-05/0.3974, allocations: 4 kB / 0.5657 GB, free: 15.22 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.289e-05/0.3975, allocations: 7.984 kB / 0.5657 GB, free: 15.21 MB / 414.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 9.392e-05/0.3976, allocations: 135.5 kB / 0.5659 GB, free: 15.07 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.049e-05/0.3976, allocations: 3.938 kB / 0.5659 GB, free: 15.06 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.516e-05/0.3976, allocations: 3.156 kB / 0.5659 GB, free: 15.05 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.102e-06/0.3976, allocations: 4 kB / 0.5659 GB, free: 15.05 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.599e-06/0.3976, allocations: 3.938 kB / 0.5659 GB, free: 15.05 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.989e-06/0.3976, allocations: 3.984 kB / 0.5659 GB, free: 15.04 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.014e-05/0.3977, allocations: 105.3 kB / 0.566 GB, free: 14.91 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.81e-07/0.3977, allocations: 0 / 0.566 GB, free: 14.91 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.41e-07/0.3977, allocations: 0 / 0.566 GB, free: 14.91 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.313e-06/0.3977, allocations: 0 / 0.566 GB, free: 14.91 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.187e-05/0.3977, allocations: 7.938 kB / 0.566 GB, free: 14.9 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.022e-06/0.3977, allocations: 0 / 0.566 GB, free: 14.9 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.076e-06/0.3977, allocations: 7.875 kB / 0.566 GB, free: 14.89 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001344/0.3978, allocations: 116.5 kB / 0.5661 GB, free: 14.75 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.498e-06/0.3978, allocations: 4.031 kB / 0.5661 GB, free: 14.75 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.506e-05/0.3979, allocations: 7.938 kB / 0.5661 GB, free: 14.74 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.837e-06/0.3979, allocations: 0 / 0.5661 GB, free: 14.74 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.698e-05/0.3979, allocations: 0 / 0.5661 GB, free: 14.74 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.895e-06/0.3979, allocations: 0 / 0.5661 GB, free: 14.74 MB / 414.1 MB Notification: Performance of sorting global known variables: time 4.288e-05/0.3979, allocations: 79.28 kB / 0.5662 GB, free: 14.66 MB / 414.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3979, allocations: 0 / 0.5662 GB, free: 14.66 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0003093/0.3982, allocations: 63.86 kB / 0.5663 GB, free: 14.6 MB / 414.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.0009036/0.3991, allocations: 337.4 kB / 0.5666 GB, free: 14.34 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0001558/0.3993, allocations: 122.7 kB / 0.5667 GB, free: 14.19 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.554e-06/0.3993, allocations: 0 / 0.5667 GB, free: 14.19 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 5.694e-05/0.3994, allocations: 81.11 kB / 0.5668 GB, free: 14.09 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001477/0.3995, allocations: 4 kB / 0.5668 GB, free: 14.09 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002272/0.3997, allocations: 114.7 kB / 0.5669 GB, free: 13.95 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.316e-05/0.3998, allocations: 55.36 kB / 0.5669 GB, free: 13.87 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 6.011e-06/0.3998, allocations: 3.938 kB / 0.5669 GB, free: 13.87 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.325e-05/0.3998, allocations: 11.38 kB / 0.567 GB, free: 13.86 MB / 414.1 MB Notification: Performance of SimCode: time 3e-07/0.3998, allocations: 0 / 0.567 GB, free: 13.86 MB / 414.1 MB Notification: Performance of Templates: time 0.005413/0.4052, allocations: 1.613 MB / 0.5685 GB, free: 12.25 MB / 414.1 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=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0_ModelicaTest.Utilities.TestFiles.pipe 2>&1) [Timeout 480] 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.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.375494258012623]