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.001617/0.001617, allocations: 170.4 kB / 8.74 MB, free: 348 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.39/1.39, allocations: 221.5 MB / 230.7 MB, free: 7.508 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.0008222/0.0008223, allocations: 84.5 kB / 281.6 MB, free: 5.254 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.1938/0.1938, allocations: 44.14 MB / 376.5 MB, free: 3.027 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 1.602e-05/1.604e-05, allocations: 4.219 kB / 444.6 MB, free: 15.23 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1357/0.1357, allocations: 61.92 MB / 0.4947 GB, free: 1.25 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3991/0.5349, allocations: 86.92 MB / 0.5795 GB, free: 9.594 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000161/0.5351, allocations: 59.97 kB / 0.5796 GB, free: 9.535 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01631/0.5514, allocations: 5.988 MB / 0.5854 GB, free: 3.559 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.663e-06/0.5514, allocations: 0 / 0.5854 GB, free: 3.559 MB / 394.7 MB Notification: Performance of Transformations before backend: time 6.262e-06/0.5514, allocations: 0 / 0.5854 GB, free: 3.559 MB / 394.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.0004489/0.5519, allocations: 408.1 kB / 0.5858 GB, free: 3.109 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.032e-05/0.5519, allocations: 15.97 kB / 0.5859 GB, free: 3.094 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.088e-05/0.552, allocations: 8 kB / 0.5859 GB, free: 3.086 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000143/0.5521, allocations: 163.1 kB / 0.586 GB, free: 2.887 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.288e-05/0.5522, allocations: 0 / 0.586 GB, free: 2.887 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.356e-06/0.5522, allocations: 3.953 kB / 0.586 GB, free: 2.883 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 3.537e-05/0.5522, allocations: 0 / 0.586 GB, free: 2.883 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 5.546e-05/0.5523, allocations: 29.7 kB / 0.586 GB, free: 2.848 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.917e-06/0.5523, allocations: 0.6562 kB / 0.586 GB, free: 2.848 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.466e-06/0.5523, allocations: 0 / 0.586 GB, free: 2.848 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.791e-06/0.5523, allocations: 0 / 0.586 GB, free: 2.848 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001313/0.5524, allocations: 138.2 kB / 0.5862 GB, free: 2.676 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 3.906e-05/0.5525, allocations: 14.58 kB / 0.5862 GB, free: 2.652 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.299e-05/0.5525, allocations: 4.859 kB / 0.5862 GB, free: 2.645 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.071e-05/0.5525, allocations: 4 kB / 0.5862 GB, free: 2.641 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.047e-05/0.5526, allocations: 72.2 kB / 0.5863 GB, free: 2.555 MB / 394.7 MB Notification: Performance of pre-optimization done (n=1): time 9.02e-07/0.5526, allocations: 0 / 0.5863 GB, free: 2.555 MB / 394.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001654/0.5528, allocations: 37.69 kB / 0.5863 GB, free: 2.512 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.279e-05/0.5528, allocations: 81.14 kB / 0.5864 GB, free: 2.414 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.635e-05/0.5529, allocations: 85 kB / 0.5865 GB, free: 2.324 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 1.436e-05/0.5529, allocations: 29.64 kB / 0.5865 GB, free: 2.289 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.872e-05/0.553, allocations: 88.14 kB / 0.5866 GB, free: 2.199 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.585e-05/0.553, allocations: 0 / 0.5866 GB, free: 2.199 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.365e-06/0.553, allocations: 0 / 0.5866 GB, free: 2.199 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.000112/0.5531, allocations: 310.8 kB / 0.5869 GB, free: 1.887 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.057e-06/0.5531, allocations: 4.125 kB / 0.5869 GB, free: 1.883 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.073e-06/0.5531, allocations: 4 kB / 0.5869 GB, free: 1.879 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.476e-05/0.5532, allocations: 0 / 0.5869 GB, free: 1.879 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.813e-06/0.5532, allocations: 0 / 0.5869 GB, free: 1.879 MB / 394.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.523e-05/0.5532, allocations: 37.69 kB / 0.5869 GB, free: 1.836 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.629e-05/0.5533, allocations: 29.7 kB / 0.5869 GB, free: 1.801 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.389e-06/0.5533, allocations: 0 / 0.5869 GB, free: 1.801 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.451e-05/0.5533, allocations: 3.953 kB / 0.5869 GB, free: 1.797 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.364e-06/0.5533, allocations: 4 kB / 0.587 GB, free: 1.793 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.09e-06/0.5533, allocations: 7.922 kB / 0.587 GB, free: 1.785 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.298e-05/0.5534, allocations: 4.094 kB / 0.587 GB, free: 1.781 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.751e-06/0.5534, allocations: 0 / 0.587 GB, free: 1.781 MB / 394.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 8.347e-05/0.5535, allocations: 138.7 kB / 0.5871 GB, free: 1.633 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.797e-06/0.5535, allocations: 3.906 kB / 0.5871 GB, free: 1.629 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.293e-05/0.5535, allocations: 7.703 kB / 0.5871 GB, free: 1.621 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.597e-06/0.5535, allocations: 0 / 0.5871 GB, free: 1.621 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.002e-06/0.5535, allocations: 7.891 kB / 0.5871 GB, free: 1.613 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.084e-06/0.5535, allocations: 0 / 0.5871 GB, free: 1.613 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.462e-05/0.5536, allocations: 126.2 kB / 0.5872 GB, free: 1.453 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.114e-06/0.5536, allocations: 7.984 kB / 0.5872 GB, free: 1.445 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.81e-07/0.5536, allocations: 0 / 0.5872 GB, free: 1.445 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.122e-06/0.5536, allocations: 0 / 0.5872 GB, free: 1.445 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.133e-06/0.5536, allocations: 0 / 0.5872 GB, free: 1.445 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.32e-07/0.5536, allocations: 0 / 0.5872 GB, free: 1.445 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.944e-06/0.5536, allocations: 4 kB / 0.5872 GB, free: 1.441 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.974e-05/0.5538, allocations: 61.09 kB / 0.5873 GB, free: 1.363 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.955e-05/0.5538, allocations: 81.09 kB / 0.5874 GB, free: 1.266 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.369e-05/0.5538, allocations: 8.031 kB / 0.5874 GB, free: 1.258 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.045e-05/0.5538, allocations: 4 kB / 0.5874 GB, free: 1.254 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.762e-05/0.5539, allocations: 0 / 0.5874 GB, free: 1.254 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.635e-06/0.5539, allocations: 0 / 0.5874 GB, free: 1.254 MB / 394.7 MB Notification: Performance of sorting global known variables: time 2.899e-05/0.5539, allocations: 79.28 kB / 0.5875 GB, free: 1.176 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.5539, allocations: 3.938 kB / 0.5875 GB, free: 1.172 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0003849/0.5543, allocations: 83.91 kB / 0.5876 GB, free: 1.09 MB / 394.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.000669/0.555, allocations: 346 kB / 0.5879 GB, free: 0.793 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 8.499e-05/0.5551, allocations: 63.41 kB / 0.5879 GB, free: 0.7188 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 1.783e-06/0.5551, allocations: 0 / 0.5879 GB, free: 0.7188 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 2.625e-05/0.5551, allocations: 55.47 kB / 0.588 GB, free: 0.6523 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 9.338e-05/0.5552, allocations: 4 kB / 0.588 GB, free: 0.6484 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001545/0.5554, allocations: 48 kB / 0.588 GB, free: 0.5781 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002476/0.5556, allocations: 0.6768 MB / 0.5887 GB, free: 15.88 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 5.961e-06/0.5556, allocations: 3.938 kB / 0.5887 GB, free: 15.87 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.176e-05/0.5557, allocations: 7.438 kB / 0.5887 GB, free: 15.86 MB / 410.7 MB Notification: Performance of SimCode: time 2.41e-07/0.5557, allocations: 0 / 0.5887 GB, free: 15.86 MB / 410.7 MB Notification: Performance of Templates: time 0.004136/0.5598, allocations: 1.556 MB / 0.5902 GB, free: 14.31 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