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.001553/0.001553, allocations: 198.3 kB / 16.1 MB, free: 5.707 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.273/1.273, allocations: 226.6 MB / 243.4 MB, free: 8.098 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007949/0.0007949, allocations: 95.39 kB / 295.5 MB, free: 6.875 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.307/0.307, allocations: 44.81 MB / 392.3 MB, free: 35.7 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002946/0.0002946, allocations: 8 kB / 465.3 MB, free: 12.68 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3007/0.301, allocations: 62.95 MB / 0.5159 GB, free: 37 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.TestRegFunctions): time 0.0005559/0.3016, allocations: 258.3 kB / 0.5161 GB, free: 36.83 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.0003159/0.302, allocations: 144.9 kB / 0.5162 GB, free: 36.74 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.46e-05/0.302, allocations: 3.938 kB / 0.5163 GB, free: 36.73 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 1.031e-05/0.302, allocations: 4 kB / 0.5163 GB, free: 36.73 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002059/0.3022, allocations: 28.8 kB / 0.5163 GB, free: 36.71 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 2.675e-06/0.3022, allocations: 0 / 0.5163 GB, free: 36.71 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 4.713e-05/0.3023, allocations: 20.48 kB / 0.5163 GB, free: 36.71 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.893e-05/0.3023, allocations: 3.422 kB / 0.5163 GB, free: 36.71 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 1.882e-05/0.3024, allocations: 13.44 kB / 0.5163 GB, free: 36.7 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 4.712e-05/0.3024, allocations: 14.03 kB / 0.5163 GB, free: 36.69 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 1.099e-05/0.3024, allocations: 2.812 kB / 0.5163 GB, free: 36.69 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 9.634e-05/0.3025, allocations: 52.61 kB / 0.5164 GB, free: 36.68 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 7.423e-06/0.3026, allocations: 3.375 kB / 0.5164 GB, free: 36.68 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 2.211e-05/0.3026, allocations: 44.45 kB / 0.5164 GB, free: 36.63 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 6.882e-05/0.3027, allocations: 23.44 kB / 0.5165 GB, free: 36.62 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.072e-06/0.3027, allocations: 5.828 kB / 0.5165 GB, free: 36.62 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.513e-06/0.3027, allocations: 0 / 0.5165 GB, free: 36.62 MB / 378.7 MB Notification: Performance of Transformations before backend: time 3.477e-06/0.3027, allocations: 0 / 0.5165 GB, free: 36.62 MB / 378.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.0002018/0.3029, allocations: 332.8 kB / 0.5168 GB, free: 36.25 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.678e-05/0.3029, allocations: 11.53 kB / 0.5168 GB, free: 36.25 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.497e-05/0.303, allocations: 0.9375 kB / 0.5168 GB, free: 36.25 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.386e-05/0.3031, allocations: 164.8 kB / 0.5169 GB, free: 36.06 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.528e-06/0.3031, allocations: 8.375 kB / 0.517 GB, free: 36.05 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.295e-05/0.3031, allocations: 4.156 kB / 0.517 GB, free: 36.05 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001142/0.3032, allocations: 60.16 kB / 0.517 GB, free: 36.01 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.263e-06/0.3032, allocations: 192 / 0.517 GB, free: 36.01 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.007e-05/0.3032, allocations: 3.938 kB / 0.517 GB, free: 36 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.851e-06/0.3032, allocations: 3 kB / 0.517 GB, free: 36 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.873e-05/0.3033, allocations: 51.95 kB / 0.5171 GB, free: 35.99 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001265/0.3035, allocations: 175.8 kB / 0.5172 GB, free: 35.79 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001112/0.3036, allocations: 85.59 kB / 0.5173 GB, free: 35.74 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.284e-05/0.3036, allocations: 34.27 kB / 0.5174 GB, free: 35.72 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002587/0.3039, allocations: 255.8 kB / 0.5176 GB, free: 35.43 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.614e-05/0.3039, allocations: 30.56 kB / 0.5176 GB, free: 35.39 MB / 378.7 MB Notification: Performance of pre-optimization done (n=10): time 1.153e-06/0.3039, allocations: 0 / 0.5176 GB, free: 35.39 MB / 378.7 MB Notification: Performance of matching and sorting (n=10): time 0.0001823/0.3041, allocations: 109.6 kB / 0.5177 GB, free: 35.33 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.15e-05/0.3042, allocations: 55.41 kB / 0.5178 GB, free: 35.27 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.991e-05/0.3042, allocations: 92.67 kB / 0.5179 GB, free: 35.17 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 9.378e-06/0.3042, allocations: 29.7 kB / 0.5179 GB, free: 35.13 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 1.191e-05/0.3042, allocations: 80.14 kB / 0.518 GB, free: 35.05 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.065e-05/0.3043, allocations: 36.53 kB / 0.518 GB, free: 35.02 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.238e-06/0.3043, allocations: 0 / 0.518 GB, free: 35.02 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 4.196e-05/0.3043, allocations: 318.3 kB / 0.5183 GB, free: 34.71 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.897e-05/0.3044, allocations: 18.61 kB / 0.5183 GB, free: 34.7 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.454e-05/0.3044, allocations: 20.44 kB / 0.5184 GB, free: 34.69 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.807e-05/0.3045, allocations: 57.88 kB / 0.5184 GB, free: 34.66 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.353e-06/0.3045, allocations: 0 / 0.5184 GB, free: 34.66 MB / 378.7 MB Notification: Performance of matching and sorting (n=10) (initialization): time 9.831e-05/0.3046, allocations: 81.53 kB / 0.5185 GB, free: 34.61 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.185e-05/0.3046, allocations: 8.906 kB / 0.5185 GB, free: 34.61 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.388e-06/0.3046, allocations: 3.938 kB / 0.5185 GB, free: 34.61 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.778e-06/0.3046, allocations: 0 / 0.5185 GB, free: 34.61 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.921e-05/0.3047, allocations: 17.61 kB / 0.5185 GB, free: 34.61 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.52e-06/0.3047, allocations: 0 / 0.5185 GB, free: 34.61 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.423e-05/0.3048, allocations: 6.812 kB / 0.5185 GB, free: 34.6 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.763e-06/0.3048, allocations: 7.062 kB / 0.5185 GB, free: 34.6 MB / 378.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 4.835e-05/0.3048, allocations: 117.8 kB / 0.5186 GB, free: 34.47 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.032e-05/0.3048, allocations: 10.5 kB / 0.5186 GB, free: 34.47 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000149/0.305, allocations: 100.1 kB / 0.5187 GB, free: 34.41 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.305e-06/0.305, allocations: 3 kB / 0.5187 GB, free: 34.41 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.947e-06/0.305, allocations: 0 / 0.5187 GB, free: 34.41 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.038e-06/0.305, allocations: 3.375 kB / 0.5188 GB, free: 34.41 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.659e-05/0.3051, allocations: 173.8 kB / 0.5189 GB, free: 34.2 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.92e-07/0.3051, allocations: 4 kB / 0.5189 GB, free: 34.2 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.956e-05/0.3052, allocations: 15.19 kB / 0.5189 GB, free: 34.2 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.453e-06/0.3052, allocations: 0 / 0.5189 GB, free: 34.2 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.656e-06/0.3052, allocations: 6.969 kB / 0.5189 GB, free: 34.2 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.094e-06/0.3052, allocations: 3.984 kB / 0.5189 GB, free: 34.19 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.02e-07/0.3052, allocations: 0 / 0.5189 GB, free: 34.19 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000109/0.3053, allocations: 115 kB / 0.5191 GB, free: 34.1 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.563e-05/0.3053, allocations: 77.11 kB / 0.5191 GB, free: 34.01 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.341e-05/0.3054, allocations: 6.719 kB / 0.5191 GB, free: 34 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.285e-05/0.3054, allocations: 7.234 kB / 0.5191 GB, free: 34 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.916e-05/0.3054, allocations: 6.969 kB / 0.5191 GB, free: 34 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.04e-06/0.3054, allocations: 2.469 kB / 0.5192 GB, free: 34 MB / 378.7 MB Notification: Performance of sorting global known variables: time 1.4e-05/0.3054, allocations: 75.28 kB / 0.5192 GB, free: 33.92 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3055, allocations: 0 / 0.5192 GB, free: 33.92 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0001881/0.3056, allocations: 18.62 kB / 0.5192 GB, free: 33.92 MB / 378.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.0001114/0.3058, allocations: 111.6 kB / 0.5193 GB, free: 33.82 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0001118/0.3059, allocations: 59.03 kB / 0.5194 GB, free: 33.8 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.074e-06/0.3059, allocations: 2.938 kB / 0.5194 GB, free: 33.8 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 3.488e-05/0.3059, allocations: 29.75 kB / 0.5194 GB, free: 33.79 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001328/0.3061, allocations: 6.109 kB / 0.5194 GB, free: 33.79 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002725/0.3064, allocations: 165.2 kB / 0.5196 GB, free: 33.62 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.209e-05/0.3065, allocations: 0.6849 MB / 0.5203 GB, free: 32.93 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.524e-05/0.3065, allocations: 21.41 kB / 0.5203 GB, free: 32.91 MB / 378.7 MB Notification: Performance of SimCode: time 2.21e-07/0.3065, allocations: 0 / 0.5203 GB, free: 32.91 MB / 378.7 MB Notification: Performance of Templates: time 0.001785/0.3083, allocations: 0.8031 MB / 0.5211 GB, free: 32.85 MB / 378.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/jenkins/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