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.0009702/0.0009702, allocations: 202.9 kB / 15.8 MB, free: 6.332 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.228/1.228, allocations: 226.6 MB / 243.1 MB, free: 12.55 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007105/0.0007105, allocations: 99.61 kB / 295.1 MB, free: 4.418 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1789/0.1789, allocations: 44.85 MB / 392 MB, free: 11.38 MB / 330.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002193/0.0002194, allocations: 8 kB / 464.7 MB, free: 68.09 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07912/0.07935, allocations: 62.95 MB / 0.5153 GB, free: 5.133 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.TestRegFunctions): time 0.0004595/0.07984, allocations: 258 kB / 0.5156 GB, free: 4.879 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.000271/0.08013, allocations: 147.7 kB / 0.5157 GB, free: 4.734 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.15e-05/0.08016, allocations: 0 / 0.5157 GB, free: 4.734 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 1.113e-05/0.08018, allocations: 0 / 0.5157 GB, free: 4.734 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001678/0.08035, allocations: 23.91 kB / 0.5157 GB, free: 4.711 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 2.274e-06/0.08036, allocations: 0 / 0.5157 GB, free: 4.711 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 3.801e-05/0.08041, allocations: 19.92 kB / 0.5157 GB, free: 4.691 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.91e-05/0.08046, allocations: 4 kB / 0.5157 GB, free: 4.688 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 1.772e-05/0.08049, allocations: 15.92 kB / 0.5158 GB, free: 4.672 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 4.237e-05/0.08053, allocations: 7.922 kB / 0.5158 GB, free: 4.664 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 1.027e-05/0.08055, allocations: 11.98 kB / 0.5158 GB, free: 4.652 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 8.552e-05/0.08064, allocations: 47.95 kB / 0.5158 GB, free: 4.605 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 5.22e-06/0.08065, allocations: 7.875 kB / 0.5158 GB, free: 4.598 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 1.15e-05/0.08067, allocations: 29.69 kB / 0.5159 GB, free: 4.562 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 6.247e-05/0.08074, allocations: 27.97 kB / 0.5159 GB, free: 4.535 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.446e-06/0.08075, allocations: 0 / 0.5159 GB, free: 4.535 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.302e-06/0.08075, allocations: 0 / 0.5159 GB, free: 4.535 MB / 346.7 MB Notification: Performance of Transformations before backend: time 3.296e-06/0.08076, allocations: 0 / 0.5159 GB, free: 4.535 MB / 346.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.0001799/0.08094, allocations: 327.4 kB / 0.5162 GB, free: 4.168 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.886e-05/0.08098, allocations: 8.031 kB / 0.5162 GB, free: 4.16 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.592e-05/0.08101, allocations: 11.91 kB / 0.5162 GB, free: 4.148 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 6.389e-05/0.08108, allocations: 175.2 kB / 0.5164 GB, free: 3.938 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.096e-05/0.0811, allocations: 7.984 kB / 0.5164 GB, free: 3.93 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.002e-05/0.08111, allocations: 0 / 0.5164 GB, free: 3.93 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001018/0.08122, allocations: 65.61 kB / 0.5165 GB, free: 3.859 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.362e-06/0.08123, allocations: 0 / 0.5165 GB, free: 3.859 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.345e-06/0.08124, allocations: 0 / 0.5165 GB, free: 3.859 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.429e-06/0.08125, allocations: 4 kB / 0.5165 GB, free: 3.855 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.001e-05/0.08134, allocations: 55.89 kB / 0.5165 GB, free: 3.801 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001236/0.08147, allocations: 169.6 kB / 0.5167 GB, free: 3.586 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001006/0.08157, allocations: 78.55 kB / 0.5168 GB, free: 3.5 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.884e-05/0.08162, allocations: 32.84 kB / 0.5168 GB, free: 3.465 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002472/0.08187, allocations: 251.3 kB / 0.517 GB, free: 3.164 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.188e-05/0.0819, allocations: 38.77 kB / 0.5171 GB, free: 3.117 MB / 346.7 MB Notification: Performance of pre-optimization done (n=10): time 1.082e-06/0.0819, allocations: 4 kB / 0.5171 GB, free: 3.113 MB / 346.7 MB Notification: Performance of matching and sorting (n=10): time 0.0001706/0.08208, allocations: 101.6 kB / 0.5172 GB, free: 3.008 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.726e-05/0.0821, allocations: 51.41 kB / 0.5172 GB, free: 2.945 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.419e-05/0.08214, allocations: 93.84 kB / 0.5173 GB, free: 2.844 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 7.183e-06/0.08215, allocations: 29.7 kB / 0.5173 GB, free: 2.809 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 1.027e-05/0.08217, allocations: 80.14 kB / 0.5174 GB, free: 2.727 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.503e-05/0.0822, allocations: 35.41 kB / 0.5174 GB, free: 2.691 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.017e-06/0.08221, allocations: 4 kB / 0.5174 GB, free: 2.688 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 3.538e-05/0.08225, allocations: 319 kB / 0.5177 GB, free: 2.367 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.69e-05/0.08228, allocations: 20 kB / 0.5178 GB, free: 2.348 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.349e-05/0.08231, allocations: 15.98 kB / 0.5178 GB, free: 2.332 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.465e-05/0.08235, allocations: 20.56 kB / 0.5178 GB, free: 2.312 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.384e-06/0.08236, allocations: 7.891 kB / 0.5178 GB, free: 2.305 MB / 346.7 MB Notification: Performance of matching and sorting (n=10) (initialization): time 9.173e-05/0.08245, allocations: 81.62 kB / 0.5179 GB, free: 2.219 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.877e-06/0.08247, allocations: 8 kB / 0.5179 GB, free: 2.211 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.558e-06/0.08248, allocations: 7.984 kB / 0.5179 GB, free: 2.203 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.152e-05/0.08249, allocations: 0 / 0.5179 GB, free: 2.203 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.148e-05/0.08259, allocations: 15.94 kB / 0.5179 GB, free: 2.188 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.408e-06/0.0826, allocations: 4 kB / 0.5179 GB, free: 2.184 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.337e-05/0.08263, allocations: 7.906 kB / 0.5179 GB, free: 2.176 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.21e-06/0.08264, allocations: 0 / 0.5179 GB, free: 2.176 MB / 346.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.77e-05/0.08269, allocations: 117.8 kB / 0.518 GB, free: 2.051 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.288e-06/0.0827, allocations: 7.938 kB / 0.518 GB, free: 2.043 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001391/0.08285, allocations: 101.6 kB / 0.5181 GB, free: 1.938 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.503e-06/0.08286, allocations: 0 / 0.5181 GB, free: 1.938 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.217e-06/0.08286, allocations: 0 / 0.5181 GB, free: 1.938 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.555e-06/0.08287, allocations: 4 kB / 0.5181 GB, free: 1.934 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 6.961e-05/0.08294, allocations: 177.5 kB / 0.5183 GB, free: 1.711 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.32e-07/0.08295, allocations: 0 / 0.5183 GB, free: 1.711 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.077e-05/0.08302, allocations: 15.95 kB / 0.5183 GB, free: 1.695 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.285e-06/0.08302, allocations: 4 kB / 0.5183 GB, free: 1.691 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.152e-06/0.08304, allocations: 0 / 0.5183 GB, free: 1.691 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.102e-06/0.08304, allocations: 0 / 0.5183 GB, free: 1.691 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.71e-07/0.08304, allocations: 0 / 0.5183 GB, free: 1.691 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001026/0.08315, allocations: 121.2 kB / 0.5185 GB, free: 1.555 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.33e-05/0.08317, allocations: 81.02 kB / 0.5185 GB, free: 1.457 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.141e-05/0.08319, allocations: 4.047 kB / 0.5185 GB, free: 1.453 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.504e-05/0.08322, allocations: 11.94 kB / 0.5185 GB, free: 1.441 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.579e-05/0.08324, allocations: 3.984 kB / 0.5185 GB, free: 1.438 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.368e-06/0.08325, allocations: 4 kB / 0.5186 GB, free: 1.434 MB / 346.7 MB Notification: Performance of sorting global known variables: time 1.33e-05/0.08326, allocations: 79.22 kB / 0.5186 GB, free: 1.355 MB / 346.7 MB Notification: Performance of sort global known variables: time 5.71e-07/0.08327, allocations: 0 / 0.5186 GB, free: 1.355 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.000199/0.08347, allocations: 19.94 kB / 0.5186 GB, free: 1.336 MB / 346.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 9.002e-05/0.08357, allocations: 107.3 kB / 0.5187 GB, free: 1.219 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 9.869e-05/0.08367, allocations: 51.92 kB / 0.5188 GB, free: 1.168 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.312e-06/0.08368, allocations: 0 / 0.5188 GB, free: 1.168 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 3.315e-05/0.08372, allocations: 31.98 kB / 0.5188 GB, free: 1.137 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001186/0.08384, allocations: 6.25 kB / 0.5188 GB, free: 1.133 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002375/0.08409, allocations: 180.3 kB / 0.519 GB, free: 0.9219 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.499e-05/0.08417, allocations: 0.6809 MB / 0.5197 GB, free: 220 kB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.072e-05/0.0842, allocations: 15.44 kB / 0.5197 GB, free: 208 kB / 346.7 MB Notification: Performance of SimCode: time 2.21e-07/0.0842, allocations: 0 / 0.5197 GB, free: 208 kB / 346.7 MB Notification: Performance of Templates: time 0.001715/0.08592, allocations: 0.8049 MB / 0.5205 GB, free: 15.39 MB / 362.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