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/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) 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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: translateModel(ModelicaTest.Utilities.TestFiles,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Utilities.TestFiles") translateModel(ModelicaTest.Utilities.TestFiles,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Utilities.TestFiles") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009535/0.0009535, allocations: 180.7 kB / 14.15 MB, free: 1.176 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.378/1.378, allocations: 221.3 MB / 236 MB, free: 2.945 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008057/0.000806, allocations: 91.3 kB / 287 MB, free: 248 kB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.1724/0.1724, allocations: 44.15 MB / 382 MB, free: 14.68 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 3.095e-05/3.098e-05, allocations: 4.219 kB / 451.8 MB, free: 9.422 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.125/0.1251, allocations: 61.91 MB / 0.5017 GB, free: 11.46 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3352/0.4604, allocations: 87.58 MB / 0.5872 GB, free: 1.738 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002244/0.4606, allocations: 63.59 kB / 0.5873 GB, free: 1.68 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01652/0.4772, allocations: 6.112 MB / 0.5933 GB, free: 11.58 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.242e-06/0.4772, allocations: 0 / 0.5933 GB, free: 11.58 MB / 410.7 MB Notification: Performance of Transformations before backend: time 5.591e-06/0.4772, allocations: 0 / 0.5933 GB, free: 11.58 MB / 410.7 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.0003774/0.4776, allocations: 404.1 kB / 0.5936 GB, free: 11.14 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.212e-05/0.4777, allocations: 12.03 kB / 0.5936 GB, free: 11.12 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.836e-05/0.4777, allocations: 0 / 0.5936 GB, free: 11.12 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001191/0.4778, allocations: 167.1 kB / 0.5938 GB, free: 10.92 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.153e-05/0.4778, allocations: 0 / 0.5938 GB, free: 10.92 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.051e-05/0.4779, allocations: 3.953 kB / 0.5938 GB, free: 10.92 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.343e-05/0.4779, allocations: 33.64 kB / 0.5938 GB, free: 10.88 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.646e-06/0.478, allocations: 3.984 kB / 0.5938 GB, free: 10.88 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.167e-06/0.478, allocations: 0 / 0.5938 GB, free: 10.88 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.528e-06/0.478, allocations: 0 / 0.5938 GB, free: 10.88 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.563e-05/0.478, allocations: 7.938 kB / 0.5939 GB, free: 10.87 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001292/0.4781, allocations: 145.7 kB / 0.594 GB, free: 10.68 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.291e-05/0.4782, allocations: 18.67 kB / 0.594 GB, free: 10.65 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.354e-05/0.4782, allocations: 8.859 kB / 0.594 GB, free: 10.64 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.839e-06/0.4782, allocations: 3.953 kB / 0.594 GB, free: 10.63 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.696e-05/0.4783, allocations: 64.19 kB / 0.5941 GB, free: 10.55 MB / 410.7 MB Notification: Performance of pre-optimization done (n=1): time 1.042e-06/0.4783, allocations: 0 / 0.5941 GB, free: 10.55 MB / 410.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001471/0.4784, allocations: 63.41 kB / 0.5941 GB, free: 10.48 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.315e-05/0.4785, allocations: 81.11 kB / 0.5942 GB, free: 10.38 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.965e-05/0.4786, allocations: 89 kB / 0.5943 GB, free: 10.29 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 1.292e-05/0.4786, allocations: 25.7 kB / 0.5943 GB, free: 10.26 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.141e-05/0.4786, allocations: 80.14 kB / 0.5944 GB, free: 10.18 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.8e-05/0.4787, allocations: 4 kB / 0.5944 GB, free: 10.17 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.735e-06/0.4787, allocations: 0 / 0.5944 GB, free: 10.17 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001433/0.4788, allocations: 319 kB / 0.5947 GB, free: 9.852 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.626e-06/0.4788, allocations: 0 / 0.5947 GB, free: 9.852 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.963e-06/0.4788, allocations: 4 kB / 0.5947 GB, free: 9.848 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.489e-05/0.4789, allocations: 29.64 kB / 0.5947 GB, free: 9.812 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.863e-06/0.4789, allocations: 0 / 0.5947 GB, free: 9.812 MB / 410.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.344e-05/0.479, allocations: 63.41 kB / 0.5948 GB, free: 9.738 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.119e-05/0.479, allocations: 37.64 kB / 0.5948 GB, free: 9.695 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.976e-06/0.479, allocations: 8 kB / 0.5949 GB, free: 9.688 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.476e-05/0.479, allocations: 0 / 0.5949 GB, free: 9.688 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.41e-07/0.479, allocations: 4.094 kB / 0.5949 GB, free: 9.684 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.026e-05/0.4791, allocations: 3.984 kB / 0.5949 GB, free: 9.68 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.304e-05/0.4791, allocations: 3.938 kB / 0.5949 GB, free: 9.676 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.224e-06/0.4791, allocations: 0 / 0.5949 GB, free: 9.676 MB / 410.7 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 () * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 9.754e-05/0.4792, allocations: 130.7 kB / 0.595 GB, free: 9.535 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.356e-06/0.4792, allocations: 3.906 kB / 0.595 GB, free: 9.531 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.924e-05/0.4792, allocations: 11.03 kB / 0.595 GB, free: 9.516 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.152e-06/0.4792, allocations: 0 / 0.595 GB, free: 9.516 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.569e-06/0.4792, allocations: 0 / 0.595 GB, free: 9.516 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.545e-06/0.4793, allocations: 8 kB / 0.595 GB, free: 9.508 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001076/0.4794, allocations: 149.7 kB / 0.5952 GB, free: 9.312 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.91e-07/0.4794, allocations: 0 / 0.5952 GB, free: 9.312 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.21e-07/0.4794, allocations: 0 / 0.5952 GB, free: 9.312 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.342e-06/0.4794, allocations: 0 / 0.5952 GB, free: 9.312 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.446e-06/0.4794, allocations: 4 kB / 0.5952 GB, free: 9.309 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.298e-06/0.4794, allocations: 3.953 kB / 0.5952 GB, free: 9.305 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.81e-07/0.4794, allocations: 3.938 kB / 0.5952 GB, free: 9.301 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001106/0.4795, allocations: 98.81 kB / 0.5953 GB, free: 9.18 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.785e-05/0.4796, allocations: 77.11 kB / 0.5953 GB, free: 9.086 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.398e-05/0.4796, allocations: 3.938 kB / 0.5953 GB, free: 9.082 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.17e-05/0.4796, allocations: 7.984 kB / 0.5953 GB, free: 9.074 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.339e-05/0.4796, allocations: 7.938 kB / 0.5954 GB, free: 9.066 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.604e-06/0.4797, allocations: 0 / 0.5954 GB, free: 9.066 MB / 410.7 MB Notification: Performance of sorting global known variables: time 3.525e-05/0.4797, allocations: 75.28 kB / 0.5954 GB, free: 8.992 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.4797, allocations: 4 kB / 0.5954 GB, free: 8.988 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0003511/0.4801, allocations: 71.92 kB / 0.5955 GB, free: 8.918 MB / 410.7 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) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0007248/0.4808, allocations: 357.9 kB / 0.5958 GB, free: 8.629 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 8.952e-05/0.4809, allocations: 59.41 kB / 0.5959 GB, free: 8.559 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 2.164e-06/0.4809, allocations: 0 / 0.5959 GB, free: 8.559 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 3.006e-05/0.4809, allocations: 55.41 kB / 0.5959 GB, free: 8.492 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 8.925e-05/0.481, allocations: 4 kB / 0.5959 GB, free: 8.488 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001649/0.4812, allocations: 49.67 kB / 0.596 GB, free: 8.418 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002556/0.4815, allocations: 0.6808 MB / 0.5967 GB, free: 7.711 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 4.649e-06/0.4815, allocations: 3.938 kB / 0.5967 GB, free: 7.707 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.269e-05/0.4815, allocations: 11.44 kB / 0.5967 GB, free: 7.695 MB / 410.7 MB Notification: Performance of SimCode: time 2.6e-07/0.4815, allocations: 0 / 0.5967 GB, free: 7.695 MB / 410.7 MB Notification: Performance of Templates: time 0.003957/0.4855, allocations: 1.563 MB / 0.5982 GB, free: 6.133 MB / 410.7 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Utilities.TestFiles.makefile (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) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Utilities.TestFiles_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Utilities/TestFiles/TestFiles.csv","../files/ModelicaTest_4.0.0_ModelicaTest.Utilities.TestFiles.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches