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.00209/0.00209, allocations: 74.8 kB / 21.24 MB, free: 0.5469 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.00235/0.00235, allocations: 160.7 kB / 24.5 MB, free: 3.719 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.531/1.531, allocations: 177.2 MB / 204.9 MB, free: 9.023 MB / 190.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.2049/0.2049, allocations: 32.81 MB / 294.1 MB, free: 36 kB / 270.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.002955/0.002955, allocations: 63.91 kB / 440.5 MB, free: 9.473 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3993/0.4022, allocations: 65.45 MB / 0.4941 GB, free: 31.36 MB / 446.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestFiles): time 0.001592/0.4038, allocations: 0.4959 MB / 0.4946 GB, free: 31.06 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.001779/0.4056, allocations: 1.343 MB / 0.4959 GB, free: 30.17 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.454e-05/0.4056, allocations: 0 / 0.4959 GB, free: 30.17 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 1.675e-05/0.4056, allocations: 3.094 kB / 0.4959 GB, free: 30.17 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001786/0.4058, allocations: 10.91 kB / 0.4959 GB, free: 30.16 MB / 446.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.001048/0.4069, allocations: 255.8 kB / 0.4962 GB, free: 30.05 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 5.222e-05/0.4069, allocations: 3.312 kB / 0.4962 GB, free: 30.05 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.225e-05/0.407, allocations: 7.234 kB / 0.4962 GB, free: 30.05 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.697e-05/0.407, allocations: 3.344 kB / 0.4962 GB, free: 30.05 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.307e-05/0.407, allocations: 3.938 kB / 0.4962 GB, free: 30.04 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 7.264e-06/0.407, allocations: 0 / 0.4962 GB, free: 30.04 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004001/0.411, allocations: 0.7167 MB / 0.4969 GB, free: 29.84 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 1.131e-05/0.4111, allocations: 3.328 kB / 0.4969 GB, free: 29.84 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 1.792e-05/0.4111, allocations: 3.219 kB / 0.4969 GB, free: 29.84 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000289/0.4114, allocations: 177.5 kB / 0.4971 GB, free: 29.79 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.318e-06/0.4114, allocations: 7.25 kB / 0.4971 GB, free: 29.79 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.263e-06/0.4114, allocations: 0 / 0.4971 GB, free: 29.79 MB / 446.1 MB Notification: Performance of Transformations before backend: time 1.059e-05/0.4114, allocations: 0 / 0.4971 GB, free: 29.79 MB / 446.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.000284/0.4117, allocations: 307.4 kB / 0.4974 GB, free: 29.47 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.371e-05/0.4117, allocations: 9.531 kB / 0.4974 GB, free: 29.47 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.566e-05/0.4117, allocations: 12.34 kB / 0.4974 GB, free: 29.46 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.792e-05/0.4118, allocations: 109.6 kB / 0.4975 GB, free: 29.33 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.186e-05/0.4118, allocations: 384 / 0.4975 GB, free: 29.33 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.339e-05/0.4118, allocations: 3.5 kB / 0.4975 GB, free: 29.33 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.802e-05/0.4119, allocations: 66.19 kB / 0.4976 GB, free: 29.26 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.903e-06/0.4119, allocations: 0 / 0.4976 GB, free: 29.26 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.714e-06/0.4119, allocations: 0 / 0.4976 GB, free: 29.26 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.015e-06/0.412, allocations: 0 / 0.4976 GB, free: 29.26 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.477e-05/0.412, allocations: 32.55 kB / 0.4976 GB, free: 29.23 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 7.2e-05/0.412, allocations: 93.33 kB / 0.4977 GB, free: 29.11 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.684e-05/0.4121, allocations: 43.25 kB / 0.4977 GB, free: 29.05 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.26e-05/0.4121, allocations: 41.62 kB / 0.4978 GB, free: 29 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.196e-06/0.4121, allocations: 3.938 kB / 0.4978 GB, free: 29 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.44e-05/0.4122, allocations: 62.89 kB / 0.4978 GB, free: 28.93 MB / 446.1 MB Notification: Performance of pre-optimization done (n=1): time 8.02e-07/0.4122, allocations: 0 / 0.4978 GB, free: 28.93 MB / 446.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001582/0.4123, allocations: 115.6 kB / 0.4979 GB, free: 28.8 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.442e-05/0.4123, allocations: 84.39 kB / 0.498 GB, free: 28.7 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.965e-05/0.4124, allocations: 92.92 kB / 0.4981 GB, free: 28.61 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 9.117e-06/0.4124, allocations: 28.52 kB / 0.4981 GB, free: 28.57 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.216e-05/0.4124, allocations: 80.14 kB / 0.4982 GB, free: 28.49 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.492e-05/0.4124, allocations: 256 / 0.4982 GB, free: 28.49 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.424e-05/0.4125, allocations: 16.84 kB / 0.4982 GB, free: 28.47 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 5.183e-05/0.4125, allocations: 318.4 kB / 0.4985 GB, free: 28.16 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.871e-05/0.4125, allocations: 28.95 kB / 0.4986 GB, free: 28.12 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.352e-05/0.4125, allocations: 29.64 kB / 0.4986 GB, free: 28.09 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.561e-05/0.4126, allocations: 62.23 kB / 0.4986 GB, free: 28.02 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.362e-06/0.4126, allocations: 0 / 0.4986 GB, free: 28.02 MB / 446.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.018e-05/0.4126, allocations: 94.67 kB / 0.4987 GB, free: 27.92 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.201e-05/0.4127, allocations: 35.8 kB / 0.4988 GB, free: 27.88 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.217e-06/0.4127, allocations: 0 / 0.4988 GB, free: 27.88 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.222e-05/0.4127, allocations: 7.156 kB / 0.4988 GB, free: 27.88 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.71e-07/0.4127, allocations: 0 / 0.4988 GB, free: 27.88 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.527e-06/0.4127, allocations: 0 / 0.4988 GB, free: 27.88 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.243e-05/0.4127, allocations: 0 / 0.4988 GB, free: 27.88 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.963e-06/0.4127, allocations: 0 / 0.4988 GB, free: 27.88 MB / 446.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 5.468e-05/0.4128, allocations: 137.9 kB / 0.4989 GB, free: 27.73 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.867e-06/0.4128, allocations: 15.09 kB / 0.4989 GB, free: 27.72 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.638e-06/0.4128, allocations: 7.094 kB / 0.4989 GB, free: 27.71 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.002e-06/0.4128, allocations: 0 / 0.4989 GB, free: 27.71 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.886e-06/0.4128, allocations: 0 / 0.4989 GB, free: 27.71 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.214e-06/0.4128, allocations: 7.984 kB / 0.4989 GB, free: 27.7 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 4.766e-05/0.4128, allocations: 104 kB / 0.499 GB, free: 27.58 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.51e-07/0.4128, allocations: 0 / 0.499 GB, free: 27.58 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.01e-07/0.4128, allocations: 0 / 0.499 GB, free: 27.58 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.182e-06/0.4128, allocations: 0 / 0.499 GB, free: 27.58 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.612e-06/0.4128, allocations: 7.25 kB / 0.499 GB, free: 27.57 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.11e-07/0.4128, allocations: 0 / 0.499 GB, free: 27.57 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.803e-06/0.4128, allocations: 4 kB / 0.499 GB, free: 27.57 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.783e-05/0.4129, allocations: 117.1 kB / 0.4992 GB, free: 27.44 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.717e-06/0.4129, allocations: 0 / 0.4992 GB, free: 27.44 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.04e-05/0.4129, allocations: 7.25 kB / 0.4992 GB, free: 27.44 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.676e-06/0.4129, allocations: 4.031 kB / 0.4992 GB, free: 27.43 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.409e-05/0.413, allocations: 3.469 kB / 0.4992 GB, free: 27.43 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.937e-06/0.413, allocations: 3.125 kB / 0.4992 GB, free: 27.43 MB / 446.1 MB Notification: Performance of sorting global known variables: time 1.814e-05/0.413, allocations: 75.28 kB / 0.4992 GB, free: 27.36 MB / 446.1 MB Notification: Performance of sort global known variables: time 7e-08/0.413, allocations: 3.938 kB / 0.4993 GB, free: 27.36 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0002955/0.4133, allocations: 66.12 kB / 0.4993 GB, free: 27.34 MB / 446.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.0007525/0.414, allocations: 343.6 kB / 0.4996 GB, free: 27.17 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 9.009e-05/0.4141, allocations: 116.7 kB / 0.4998 GB, free: 27.04 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.162e-06/0.4141, allocations: 4.062 kB / 0.4998 GB, free: 27.04 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 2.244e-05/0.4141, allocations: 86.81 kB / 0.4998 GB, free: 26.94 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001121/0.4142, allocations: 0 / 0.4998 GB, free: 26.94 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001283/0.4144, allocations: 118.1 kB / 0.5 GB, free: 26.8 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.792e-05/0.4144, allocations: 57.86 kB / 0.5 GB, free: 26.73 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 4.108e-06/0.4144, allocations: 4 kB / 0.5 GB, free: 26.73 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.746e-06/0.4144, allocations: 11.75 kB / 0.5 GB, free: 26.72 MB / 446.1 MB Notification: Performance of SimCode: time 3.21e-07/0.4144, allocations: 0 / 0.5 GB, free: 26.72 MB / 446.1 MB Notification: Performance of Templates: time 0.004111/0.4185, allocations: 1.609 MB / 0.5016 GB, free: 26.52 MB / 446.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 -s ida -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: 5.180307272006758]