Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.TestRegFunctions.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) 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/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 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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_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_ModelicaTest.Fluid.TestUtilities.TestRegFunctions") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008541/0.0008539, allocations: 94.72 kB / 18 MB, free: 5.602 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009973/0.0009973, allocations: 200.7 kB / 18.93 MB, free: 4.719 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.346/1.346, allocations: 227.7 MB / 247.5 MB, free: 9.477 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1957/0.1957, allocations: 46.2 MB / 345.9 MB, free: 11.14 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002857/0.0002859, allocations: 8 kB / 420.2 MB, free: 19.72 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1083/0.1086, allocations: 63.56 MB / 483.7 MB, free: 4.133 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.TestRegFunctions): time 0.0006501/0.1093, allocations: 257.4 kB / 484 MB, free: 3.883 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0004525/0.1097, allocations: 163.5 kB / 484.1 MB, free: 3.723 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.901e-05/0.1098, allocations: 4 kB / 484.1 MB, free: 3.719 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.246e-05/0.1098, allocations: 0 / 484.1 MB, free: 3.719 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002192/0.11, allocations: 23.91 kB / 484.2 MB, free: 3.695 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 3.096e-06/0.11, allocations: 0 / 484.2 MB, free: 3.695 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 5.317e-05/0.1101, allocations: 23.86 kB / 484.2 MB, free: 3.672 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.374e-05/0.1102, allocations: 8 kB / 484.2 MB, free: 3.664 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.222e-05/0.1102, allocations: 7.938 kB / 484.2 MB, free: 3.656 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.645e-05/0.1102, allocations: 23.84 kB / 484.2 MB, free: 3.633 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.093e-05/0.1103, allocations: 0 / 484.2 MB, free: 3.633 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001205/0.1104, allocations: 47.95 kB / 484.3 MB, free: 3.586 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.464e-05/0.1104, allocations: 7.984 kB / 484.3 MB, free: 3.578 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 3.078e-05/0.1105, allocations: 33.64 kB / 484.3 MB, free: 3.539 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 9.269e-05/0.1105, allocations: 31.95 kB / 484.4 MB, free: 3.508 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.227e-06/0.1106, allocations: 3.938 kB / 484.4 MB, free: 3.504 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.532e-06/0.1106, allocations: 0 / 484.4 MB, free: 3.504 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.813e-06/0.1106, allocations: 4 kB / 484.4 MB, free: 3.5 MB / 350.1 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.0003131/0.1109, allocations: 331.8 kB / 484.7 MB, free: 3.125 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.247e-05/0.1109, allocations: 8.031 kB / 484.7 MB, free: 3.117 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.634e-05/0.111, allocations: 8.844 kB / 484.7 MB, free: 3.109 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001261/0.1111, allocations: 172.2 kB / 484.9 MB, free: 2.902 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.285e-05/0.1111, allocations: 384 / 484.9 MB, free: 2.902 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.354e-05/0.1112, allocations: 4.375 kB / 484.9 MB, free: 2.898 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001322/0.1113, allocations: 58.25 kB / 484.9 MB, free: 2.836 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.334e-06/0.1113, allocations: 192 / 484.9 MB, free: 2.836 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.096e-05/0.1113, allocations: 7.938 kB / 484.9 MB, free: 2.828 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.709e-06/0.1113, allocations: 0 / 484.9 MB, free: 2.828 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001042/0.1114, allocations: 63.88 kB / 485 MB, free: 2.766 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001841/0.1116, allocations: 161.7 kB / 485.2 MB, free: 2.559 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001319/0.1118, allocations: 82.55 kB / 485.2 MB, free: 2.469 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.783e-05/0.1118, allocations: 28.86 kB / 485.3 MB, free: 2.438 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003404/0.1122, allocations: 259.3 kB / 485.5 MB, free: 2.129 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.436e-05/0.1122, allocations: 38.78 kB / 485.6 MB, free: 2.082 MB / 350.1 MB Notification: Performance of pre-optimization done (n=10): time 1.473e-06/0.1122, allocations: 0 / 485.6 MB, free: 2.082 MB / 350.1 MB Notification: Performance of matching and sorting (n=10): time 0.0002274/0.1125, allocations: 109.5 kB / 485.7 MB, free: 1.969 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.388e-05/0.1125, allocations: 51.41 kB / 485.7 MB, free: 1.906 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.023e-05/0.1126, allocations: 93.86 kB / 485.8 MB, free: 1.805 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.365e-05/0.1126, allocations: 25.7 kB / 485.8 MB, free: 1.773 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.618e-05/0.1126, allocations: 84.64 kB / 485.9 MB, free: 1.688 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.32e-05/0.1127, allocations: 39.53 kB / 486 MB, free: 1.648 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.617e-05/0.1127, allocations: 13.72 kB / 486 MB, free: 1.629 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001041/0.1128, allocations: 318.8 kB / 486.3 MB, free: 1.309 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.191e-05/0.1129, allocations: 15.94 kB / 486.3 MB, free: 1.293 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.212e-05/0.1129, allocations: 19.98 kB / 486.3 MB, free: 1.273 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.803e-05/0.113, allocations: 52.8 kB / 486.4 MB, free: 1.219 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.943e-06/0.113, allocations: 0 / 486.4 MB, free: 1.219 MB / 350.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001249/0.1131, allocations: 81.67 kB / 486.4 MB, free: 1.133 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.474e-05/0.1132, allocations: 8 kB / 486.5 MB, free: 1.125 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.542e-06/0.1132, allocations: 3.938 kB / 486.5 MB, free: 1.121 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.136e-05/0.1132, allocations: 0 / 486.5 MB, free: 1.121 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001023/0.1133, allocations: 23.94 kB / 486.5 MB, free: 1.098 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.249e-06/0.1133, allocations: 3.938 kB / 486.5 MB, free: 1.094 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.81e-05/0.1133, allocations: 7.844 kB / 486.5 MB, free: 1.086 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.885e-06/0.1134, allocations: 4 kB / 486.5 MB, free: 1.082 MB / 350.1 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.39e-05/0.1134, allocations: 113.8 kB / 486.6 MB, free: 0.9609 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.125e-05/0.1135, allocations: 4 kB / 486.6 MB, free: 0.957 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000187/0.1137, allocations: 105.5 kB / 486.7 MB, free: 0.8477 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.168e-06/0.1137, allocations: 4.375 kB / 486.7 MB, free: 0.8438 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.629e-06/0.1137, allocations: 0 / 486.7 MB, free: 0.8438 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.508e-06/0.1137, allocations: 3.984 kB / 486.7 MB, free: 0.8398 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001302/0.1138, allocations: 173.6 kB / 486.9 MB, free: 0.6211 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.944e-06/0.1138, allocations: 3.938 kB / 486.9 MB, free: 0.6172 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.402e-05/0.1139, allocations: 12 kB / 486.9 MB, free: 0.6055 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.157e-06/0.1139, allocations: 0 / 486.9 MB, free: 0.6055 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.925e-06/0.1139, allocations: 7.875 kB / 486.9 MB, free: 0.5977 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.036e-06/0.1139, allocations: 8 kB / 486.9 MB, free: 0.5898 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.12e-07/0.1139, allocations: 0 / 486.9 MB, free: 0.5898 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001404/0.1141, allocations: 105.1 kB / 487 MB, free: 480 kB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.346e-05/0.1141, allocations: 88.95 kB / 487.1 MB, free: 372 kB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.338e-05/0.1142, allocations: 3.938 kB / 487.1 MB, free: 368 kB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.346e-05/0.1142, allocations: 0 / 487.1 MB, free: 368 kB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.628e-05/0.1142, allocations: 11.98 kB / 487.1 MB, free: 356 kB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.997e-06/0.1142, allocations: 8 kB / 487.1 MB, free: 348 kB / 350.1 MB Notification: Performance of sorting global known variables: time 3.838e-05/0.1143, allocations: 79.28 kB / 487.2 MB, free: 268 kB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1143, allocations: 0 / 487.2 MB, free: 268 kB / 350.1 MB Notification: Performance of remove unused functions: time 0.0001987/0.1145, allocations: 16 kB / 487.2 MB, free: 252 kB / 350.1 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001342/0.1146, allocations: 115.2 kB / 487.3 MB, free: 128 kB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0001302/0.1148, allocations: 51.92 kB / 487.4 MB, free: 76 kB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.104e-06/0.1148, allocations: 0 / 487.4 MB, free: 76 kB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 4.402e-05/0.1148, allocations: 35.92 kB / 487.4 MB, free: 40 kB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001399/0.115, allocations: 4.094 kB / 487.4 MB, free: 36 kB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000367/0.1153, allocations: 176.5 kB / 487.6 MB, free: 15.82 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002522/0.1156, allocations: 0.6814 MB / 488.3 MB, free: 15.12 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.891e-05/0.1156, allocations: 15.44 kB / 488.3 MB, free: 15.1 MB / 366.1 MB Notification: Performance of SimCode: time 2.41e-07/0.1156, allocations: 0 / 488.3 MB, free: 15.1 MB / 366.1 MB Notification: Performance of Templates: time 0.002365/0.118, allocations: 0.7967 MB / 489.1 MB, free: 14.3 MB / 366.1 MB make -j1 -f ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.TestRegFunctions.makefile (rm -f ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.TestRegFunctions.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.TestRegFunctions.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.TestRegFunctions.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.TestRegFunctions.sim & ./ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.TestRegFunctions -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.TestRegFunctions.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_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","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.TestRegFunctions.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches