Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Utilities.TestExamplesCalculator.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.TestExamplesCalculator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Utilities.TestExamplesCalculator") translateModel(ModelicaTest.Utilities.TestExamplesCalculator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Utilities.TestExamplesCalculator") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001306/0.001306, allocations: 177.4 kB / 17.06 MB, free: 5.094 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.292/1.292, allocations: 223.2 MB / 241 MB, free: 11.88 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008855/0.0008857, allocations: 98.69 kB / 292.2 MB, free: 10.93 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.3725/0.3725, allocations: 44.22 MB / 387.5 MB, free: 38.73 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003214/0.0003215, allocations: 8 kB / 459.9 MB, free: 1.555 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3547/0.355, allocations: 61.9 MB / 0.5096 GB, free: 38.11 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1282/0.4832, allocations: 88.6 MB / 0.5961 GB, free: 6.547 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002076/0.4835, allocations: 67.98 kB / 0.5961 GB, free: 6.48 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01925/0.5027, allocations: 7.142 MB / 0.6031 GB, free: 15.33 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.284e-06/0.5028, allocations: 0 / 0.6031 GB, free: 15.33 MB / 426.7 MB Notification: Performance of Transformations before backend: time 7.474e-06/0.5028, allocations: 4 kB / 0.6031 GB, free: 15.33 MB / 426.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 0 * Number of variables: 0 Notification: Performance of Generate backend data structure: time 0.0005021/0.5033, allocations: 419.1 kB / 0.6035 GB, free: 14.87 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.468e-05/0.5034, allocations: 8.031 kB / 0.6035 GB, free: 14.86 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001999/0.5036, allocations: 87.27 kB / 0.6036 GB, free: 14.78 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001332/0.5037, allocations: 242.4 kB / 0.6038 GB, free: 14.5 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.329e-05/0.5038, allocations: 150.6 kB / 0.604 GB, free: 14.35 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.695e-05/0.5039, allocations: 154.6 kB / 0.6041 GB, free: 14.2 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.515e-05/0.5039, allocations: 112.9 kB / 0.6042 GB, free: 14.08 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.969e-05/0.504, allocations: 75.28 kB / 0.6043 GB, free: 14.01 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.467e-05/0.504, allocations: 150.6 kB / 0.6045 GB, free: 13.86 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.265e-05/0.5041, allocations: 154.5 kB / 0.6046 GB, free: 13.71 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.546e-05/0.5042, allocations: 162.5 kB / 0.6048 GB, free: 13.55 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003075/0.5045, allocations: 442 kB / 0.6052 GB, free: 13.07 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 7.651e-05/0.5046, allocations: 165.1 kB / 0.6053 GB, free: 12.89 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.867e-05/0.5046, allocations: 75.28 kB / 0.6054 GB, free: 12.82 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.334e-05/0.5047, allocations: 117.8 kB / 0.6055 GB, free: 12.7 MB / 426.7 MB Notification: Performance of pre-optimization done (n=0): time 1.403e-06/0.5047, allocations: 0 / 0.6055 GB, free: 12.7 MB / 426.7 MB Notification: Performance of matching and sorting (n=0): time 8.231e-05/0.5048, allocations: 33.64 kB / 0.6056 GB, free: 12.66 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.984e-05/0.5048, allocations: 178.1 kB / 0.6057 GB, free: 12.46 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.282e-05/0.5049, allocations: 96.94 kB / 0.6058 GB, free: 12.36 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 1.403e-05/0.505, allocations: 25.7 kB / 0.6058 GB, free: 12.32 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.399e-05/0.505, allocations: 80.14 kB / 0.6059 GB, free: 12.24 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.776e-06/0.505, allocations: 0 / 0.6059 GB, free: 12.24 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.1e-07/0.505, allocations: 4.125 kB / 0.6059 GB, free: 12.24 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001165/0.5051, allocations: 310.8 kB / 0.6062 GB, free: 11.93 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.158e-06/0.5051, allocations: 3.938 kB / 0.6062 GB, free: 11.92 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.037e-05/0.5052, allocations: 13.72 kB / 0.6062 GB, free: 11.9 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.911e-05/0.5052, allocations: 79.22 kB / 0.6063 GB, free: 11.82 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.47e-05/0.5053, allocations: 79.27 kB / 0.6064 GB, free: 11.75 MB / 426.7 MB Notification: Performance of matching and sorting (n=0) (initialization): time 6.531e-05/0.5053, allocations: 29.7 kB / 0.6064 GB, free: 11.71 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.84e-05/0.5054, allocations: 85.03 kB / 0.6065 GB, free: 11.63 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.241e-05/0.5054, allocations: 79.28 kB / 0.6066 GB, free: 11.55 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 7.401e-05/0.5055, allocations: 162.5 kB / 0.6067 GB, free: 11.39 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.184e-05/0.5056, allocations: 75.28 kB / 0.6068 GB, free: 11.32 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.301e-05/0.5056, allocations: 154.5 kB / 0.6069 GB, free: 11.16 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.953e-05/0.5057, allocations: 83.38 kB / 0.607 GB, free: 11.08 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.237e-05/0.5058, allocations: 83.28 kB / 0.6071 GB, free: 11 MB / 426.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: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (0): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 0 * 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 0.0001341/0.5059, allocations: 264.9 kB / 0.6074 GB, free: 10.73 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.935e-05/0.506, allocations: 104.9 kB / 0.6075 GB, free: 10.62 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.4e-05/0.506, allocations: 104.1 kB / 0.6076 GB, free: 10.51 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.813e-05/0.5061, allocations: 184.2 kB / 0.6077 GB, free: 10.32 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.955e-05/0.5062, allocations: 188.2 kB / 0.6079 GB, free: 10.13 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.187e-05/0.5063, allocations: 176.3 kB / 0.6081 GB, free: 9.953 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002481/0.5065, allocations: 401.2 kB / 0.6085 GB, free: 9.504 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.894e-05/0.5066, allocations: 109 kB / 0.6086 GB, free: 9.391 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.277e-05/0.5066, allocations: 104.9 kB / 0.6087 GB, free: 9.281 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.454e-05/0.5067, allocations: 176.3 kB / 0.6088 GB, free: 9.102 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.111e-05/0.5068, allocations: 180.3 kB / 0.609 GB, free: 8.918 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.332e-05/0.5069, allocations: 184.2 kB / 0.6092 GB, free: 8.73 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.364e-05/0.5069, allocations: 184.2 kB / 0.6094 GB, free: 8.543 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001515/0.5071, allocations: 303.7 kB / 0.6096 GB, free: 8.223 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.671e-05/0.5072, allocations: 190 kB / 0.6098 GB, free: 8.012 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.962e-05/0.5073, allocations: 188.7 kB / 0.61 GB, free: 7.82 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.99e-05/0.5074, allocations: 101 kB / 0.6101 GB, free: 7.715 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.727e-05/0.5075, allocations: 184.2 kB / 0.6103 GB, free: 7.527 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.133e-05/0.5075, allocations: 109 kB / 0.6104 GB, free: 7.414 MB / 426.7 MB Notification: Performance of sorting global known variables: time 3.893e-05/0.5076, allocations: 83.23 kB / 0.6105 GB, free: 7.332 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.41e-07/0.5076, allocations: 0 / 0.6105 GB, free: 7.332 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.0005972/0.5082, allocations: 143.8 kB / 0.6106 GB, free: 7.191 MB / 426.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: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (0): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 0 * 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.001203/0.5094, allocations: 0.5124 MB / 0.6111 GB, free: 6.734 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 5.436e-05/0.5094, allocations: 3.938 kB / 0.6111 GB, free: 6.73 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 2.384e-06/0.5095, allocations: 4 kB / 0.6111 GB, free: 6.727 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 1.483e-06/0.5095, allocations: 4 kB / 0.6111 GB, free: 6.723 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002997/0.5098, allocations: 0.5211 MB / 0.6116 GB, free: 6.199 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002055/0.51, allocations: 149.9 kB / 0.6118 GB, free: 6.023 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002243/0.5102, allocations: 0.677 MB / 0.6124 GB, free: 5.32 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 2.094e-05/0.5102, allocations: 0 / 0.6124 GB, free: 5.32 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.722e-05/0.5103, allocations: 15.44 kB / 0.6124 GB, free: 5.305 MB / 426.7 MB Notification: Performance of SimCode: time 3e-07/0.5103, allocations: 0 / 0.6124 GB, free: 5.305 MB / 426.7 MB Notification: Performance of Templates: time 0.006217/0.5165, allocations: 2.553 MB / 0.6149 GB, free: 2.754 MB / 426.7 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Utilities.TestExamplesCalculator.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Utilities.TestExamplesCalculator.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Utilities.TestExamplesCalculator.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Utilities.TestExamplesCalculator.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Utilities.TestExamplesCalculator.sim & ./ModelicaTest_4.0.0_ModelicaTest.Utilities.TestExamplesCalculator -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Utilities.TestExamplesCalculator.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Utilities.TestExamplesCalculator_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Utilities/TestExamplesCalculator/TestExamplesCalculator.csv","../files/ModelicaTest_4.0.0_ModelicaTest.Utilities.TestExamplesCalculator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches