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.001488/0.001488, allocations: 112.2 kB / 21.19 MB, free: 0.7617 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.001646/0.001646, allocations: 209.9 kB / 24.49 MB, free: 4.145 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.458/1.458, allocations: 230.6 MB / 258.3 MB, free: 8 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.2211/0.2211, allocations: 46.94 MB / 361.6 MB, free: 4.293 MB / 286.1 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 0.002275/0.002275, allocations: 59.91 kB / 0.4974 GB, free: 7.445 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3502/0.3525, allocations: 66.03 MB / 0.5619 GB, free: 4.441 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestFiles): time 0.001666/0.3541, allocations: 0.4891 MB / 0.5623 GB, free: 3.949 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.002224/0.3564, allocations: 1.374 MB / 0.5637 GB, free: 2.57 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.189e-05/0.3564, allocations: 0 / 0.5637 GB, free: 2.57 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.835e-05/0.3564, allocations: 3.938 kB / 0.5637 GB, free: 2.566 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001775/0.3566, allocations: 8 kB / 0.5637 GB, free: 2.559 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.001177/0.3578, allocations: 260.1 kB / 0.5639 GB, free: 2.309 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 5.773e-05/0.3578, allocations: 8 kB / 0.5639 GB, free: 2.301 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.329e-05/0.3578, allocations: 0 / 0.5639 GB, free: 2.301 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.801e-05/0.3579, allocations: 7.938 kB / 0.5639 GB, free: 2.293 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.571e-05/0.358, allocations: 15.97 kB / 0.564 GB, free: 2.277 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 8.626e-06/0.358, allocations: 3.938 kB / 0.564 GB, free: 2.273 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004059/0.362, allocations: 0.7268 MB / 0.5647 GB, free: 1.672 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 9.287e-06/0.362, allocations: 4 kB / 0.5647 GB, free: 1.668 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.569e-05/0.3621, allocations: 8 kB / 0.5647 GB, free: 1.66 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002971/0.3624, allocations: 178.1 kB / 0.5649 GB, free: 1.492 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.871e-06/0.3624, allocations: 3.984 kB / 0.5649 GB, free: 1.488 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.723e-06/0.3624, allocations: 0 / 0.5649 GB, free: 1.488 MB / 398.1 MB Notification: Performance of Transformations before backend: time 6.342e-06/0.3624, allocations: 0 / 0.5649 GB, free: 1.488 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.0004405/0.3628, allocations: 307.7 kB / 0.5652 GB, free: 1.152 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.965e-05/0.3629, allocations: 12.03 kB / 0.5652 GB, free: 1.141 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.308e-05/0.3629, allocations: 0.9375 kB / 0.5652 GB, free: 1.141 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001179/0.363, allocations: 114.5 kB / 0.5653 GB, free: 1.004 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.062e-05/0.363, allocations: 4.375 kB / 0.5653 GB, free: 1 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.219e-05/0.363, allocations: 4.312 kB / 0.5653 GB, free: 0.9961 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001101/0.3631, allocations: 33.81 kB / 0.5653 GB, free: 0.957 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.666e-06/0.3631, allocations: 4 kB / 0.5653 GB, free: 0.9531 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.756e-06/0.3632, allocations: 0 / 0.5653 GB, free: 0.9531 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.168e-06/0.3632, allocations: 0 / 0.5653 GB, free: 0.9531 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.54e-05/0.3632, allocations: 0 / 0.5653 GB, free: 0.9531 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001376/0.3633, allocations: 120.7 kB / 0.5654 GB, free: 0.793 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.735e-05/0.3634, allocations: 26.56 kB / 0.5655 GB, free: 0.7578 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.746e-05/0.3634, allocations: 8.953 kB / 0.5655 GB, free: 0.7461 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.007e-06/0.3634, allocations: 0 / 0.5655 GB, free: 0.7461 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.185e-05/0.3634, allocations: 64.2 kB / 0.5655 GB, free: 0.668 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 8.72e-07/0.3634, allocations: 0 / 0.5655 GB, free: 0.668 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001752/0.3636, allocations: 67.33 kB / 0.5656 GB, free: 0.5898 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.085e-05/0.3637, allocations: 85.23 kB / 0.5657 GB, free: 500 kB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.387e-05/0.3638, allocations: 93.86 kB / 0.5658 GB, free: 396 kB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.684e-05/0.3638, allocations: 25.7 kB / 0.5658 GB, free: 364 kB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.819e-05/0.3638, allocations: 84.14 kB / 0.5659 GB, free: 276 kB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.682e-05/0.3638, allocations: 0 / 0.5659 GB, free: 276 kB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.048e-05/0.3639, allocations: 13.66 kB / 0.5659 GB, free: 256 kB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001517/0.364, allocations: 314.8 kB / 0.5662 GB, free: 15.93 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.226e-05/0.364, allocations: 7.984 kB / 0.5662 GB, free: 15.93 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.991e-06/0.364, allocations: 4.125 kB / 0.5662 GB, free: 15.92 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.947e-05/0.3641, allocations: 60.27 kB / 0.5663 GB, free: 15.85 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.713e-06/0.3641, allocations: 0 / 0.5663 GB, free: 15.85 MB / 414.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 8.275e-05/0.3642, allocations: 71.23 kB / 0.5663 GB, free: 15.77 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.953e-05/0.3642, allocations: 41.69 kB / 0.5664 GB, free: 15.72 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.997e-06/0.3642, allocations: 0 / 0.5664 GB, free: 15.72 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.734e-05/0.3642, allocations: 0 / 0.5664 GB, free: 15.72 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.72e-07/0.3642, allocations: 0 / 0.5664 GB, free: 15.72 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.689e-06/0.3642, allocations: 0 / 0.5664 GB, free: 15.72 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.331e-05/0.3642, allocations: 4.094 kB / 0.5664 GB, free: 15.71 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.501e-06/0.3642, allocations: 0 / 0.5664 GB, free: 15.71 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.24e-05/0.3643, allocations: 139.5 kB / 0.5665 GB, free: 15.56 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.155e-05/0.3644, allocations: 3.938 kB / 0.5665 GB, free: 15.56 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.207e-05/0.3644, allocations: 3.156 kB / 0.5665 GB, free: 15.55 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.786e-06/0.3644, allocations: 4 kB / 0.5665 GB, free: 15.55 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.537e-06/0.3644, allocations: 3.938 kB / 0.5665 GB, free: 15.54 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.263e-06/0.3644, allocations: 3.984 kB / 0.5665 GB, free: 15.54 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.147e-05/0.3645, allocations: 112.8 kB / 0.5666 GB, free: 15.39 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.01e-07/0.3645, allocations: 4 kB / 0.5666 GB, free: 15.38 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.094e-06/0.3645, allocations: 7.938 kB / 0.5666 GB, free: 15.38 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.042e-06/0.3645, allocations: 0 / 0.5666 GB, free: 15.38 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.894e-06/0.3645, allocations: 4 kB / 0.5666 GB, free: 15.37 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.41e-07/0.3645, allocations: 0 / 0.5666 GB, free: 15.37 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.41e-07/0.3645, allocations: 0 / 0.5666 GB, free: 15.37 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001102/0.3646, allocations: 94.77 kB / 0.5667 GB, free: 15.25 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.002e-05/0.3646, allocations: 7.938 kB / 0.5667 GB, free: 15.25 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.161e-05/0.3646, allocations: 4.031 kB / 0.5667 GB, free: 15.24 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.055e-05/0.3646, allocations: 3.984 kB / 0.5667 GB, free: 15.24 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.085e-05/0.3646, allocations: 0 / 0.5667 GB, free: 15.24 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.375e-06/0.3646, allocations: 0 / 0.5667 GB, free: 15.24 MB / 414.1 MB Notification: Performance of sorting global known variables: time 3.467e-05/0.3647, allocations: 79.28 kB / 0.5668 GB, free: 15.16 MB / 414.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3647, allocations: 0 / 0.5668 GB, free: 15.16 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0002897/0.365, allocations: 59.86 kB / 0.5669 GB, free: 15.1 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.0007682/0.3657, allocations: 346.6 kB / 0.5672 GB, free: 14.82 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0001136/0.3658, allocations: 67.41 kB / 0.5673 GB, free: 14.74 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.034e-06/0.3658, allocations: 0 / 0.5673 GB, free: 14.74 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 4.105e-05/0.3659, allocations: 59.34 kB / 0.5673 GB, free: 14.67 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001312/0.366, allocations: 3.984 kB / 0.5673 GB, free: 14.67 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002058/0.3662, allocations: 106.7 kB / 0.5674 GB, free: 14.53 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003021/0.3665, allocations: 0.6729 MB / 0.5681 GB, free: 13.83 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.344e-05/0.3665, allocations: 7.438 kB / 0.5681 GB, free: 13.82 MB / 414.1 MB Notification: Performance of SimCode: time 3.2e-07/0.3665, allocations: 0 / 0.5681 GB, free: 13.82 MB / 414.1 MB Notification: Performance of Templates: time 0.003758/0.3703, allocations: 1.665 MB / 0.5697 GB, free: 12.16 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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Utilities/TestFiles/TestFiles.csv","/var/lib/jenkins1/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: 8.04008039017208]