Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestUtilities.TestRegFunctions.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/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_trunk_cpp_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_trunk_cpp_ModelicaTest.Fluid.TestUtilities.TestRegFunctions") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001258/0.001258, allocations: 195.5 kB / 16.78 MB, free: 4.918 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.407/1.407, allocations: 226.5 MB / 244.1 MB, free: 6.473 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001082/0.001082, allocations: 106.9 kB / 296.1 MB, free: 6.695 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.4248/0.4248, allocations: 44.83 MB / 393 MB, free: 35.71 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000282/0.0002821, allocations: 11.98 kB / 465.9 MB, free: 12.75 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.378/0.3783, allocations: 62.95 MB / 0.5165 GB, free: 37.15 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1141/0.4925, allocations: 86.07 MB / 0.6005 GB, free: 3.34 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002591/0.4928, allocations: 59.97 kB / 0.6006 GB, free: 3.281 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.00258/0.4954, allocations: 0.9181 MB / 0.6015 GB, free: 2.363 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.824e-06/0.4954, allocations: 0 / 0.6015 GB, free: 2.363 MB / 410.7 MB Notification: Performance of Transformations before backend: time 6.021e-06/0.4954, allocations: 0 / 0.6015 GB, free: 2.363 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.0002961/0.4957, allocations: 335.5 kB / 0.6018 GB, free: 1.984 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.088e-05/0.4958, allocations: 8.031 kB / 0.6018 GB, free: 1.977 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.184e-05/0.4958, allocations: 8.938 kB / 0.6018 GB, free: 1.969 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000123/0.4959, allocations: 172.2 kB / 0.602 GB, free: 1.762 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.494e-05/0.4959, allocations: 12.3 kB / 0.602 GB, free: 1.75 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.324e-05/0.496, allocations: 4.375 kB / 0.602 GB, free: 1.746 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001271/0.4961, allocations: 54.25 kB / 0.602 GB, free: 1.688 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.256e-06/0.4961, allocations: 192 / 0.602 GB, free: 1.688 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.477e-05/0.4961, allocations: 7.938 kB / 0.602 GB, free: 1.68 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.559e-06/0.4961, allocations: 0 / 0.602 GB, free: 1.68 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.857e-05/0.4962, allocations: 55.88 kB / 0.6021 GB, free: 1.625 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001903/0.4964, allocations: 169.6 kB / 0.6023 GB, free: 1.41 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001159/0.4966, allocations: 70.55 kB / 0.6023 GB, free: 1.332 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.482e-05/0.4966, allocations: 28.86 kB / 0.6024 GB, free: 1.301 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003054/0.4969, allocations: 259.3 kB / 0.6026 GB, free: 0.9922 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.673e-05/0.497, allocations: 30.84 kB / 0.6026 GB, free: 0.9531 MB / 410.7 MB Notification: Performance of pre-optimization done (n=10): time 2.776e-06/0.497, allocations: 0 / 0.6026 GB, free: 0.9531 MB / 410.7 MB Notification: Performance of matching and sorting (n=10): time 0.0002236/0.4972, allocations: 105.5 kB / 0.6027 GB, free: 0.8438 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.524e-05/0.4973, allocations: 55.34 kB / 0.6028 GB, free: 0.7773 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.4e-05/0.4973, allocations: 93.86 kB / 0.6029 GB, free: 0.6758 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 1.519e-05/0.4974, allocations: 29.7 kB / 0.6029 GB, free: 0.6406 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.007e-05/0.4974, allocations: 80.14 kB / 0.603 GB, free: 0.5586 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.762e-05/0.4974, allocations: 35.67 kB / 0.603 GB, free: 0.5234 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.995e-06/0.4975, allocations: 4 kB / 0.603 GB, free: 0.5195 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001064/0.4976, allocations: 314.8 kB / 0.6033 GB, free: 208 kB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.121e-05/0.4976, allocations: 15.98 kB / 0.6033 GB, free: 192 kB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.075e-05/0.4976, allocations: 20.38 kB / 0.6034 GB, free: 172 kB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.839e-05/0.4977, allocations: 61.03 kB / 0.6034 GB, free: 108 kB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.363e-06/0.4977, allocations: 0 / 0.6034 GB, free: 108 kB / 410.7 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001098/0.4979, allocations: 73.69 kB / 0.6035 GB, free: 28 kB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.253e-05/0.4979, allocations: 4 kB / 0.6035 GB, free: 24 kB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.64e-06/0.4979, allocations: 3.938 kB / 0.6035 GB, free: 20 kB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.148e-05/0.4979, allocations: 0 / 0.6035 GB, free: 20 kB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001168/0.498, allocations: 23.98 kB / 0.6035 GB, free: 15.99 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.711e-06/0.498, allocations: 0 / 0.6035 GB, free: 15.99 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.159e-05/0.4981, allocations: 3.938 kB / 0.6035 GB, free: 15.99 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.416e-06/0.4981, allocations: 4 kB / 0.6035 GB, free: 15.99 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 (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 8.351e-05/0.4982, allocations: 113.8 kB / 0.6036 GB, free: 15.87 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.19e-05/0.4982, allocations: 7.906 kB / 0.6036 GB, free: 15.86 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001786/0.4984, allocations: 101.5 kB / 0.6037 GB, free: 15.75 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.863e-06/0.4984, allocations: 0 / 0.6037 GB, free: 15.75 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.657e-06/0.4984, allocations: 0 / 0.6037 GB, free: 15.75 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.039e-06/0.4984, allocations: 3.984 kB / 0.6037 GB, free: 15.75 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001262/0.4985, allocations: 169.7 kB / 0.6039 GB, free: 15.53 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.475e-06/0.4985, allocations: 4 kB / 0.6039 GB, free: 15.53 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.954e-05/0.4986, allocations: 12 kB / 0.6039 GB, free: 15.52 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.366e-06/0.4986, allocations: 11.98 kB / 0.6039 GB, free: 15.5 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.208e-06/0.4986, allocations: 3.938 kB / 0.6039 GB, free: 15.5 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.946e-06/0.4986, allocations: 3.938 kB / 0.6039 GB, free: 15.5 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.72e-07/0.4986, allocations: 192 / 0.6039 GB, free: 15.5 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001455/0.4988, allocations: 113 kB / 0.604 GB, free: 15.37 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.41e-05/0.4988, allocations: 77.11 kB / 0.6041 GB, free: 15.27 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.634e-05/0.4989, allocations: 7.922 kB / 0.6041 GB, free: 15.27 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.501e-05/0.4989, allocations: 11.94 kB / 0.6041 GB, free: 15.25 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.5e-05/0.4989, allocations: 4 kB / 0.6041 GB, free: 15.25 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.711e-06/0.4989, allocations: 4 kB / 0.6041 GB, free: 15.25 MB / 426.7 MB Notification: Performance of sorting global known variables: time 3.953e-05/0.499, allocations: 75.28 kB / 0.6042 GB, free: 15.17 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.31e-07/0.499, allocations: 0 / 0.6042 GB, free: 15.17 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.0001825/0.4992, allocations: 23.92 kB / 0.6042 GB, free: 15.15 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 (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.0001451/0.4993, allocations: 107.2 kB / 0.6043 GB, free: 15.04 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.0001271/0.4994, allocations: 55.91 kB / 0.6044 GB, free: 14.98 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 1.734e-06/0.4995, allocations: 4.094 kB / 0.6044 GB, free: 14.98 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 5.154e-05/0.4995, allocations: 31.94 kB / 0.6044 GB, free: 14.95 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001423/0.4997, allocations: 4 kB / 0.6044 GB, free: 14.94 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002976/0.5, allocations: 164.3 kB / 0.6046 GB, free: 14.75 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002438/0.5002, allocations: 0.6809 MB / 0.6053 GB, free: 14.04 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.642e-05/0.5003, allocations: 11.44 kB / 0.6053 GB, free: 14.03 MB / 426.7 MB Notification: Performance of SimCode: time 2.6e-07/0.5003, allocations: 8 kB / 0.6053 GB, free: 14.02 MB / 426.7 MB Notification: Performance of Templates: time 0.002056/0.5023, allocations: 0.8129 MB / 0.6061 GB, free: 13.21 MB / 426.7 MB make -j1 -f ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestUtilities.TestRegFunctions.makefile (rm -f ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestUtilities.TestRegFunctions.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestUtilities.TestRegFunctions.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestUtilities.TestRegFunctions.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestUtilities.TestRegFunctions.sim & ./ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestUtilities.TestRegFunctions --alarm=480 -emit_protected > ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestUtilities.TestRegFunctions.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestUtilities.TestRegFunctions_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Fluid/TestUtilities/TestRegFunctions/TestRegFunctions.csv","../files/ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestUtilities.TestRegFunctions.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches