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.00135/0.00135, allocations: 107 kB / 21.18 MB, free: 0.6484 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.001523/0.001523, allocations: 215.4 kB / 24.48 MB, free: 3.941 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.422/1.422, allocations: 230.6 MB / 258.2 MB, free: 7.797 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.2398/0.2398, allocations: 46.96 MB / 361.6 MB, free: 4.023 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.001995/0.001995, allocations: 71.88 kB / 0.4973 GB, free: 7.219 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4046/0.4066, allocations: 66.03 MB / 0.5618 GB, free: 4.172 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestFiles): time 0.002094/0.4087, allocations: 0.4892 MB / 0.5623 GB, free: 3.68 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.002477/0.4112, allocations: 1.338 MB / 0.5636 GB, free: 2.336 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.799e-05/0.4112, allocations: 0 / 0.5636 GB, free: 2.336 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.911e-05/0.4112, allocations: 0 / 0.5636 GB, free: 2.336 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002188/0.4115, allocations: 11.94 kB / 0.5636 GB, free: 2.324 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.001277/0.4127, allocations: 272.8 kB / 0.5638 GB, free: 2.062 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 7.634e-05/0.4128, allocations: 4 kB / 0.5638 GB, free: 2.059 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.033e-05/0.4129, allocations: 7.969 kB / 0.5639 GB, free: 2.051 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.416e-05/0.4129, allocations: 0 / 0.5639 GB, free: 2.051 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.54e-05/0.413, allocations: 7.938 kB / 0.5639 GB, free: 2.043 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 9.618e-06/0.413, allocations: 0 / 0.5639 GB, free: 2.043 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004104/0.4171, allocations: 0.728 MB / 0.5646 GB, free: 1.441 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 1.344e-05/0.4171, allocations: 3.984 kB / 0.5646 GB, free: 1.438 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.28e-05/0.4171, allocations: 0 / 0.5646 GB, free: 1.438 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000344/0.4175, allocations: 178.1 kB / 0.5647 GB, free: 1.27 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.551e-06/0.4175, allocations: 4 kB / 0.5648 GB, free: 1.266 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.004e-06/0.4175, allocations: 0 / 0.5648 GB, free: 1.266 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.166e-05/0.4175, allocations: 0 / 0.5648 GB, free: 1.266 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.0004766/0.4179, allocations: 311.7 kB / 0.565 GB, free: 0.9258 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.578e-05/0.418, allocations: 12.03 kB / 0.5651 GB, free: 0.9141 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.36e-05/0.418, allocations: 4.938 kB / 0.5651 GB, free: 0.9102 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001351/0.4182, allocations: 102.5 kB / 0.5652 GB, free: 0.7852 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.125e-05/0.4182, allocations: 4.375 kB / 0.5652 GB, free: 0.7812 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.752e-05/0.4182, allocations: 8.312 kB / 0.5652 GB, free: 0.7734 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001108/0.4183, allocations: 63.5 kB / 0.5652 GB, free: 0.6992 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.866e-06/0.4183, allocations: 3.938 kB / 0.5652 GB, free: 0.6953 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.026e-05/0.4183, allocations: 4 kB / 0.5652 GB, free: 0.6914 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.248e-06/0.4183, allocations: 0 / 0.5652 GB, free: 0.6914 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.486e-05/0.4184, allocations: 29.69 kB / 0.5653 GB, free: 0.6562 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001347/0.4185, allocations: 101.3 kB / 0.5654 GB, free: 0.5273 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 7.071e-05/0.4186, allocations: 44.28 kB / 0.5654 GB, free: 480 kB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.732e-05/0.4186, allocations: 42.59 kB / 0.5655 GB, free: 428 kB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.095e-05/0.4186, allocations: 0 / 0.5655 GB, free: 428 kB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.188e-05/0.4187, allocations: 56.27 kB / 0.5655 GB, free: 356 kB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 7.31e-07/0.4187, allocations: 0 / 0.5655 GB, free: 356 kB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0002266/0.4189, allocations: 130.7 kB / 0.5656 GB, free: 200 kB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.451e-05/0.419, allocations: 77.11 kB / 0.5657 GB, free: 104 kB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.996e-05/0.4191, allocations: 98.02 kB / 0.5658 GB, free: 15.99 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 1.665e-05/0.4191, allocations: 29.83 kB / 0.5658 GB, free: 15.96 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.046e-05/0.4191, allocations: 80.14 kB / 0.5659 GB, free: 15.88 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.557e-05/0.4191, allocations: 0 / 0.5659 GB, free: 15.88 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.192e-05/0.4192, allocations: 17.72 kB / 0.5659 GB, free: 15.85 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001342/0.4193, allocations: 310.8 kB / 0.5662 GB, free: 15.54 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.981e-05/0.4193, allocations: 29.7 kB / 0.5662 GB, free: 15.5 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.094e-05/0.4194, allocations: 25.7 kB / 0.5663 GB, free: 15.47 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.694e-05/0.4194, allocations: 72.14 kB / 0.5663 GB, free: 15.39 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.483e-06/0.4194, allocations: 0 / 0.5663 GB, free: 15.39 MB / 414.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 9.725e-05/0.4195, allocations: 93.12 kB / 0.5664 GB, free: 15.28 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.456e-05/0.4196, allocations: 37.64 kB / 0.5665 GB, free: 15.24 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.063e-06/0.4196, allocations: 3.984 kB / 0.5665 GB, free: 15.23 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.606e-05/0.4196, allocations: 0 / 0.5665 GB, free: 15.23 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.21e-07/0.4196, allocations: 0 / 0.5665 GB, free: 15.23 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.422e-06/0.4196, allocations: 0 / 0.5665 GB, free: 15.23 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.785e-05/0.4196, allocations: 0 / 0.5665 GB, free: 15.23 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.979e-06/0.4196, allocations: 4 kB / 0.5665 GB, free: 15.23 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 0.000108/0.4197, allocations: 131.5 kB / 0.5666 GB, free: 15.09 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.546e-05/0.4197, allocations: 7.938 kB / 0.5666 GB, free: 15.08 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.874e-05/0.4198, allocations: 11.19 kB / 0.5666 GB, free: 15.06 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.292e-06/0.4198, allocations: 0 / 0.5666 GB, free: 15.06 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.492e-06/0.4198, allocations: 3.938 kB / 0.5666 GB, free: 15.06 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.266e-06/0.4198, allocations: 0 / 0.5666 GB, free: 15.06 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.818e-05/0.4199, allocations: 101.3 kB / 0.5667 GB, free: 14.93 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.91e-07/0.4199, allocations: 0 / 0.5667 GB, free: 14.93 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.9e-07/0.4199, allocations: 0 / 0.5667 GB, free: 14.93 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.082e-06/0.4199, allocations: 3.938 kB / 0.5667 GB, free: 14.93 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.488e-06/0.4199, allocations: 3.938 kB / 0.5667 GB, free: 14.92 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.91e-07/0.4199, allocations: 0 / 0.5667 GB, free: 14.92 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.71e-07/0.4199, allocations: 0 / 0.5667 GB, free: 14.92 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00014/0.42, allocations: 124.5 kB / 0.5668 GB, free: 14.77 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.368e-06/0.42, allocations: 0 / 0.5668 GB, free: 14.77 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.409e-05/0.42, allocations: 3.938 kB / 0.5668 GB, free: 14.77 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.123e-05/0.4201, allocations: 4 kB / 0.5668 GB, free: 14.76 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.758e-05/0.4201, allocations: 0 / 0.5668 GB, free: 14.76 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.99e-06/0.4201, allocations: 7.922 kB / 0.5669 GB, free: 14.75 MB / 414.1 MB Notification: Performance of sorting global known variables: time 5.158e-05/0.4201, allocations: 83.28 kB / 0.5669 GB, free: 14.67 MB / 414.1 MB Notification: Performance of sort global known variables: time 7e-08/0.4201, allocations: 0 / 0.5669 GB, free: 14.67 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0003059/0.4204, allocations: 59.86 kB / 0.567 GB, free: 14.61 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.0008911/0.4213, allocations: 348.4 kB / 0.5673 GB, free: 14.34 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.000186/0.4215, allocations: 114.8 kB / 0.5674 GB, free: 14.21 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.374e-06/0.4215, allocations: 0 / 0.5674 GB, free: 14.21 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 7.166e-05/0.4216, allocations: 85.09 kB / 0.5675 GB, free: 14.11 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001532/0.4217, allocations: 7.234 kB / 0.5675 GB, free: 14.1 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000271/0.422, allocations: 110.7 kB / 0.5676 GB, free: 13.96 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.647e-05/0.4221, allocations: 59.34 kB / 0.5677 GB, free: 13.88 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 7.254e-06/0.4221, allocations: 0 / 0.5677 GB, free: 13.88 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.504e-05/0.4221, allocations: 7.438 kB / 0.5677 GB, free: 13.88 MB / 414.1 MB Notification: Performance of SimCode: time 3e-07/0.4221, allocations: 128 / 0.5677 GB, free: 13.88 MB / 414.1 MB Notification: Performance of Templates: time 0.005116/0.4272, allocations: 1.609 MB / 0.5693 GB, free: 12.27 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 -s cvode -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: 5.00376300199423]