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.00142/0.00142, allocations: 112.5 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.001546/0.001546, allocations: 209.9 kB / 24.49 MB, free: 4.148 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.47/1.47, allocations: 230.6 MB / 258.3 MB, free: 7.98 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.2219/0.2219, allocations: 44.91 MB / 359.6 MB, free: 6.273 MB / 286.1 MB " [Timeout remaining time 180] 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.002256/0.002256, allocations: 71.88 kB / 0.4943 GB, free: 10.22 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3703/0.3725, allocations: 65.46 MB / 0.5582 GB, free: 7.684 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestFiles): time 0.001798/0.3743, allocations: 0.4905 MB / 0.5587 GB, free: 7.223 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.002323/0.3767, allocations: 1.366 MB / 0.56 GB, free: 5.852 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.07e-05/0.3767, allocations: 3.938 kB / 0.56 GB, free: 5.848 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 2.14e-05/0.3767, allocations: 0 / 0.56 GB, free: 5.848 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001732/0.3769, allocations: 11.92 kB / 0.5601 GB, free: 5.836 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.001177/0.3781, allocations: 260.9 kB / 0.5603 GB, free: 5.586 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 5.745e-05/0.3781, allocations: 7.984 kB / 0.5603 GB, free: 5.578 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.779e-05/0.3781, allocations: 0 / 0.5603 GB, free: 5.578 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.902e-05/0.3782, allocations: 0 / 0.5603 GB, free: 5.578 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.967e-05/0.3783, allocations: 19.92 kB / 0.5603 GB, free: 5.559 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 7.334e-06/0.3783, allocations: 0 / 0.5603 GB, free: 5.559 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003973/0.3822, allocations: 0.7393 MB / 0.561 GB, free: 4.945 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 1.062e-05/0.3822, allocations: 0 / 0.561 GB, free: 4.945 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.188e-05/0.3823, allocations: 4 kB / 0.5611 GB, free: 4.941 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003242/0.3826, allocations: 178.1 kB / 0.5612 GB, free: 4.773 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.232e-06/0.3826, allocations: 4 kB / 0.5612 GB, free: 4.77 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.984e-06/0.3826, allocations: 0 / 0.5612 GB, free: 4.77 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.071e-05/0.3826, allocations: 0 / 0.5612 GB, free: 4.77 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.0004849/0.3831, allocations: 311.7 kB / 0.5615 GB, free: 4.43 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.802e-05/0.3831, allocations: 8.031 kB / 0.5615 GB, free: 4.422 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.738e-05/0.3832, allocations: 8.875 kB / 0.5615 GB, free: 4.414 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001209/0.3833, allocations: 110.5 kB / 0.5616 GB, free: 4.281 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.238e-05/0.3833, allocations: 4.375 kB / 0.5617 GB, free: 4.277 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.196e-05/0.3833, allocations: 384 / 0.5617 GB, free: 4.277 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.439e-05/0.3834, allocations: 33.83 kB / 0.5617 GB, free: 4.238 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.06e-05/0.3834, allocations: 4 kB / 0.5617 GB, free: 4.234 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.876e-06/0.3834, allocations: 0 / 0.5617 GB, free: 4.234 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.318e-06/0.3834, allocations: 0 / 0.5617 GB, free: 4.234 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.172e-05/0.3835, allocations: 7.984 kB / 0.5617 GB, free: 4.227 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001581/0.3836, allocations: 116.8 kB / 0.5618 GB, free: 4.07 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.522e-05/0.3837, allocations: 26.55 kB / 0.5618 GB, free: 4.035 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.521e-05/0.3837, allocations: 4.859 kB / 0.5618 GB, free: 4.027 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.664e-06/0.3837, allocations: 0 / 0.5618 GB, free: 4.027 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.866e-05/0.3838, allocations: 64.27 kB / 0.5619 GB, free: 3.949 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 4.328e-06/0.3838, allocations: 3.984 kB / 0.5619 GB, free: 3.945 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001959/0.384, allocations: 67.39 kB / 0.562 GB, free: 3.867 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.23e-05/0.384, allocations: 77.11 kB / 0.562 GB, free: 3.773 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.234e-05/0.3841, allocations: 105.9 kB / 0.5621 GB, free: 3.66 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.721e-05/0.3841, allocations: 25.7 kB / 0.5622 GB, free: 3.629 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.561e-05/0.3842, allocations: 80.14 kB / 0.5622 GB, free: 3.547 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.66e-05/0.3842, allocations: 0 / 0.5622 GB, free: 3.547 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.485e-05/0.3842, allocations: 17.72 kB / 0.5623 GB, free: 3.523 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001479/0.3844, allocations: 314.8 kB / 0.5626 GB, free: 3.207 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.136e-05/0.3844, allocations: 0 / 0.5626 GB, free: 3.207 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.11e-05/0.3844, allocations: 4.125 kB / 0.5626 GB, free: 3.203 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.661e-05/0.3845, allocations: 64.33 kB / 0.5626 GB, free: 3.125 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.114e-06/0.3845, allocations: 0 / 0.5626 GB, free: 3.125 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 8.747e-05/0.3846, allocations: 75.28 kB / 0.5627 GB, free: 3.039 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.69e-05/0.3846, allocations: 29.7 kB / 0.5627 GB, free: 3.004 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.264e-06/0.3846, allocations: 3.984 kB / 0.5627 GB, free: 3 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.36e-05/0.3846, allocations: 3.938 kB / 0.5627 GB, free: 2.996 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.01e-07/0.3846, allocations: 0 / 0.5627 GB, free: 2.996 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.653e-06/0.3846, allocations: 4 kB / 0.5627 GB, free: 2.992 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.599e-05/0.3846, allocations: 4.031 kB / 0.5627 GB, free: 2.988 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.31e-06/0.3846, allocations: 0 / 0.5627 GB, free: 2.988 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.0001154/0.3848, allocations: 143.5 kB / 0.5629 GB, free: 2.832 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.028e-05/0.3848, allocations: 7.875 kB / 0.5629 GB, free: 2.824 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.512e-05/0.3848, allocations: 3.156 kB / 0.5629 GB, free: 2.816 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.673e-06/0.3848, allocations: 0 / 0.5629 GB, free: 2.816 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.586e-06/0.3848, allocations: 0 / 0.5629 GB, free: 2.816 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.825e-06/0.3848, allocations: 0 / 0.5629 GB, free: 2.816 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001162/0.3849, allocations: 124.8 kB / 0.563 GB, free: 2.652 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.91e-07/0.3849, allocations: 0 / 0.563 GB, free: 2.652 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.685e-06/0.3849, allocations: 7.938 kB / 0.563 GB, free: 2.645 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.122e-06/0.3849, allocations: 0 / 0.563 GB, free: 2.645 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.46e-06/0.3849, allocations: 0 / 0.563 GB, free: 2.645 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.51e-07/0.3849, allocations: 4 kB / 0.563 GB, free: 2.641 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.21e-07/0.3849, allocations: 0 / 0.563 GB, free: 2.641 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001169/0.385, allocations: 94.77 kB / 0.5631 GB, free: 2.523 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.562e-06/0.385, allocations: 3.938 kB / 0.5631 GB, free: 2.52 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.084e-05/0.3851, allocations: 4.031 kB / 0.5631 GB, free: 2.516 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.299e-05/0.3851, allocations: 8 kB / 0.5631 GB, free: 2.508 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.387e-05/0.3851, allocations: 0 / 0.5631 GB, free: 2.508 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.385e-06/0.3851, allocations: 0 / 0.5631 GB, free: 2.508 MB / 398.1 MB Notification: Performance of sorting global known variables: time 3.923e-05/0.3851, allocations: 75.28 kB / 0.5632 GB, free: 2.434 MB / 398.1 MB Notification: Performance of sort global known variables: time 9.1e-08/0.3851, allocations: 4 kB / 0.5632 GB, free: 2.43 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0003291/0.3855, allocations: 63.86 kB / 0.5633 GB, free: 2.367 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.000771/0.3862, allocations: 329 kB / 0.5636 GB, free: 2.105 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0001133/0.3863, allocations: 67.39 kB / 0.5636 GB, free: 2.027 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.104e-06/0.3863, allocations: 0 / 0.5636 GB, free: 2.027 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 4.1e-05/0.3864, allocations: 55.41 kB / 0.5637 GB, free: 1.961 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001289/0.3865, allocations: 4 kB / 0.5637 GB, free: 1.957 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002417/0.3868, allocations: 122.6 kB / 0.5638 GB, free: 1.805 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003192/0.3871, allocations: 0.669 MB / 0.5645 GB, free: 1.109 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.748e-05/0.3871, allocations: 11.44 kB / 0.5645 GB, free: 1.098 MB / 398.1 MB Notification: Performance of SimCode: time 3e-07/0.3871, allocations: 0 / 0.5645 GB, free: 1.098 MB / 398.1 MB Notification: Performance of Templates: time 0.004045/0.3911, allocations: 1.664 MB / 0.5661 GB, free: 15.43 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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Utilities/TestFiles/TestFiles.csv","/var/lib/jenkins1/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: 8.255506400950253]