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.001363/0.001363, 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.333/1.333, allocations: 221.3 MB / 236 MB, free: 2.961 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.0008183/0.0008187, allocations: 87.81 kB / 287 MB, free: 268 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.1704/0.1704, allocations: 44.14 MB / 382 MB, free: 14.71 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 2.883e-05/2.885e-05, allocations: 4.219 kB / 451.8 MB, free: 9.461 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1047/0.1048, allocations: 61.91 MB / 0.5017 GB, free: 11.48 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3827/0.4876, allocations: 88.52 MB / 0.5881 GB, free: 0.832 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002312/0.4878, allocations: 63.97 kB / 0.5882 GB, free: 0.7695 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01783/0.5057, allocations: 7.108 MB / 0.5951 GB, free: 9.672 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.442e-06/0.5057, allocations: 0 / 0.5951 GB, free: 9.672 MB / 410.7 MB Notification: Performance of Transformations before backend: time 7.213e-06/0.5058, allocations: 4 kB / 0.5951 GB, free: 9.668 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: 0 * Number of variables: 0 Notification: Performance of Generate backend data structure: time 0.000424/0.5062, allocations: 402.4 kB / 0.5955 GB, free: 9.23 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.462e-05/0.5062, allocations: 16.03 kB / 0.5955 GB, free: 9.215 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001816/0.5064, allocations: 87.27 kB / 0.5956 GB, free: 9.129 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000115/0.5065, allocations: 242.3 kB / 0.5959 GB, free: 8.852 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.691e-05/0.5066, allocations: 150.6 kB / 0.596 GB, free: 8.703 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.236e-05/0.5067, allocations: 154.6 kB / 0.5962 GB, free: 8.551 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 5.595e-05/0.5067, allocations: 108.9 kB / 0.5963 GB, free: 8.438 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.167e-05/0.5067, allocations: 79.28 kB / 0.5963 GB, free: 8.359 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.945e-05/0.5068, allocations: 150.6 kB / 0.5965 GB, free: 8.211 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.244e-05/0.5068, allocations: 150.6 kB / 0.5966 GB, free: 8.062 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.518e-05/0.5069, allocations: 154.5 kB / 0.5968 GB, free: 7.91 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002478/0.5071, allocations: 449.9 kB / 0.5972 GB, free: 7.422 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 6.958e-05/0.5072, allocations: 169.1 kB / 0.5974 GB, free: 7.246 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.984e-05/0.5073, allocations: 80.14 kB / 0.5974 GB, free: 7.164 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.578e-05/0.5073, allocations: 75.28 kB / 0.5975 GB, free: 7.09 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.018e-05/0.5073, allocations: 109.8 kB / 0.5976 GB, free: 6.973 MB / 410.7 MB Notification: Performance of pre-optimization done (n=0): time 1.062e-06/0.5073, allocations: 4 kB / 0.5976 GB, free: 6.969 MB / 410.7 MB Notification: Performance of matching and sorting (n=0): time 7.355e-05/0.5074, allocations: 33.64 kB / 0.5976 GB, free: 6.93 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.645e-05/0.5075, allocations: 182.1 kB / 0.5978 GB, free: 6.727 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.275e-05/0.5076, allocations: 85 kB / 0.5979 GB, free: 6.637 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 1.696e-05/0.5076, allocations: 25.7 kB / 0.5979 GB, free: 6.605 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.991e-05/0.5077, allocations: 84.12 kB / 0.598 GB, free: 6.52 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.657e-06/0.5077, allocations: 7.938 kB / 0.598 GB, free: 6.512 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.2e-07/0.5077, allocations: 128 / 0.598 GB, free: 6.512 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 9.729e-05/0.5078, allocations: 314.8 kB / 0.5983 GB, free: 6.195 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.556e-06/0.5078, allocations: 0 / 0.5983 GB, free: 6.195 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.523e-05/0.5078, allocations: 9.719 kB / 0.5983 GB, free: 6.18 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.52e-05/0.5079, allocations: 82.03 kB / 0.5984 GB, free: 6.102 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.223e-05/0.5079, allocations: 75.28 kB / 0.5985 GB, free: 6.027 MB / 410.7 MB Notification: Performance of matching and sorting (n=0) (initialization): time 5.146e-05/0.5079, allocations: 33.64 kB / 0.5985 GB, free: 5.988 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.456e-05/0.508, allocations: 87.31 kB / 0.5986 GB, free: 5.902 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.785e-05/0.508, allocations: 75.28 kB / 0.5987 GB, free: 5.828 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 5.101e-05/0.5081, allocations: 162.4 kB / 0.5988 GB, free: 5.668 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.259e-05/0.5081, allocations: 79.28 kB / 0.5989 GB, free: 5.59 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.351e-05/0.5081, allocations: 158.7 kB / 0.599 GB, free: 5.434 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.303e-05/0.5082, allocations: 83.16 kB / 0.5991 GB, free: 5.352 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.48e-05/0.5083, allocations: 83.28 kB / 0.5992 GB, free: 5.27 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: 0 () * Number of discrete 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 9.422e-05/0.5084, allocations: 255.5 kB / 0.5994 GB, free: 5.012 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.618e-05/0.5084, allocations: 108.9 kB / 0.5995 GB, free: 4.898 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.073e-05/0.5085, allocations: 111.9 kB / 0.5997 GB, free: 4.777 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.276e-05/0.5085, allocations: 184.2 kB / 0.5998 GB, free: 4.59 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.381e-05/0.5086, allocations: 180.3 kB / 0.6 GB, free: 4.406 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.72e-05/0.5087, allocations: 180.3 kB / 0.6002 GB, free: 4.223 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001934/0.5089, allocations: 405.2 kB / 0.6006 GB, free: 3.77 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.994e-05/0.5089, allocations: 101 kB / 0.6007 GB, free: 3.664 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.823e-05/0.5089, allocations: 104.9 kB / 0.6008 GB, free: 3.555 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.52e-05/0.509, allocations: 180.3 kB / 0.6009 GB, free: 3.371 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.232e-05/0.509, allocations: 184.2 kB / 0.6011 GB, free: 3.184 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.062e-05/0.5091, allocations: 184.2 kB / 0.6013 GB, free: 2.996 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.797e-05/0.5091, allocations: 180.2 kB / 0.6015 GB, free: 2.812 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001218/0.5093, allocations: 299.8 kB / 0.6017 GB, free: 2.496 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.122e-05/0.5093, allocations: 198.5 kB / 0.6019 GB, free: 2.277 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.963e-05/0.5094, allocations: 180.2 kB / 0.6021 GB, free: 2.094 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.333e-05/0.5095, allocations: 105 kB / 0.6022 GB, free: 1.984 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.426e-05/0.5096, allocations: 184.2 kB / 0.6024 GB, free: 1.797 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.378e-05/0.5096, allocations: 108.9 kB / 0.6025 GB, free: 1.684 MB / 410.7 MB Notification: Performance of sorting global known variables: time 2.605e-05/0.5096, allocations: 79.28 kB / 0.6026 GB, free: 1.605 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.232e-06/0.5096, allocations: 4.094 kB / 0.6026 GB, free: 1.602 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0005479/0.5102, allocations: 139.8 kB / 0.6027 GB, free: 1.465 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: 0 () * Number of discrete 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.0008969/0.5111, allocations: 0.5061 MB / 0.6032 GB, free: 1.004 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 3.995e-05/0.5112, allocations: 4 kB / 0.6032 GB, free: 1 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 2.264e-06/0.5112, allocations: 0 / 0.6032 GB, free: 1 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 1.603e-06/0.5112, allocations: 0 / 0.6032 GB, free: 1 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002591/0.5114, allocations: 0.5224 MB / 0.6037 GB, free: 484 kB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001622/0.5116, allocations: 121 kB / 0.6038 GB, free: 340 kB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002185/0.5118, allocations: 0.677 MB / 0.6045 GB, free: 15.63 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 1.795e-05/0.5119, allocations: 0 / 0.6045 GB, free: 15.63 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.26e-05/0.5119, allocations: 11.44 kB / 0.6045 GB, free: 15.62 MB / 426.7 MB Notification: Performance of SimCode: time 2.41e-07/0.5119, allocations: 4 kB / 0.6045 GB, free: 15.61 MB / 426.7 MB Notification: Performance of Templates: time 0.005115/0.517, allocations: 2.587 MB / 0.607 GB, free: 13.03 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