Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegFunctions.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.Fluid.TestUtilities.TestRegFunctions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|x|sqrtx|sqrtx_a|x2|x2_a|x3|x3_a|sqrtxerr|x2err|x3err",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegFunctions") translateModel(ModelicaTest.Fluid.TestUtilities.TestRegFunctions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|x|sqrtx|sqrtx_a|x2|x2_a|x3|x3_a|sqrtxerr|x2err|x3err",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegFunctions") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001853/0.001853, allocations: 176.8 kB / 17.06 MB, free: 5.098 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.35/1.35, allocations: 223.2 MB / 241 MB, free: 10.14 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.0008883/0.0008884, allocations: 97.06 kB / 292.2 MB, free: 10.7 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.3334/0.3334, allocations: 44.21 MB / 387.5 MB, free: 38.51 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003391/0.0003391, allocations: 8 kB / 459.9 MB, free: 1.52 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3757/0.3761, allocations: 61.89 MB / 0.5095 GB, free: 37.8 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1162/0.4923, allocations: 85.18 MB / 0.5927 GB, free: 9.973 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002193/0.4926, allocations: 71.95 kB / 0.5928 GB, free: 9.902 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.002969/0.4956, allocations: 0.9072 MB / 0.5937 GB, free: 8.996 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.154e-06/0.4956, allocations: 0 / 0.5937 GB, free: 8.996 MB / 410.7 MB Notification: Performance of Transformations before backend: time 6.673e-06/0.4956, allocations: 0 / 0.5937 GB, free: 8.996 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: 10 * Number of variables: 10 Notification: Performance of Generate backend data structure: time 0.0003176/0.496, allocations: 343.3 kB / 0.594 GB, free: 8.613 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 7.071e-05/0.496, allocations: 12.03 kB / 0.594 GB, free: 8.602 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.213e-05/0.4961, allocations: 0 / 0.594 GB, free: 8.602 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000128/0.4962, allocations: 174.9 kB / 0.5942 GB, free: 8.391 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.892e-05/0.4962, allocations: 4 kB / 0.5942 GB, free: 8.387 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.759e-05/0.4963, allocations: 4 kB / 0.5942 GB, free: 8.383 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001513/0.4964, allocations: 53.64 kB / 0.5942 GB, free: 8.324 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.075e-06/0.4964, allocations: 0 / 0.5942 GB, free: 8.324 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.069e-05/0.4965, allocations: 0 / 0.5942 GB, free: 8.324 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.16e-06/0.4965, allocations: 4 kB / 0.5943 GB, free: 8.32 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001129/0.4966, allocations: 59.88 kB / 0.5943 GB, free: 8.262 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002055/0.4968, allocations: 169.6 kB / 0.5945 GB, free: 8.047 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001302/0.497, allocations: 70.55 kB / 0.5945 GB, free: 7.969 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003321/0.4973, allocations: 255.3 kB / 0.5948 GB, free: 7.664 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.527e-05/0.4973, allocations: 30.84 kB / 0.5948 GB, free: 7.625 MB / 410.7 MB Notification: Performance of pre-optimization done (n=10): time 3.246e-06/0.4973, allocations: 0 / 0.5948 GB, free: 7.625 MB / 410.7 MB Notification: Performance of matching and sorting (n=10): time 0.0002623/0.4976, allocations: 109.8 kB / 0.5949 GB, free: 7.512 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.463e-05/0.4977, allocations: 55.34 kB / 0.595 GB, free: 7.445 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.977e-05/0.4978, allocations: 89 kB / 0.5951 GB, free: 7.352 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 1.912e-05/0.4978, allocations: 29.8 kB / 0.5951 GB, free: 7.316 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.416e-05/0.4978, allocations: 84.08 kB / 0.5952 GB, free: 7.23 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.502e-05/0.4979, allocations: 35.45 kB / 0.5952 GB, free: 7.195 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.719e-06/0.4979, allocations: 0 / 0.5952 GB, free: 7.195 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.000134/0.498, allocations: 314.8 kB / 0.5955 GB, free: 6.879 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.913e-05/0.4981, allocations: 20.33 kB / 0.5955 GB, free: 6.859 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.182e-05/0.4981, allocations: 16 kB / 0.5955 GB, free: 6.844 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.758e-05/0.4982, allocations: 27.92 kB / 0.5956 GB, free: 6.816 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.573e-06/0.4982, allocations: 0 / 0.5956 GB, free: 6.816 MB / 410.7 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001339/0.4983, allocations: 81.62 kB / 0.5956 GB, free: 6.73 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.608e-05/0.4983, allocations: 4 kB / 0.5956 GB, free: 6.727 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.09e-06/0.4984, allocations: 0 / 0.5956 GB, free: 6.727 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.81e-05/0.4984, allocations: 3.953 kB / 0.5956 GB, free: 6.723 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001126/0.4985, allocations: 12 kB / 0.5957 GB, free: 6.711 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.128e-05/0.4985, allocations: 7.984 kB / 0.5957 GB, free: 6.703 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.938e-05/0.4986, allocations: 4 kB / 0.5957 GB, free: 6.699 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.878e-06/0.4986, allocations: 7.938 kB / 0.5957 GB, free: 6.691 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (10): * Single equations (assignments): 10 * 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.052e-05/0.4987, allocations: 110.4 kB / 0.5958 GB, free: 6.574 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.674e-05/0.4987, allocations: 7.906 kB / 0.5958 GB, free: 6.566 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002166/0.4989, allocations: 97.52 kB / 0.5959 GB, free: 6.465 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.408e-06/0.4989, allocations: 4.328 kB / 0.5959 GB, free: 6.461 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.729e-06/0.4989, allocations: 0 / 0.5959 GB, free: 6.461 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.707e-06/0.499, allocations: 0 / 0.5959 GB, free: 6.461 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001538/0.4991, allocations: 181.6 kB / 0.5961 GB, free: 6.234 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.132e-06/0.4991, allocations: 3.938 kB / 0.5961 GB, free: 6.23 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.592e-05/0.4992, allocations: 16 kB / 0.5961 GB, free: 6.215 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.024e-06/0.4992, allocations: 0 / 0.5961 GB, free: 6.215 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.15e-05/0.4992, allocations: 7.984 kB / 0.5961 GB, free: 6.207 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.392e-06/0.4993, allocations: 0 / 0.5961 GB, free: 6.207 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.645e-06/0.4993, allocations: 3.953 kB / 0.5961 GB, free: 6.203 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001575/0.4994, allocations: 101.1 kB / 0.5962 GB, free: 6.086 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.959e-05/0.4995, allocations: 89.09 kB / 0.5963 GB, free: 5.98 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.718e-05/0.4995, allocations: 4 kB / 0.5963 GB, free: 5.977 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.064e-05/0.4995, allocations: 3.984 kB / 0.5963 GB, free: 5.973 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.039e-05/0.4996, allocations: 4 kB / 0.5963 GB, free: 5.969 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.237e-06/0.4996, allocations: 7.953 kB / 0.5963 GB, free: 5.961 MB / 410.7 MB Notification: Performance of sorting global known variables: time 4.071e-05/0.4996, allocations: 75.28 kB / 0.5964 GB, free: 5.887 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.4996, allocations: 0 / 0.5964 GB, free: 5.887 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0002258/0.4999, allocations: 19.94 kB / 0.5964 GB, free: 5.867 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (10): * Single equations (assignments): 10 * 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.0002066/0.5001, allocations: 127.2 kB / 0.5965 GB, free: 5.734 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.000148/0.5002, allocations: 47.92 kB / 0.5965 GB, free: 5.688 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 2.545e-06/0.5003, allocations: 0 / 0.5965 GB, free: 5.688 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 4.968e-05/0.5003, allocations: 31.98 kB / 0.5966 GB, free: 5.656 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000111/0.5004, allocations: 1.375 kB / 0.5966 GB, free: 5.656 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003362/0.5008, allocations: 154.5 kB / 0.5967 GB, free: 5.477 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002599/0.501, allocations: 0.6853 MB / 0.5974 GB, free: 4.766 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 4.768e-05/0.5011, allocations: 7.984 kB / 0.5974 GB, free: 4.758 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.506e-05/0.5011, allocations: 11.44 kB / 0.5974 GB, free: 4.746 MB / 410.7 MB Notification: Performance of SimCode: time 3.8e-07/0.5011, allocations: 0 / 0.5974 GB, free: 4.746 MB / 410.7 MB Notification: Performance of Templates: time 0.002951/0.5041, allocations: 0.5946 MB / 0.598 GB, free: 4.152 MB / 410.7 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegFunctions.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegFunctions.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegFunctions.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegFunctions.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegFunctions.sim & ./ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegFunctions -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegFunctions.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegFunctions_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Fluid/TestUtilities/TestRegFunctions/TestRegFunctions.csv","../files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegFunctions.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches