Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.Test01RegFun3.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.Test01RegFun3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|x",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.Test01RegFun3") translateModel(ModelicaTest.Fluid.TestUtilities.Test01RegFun3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|x",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.Test01RegFun3") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001126/0.001126, allocations: 103.9 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001199/0.001199, allocations: 210.4 kB / 18.58 MB, free: 4.578 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.392/1.392, allocations: 227.4 MB / 246.8 MB, free: 10.63 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2066/0.2066, allocations: 46.1 MB / 344.1 MB, free: 11.6 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001275/0.001275, allocations: 75.06 kB / 417.6 MB, free: 19.76 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09799/0.09927, allocations: 62.45 MB / 480 MB, free: 5.289 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.Test01RegFun3): time 0.001473/0.1008, allocations: 491.4 kB / 480.5 MB, free: 4.809 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001528/0.1023, allocations: 1.411 MB / 481.9 MB, free: 3.379 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.994e-05/0.1023, allocations: 0 / 481.9 MB, free: 3.379 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.283e-05/0.1024, allocations: 4 kB / 481.9 MB, free: 3.375 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 2.643e-05/0.1024, allocations: 0 / 481.9 MB, free: 3.375 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006058/0.103, allocations: 235.8 kB / 482.1 MB, free: 3.145 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 3.802e-05/0.1031, allocations: 12 kB / 482.1 MB, free: 3.133 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.424e-05/0.1031, allocations: 0 / 482.1 MB, free: 3.133 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.569e-05/0.1031, allocations: 4 kB / 482.2 MB, free: 3.129 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.983e-05/0.1032, allocations: 3.984 kB / 482.2 MB, free: 3.125 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.067e-05/0.1032, allocations: 0 / 482.2 MB, free: 3.125 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003873/0.1036, allocations: 271.6 kB / 482.4 MB, free: 2.859 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.191e-05/0.1036, allocations: 0 / 482.4 MB, free: 2.859 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.153e-05/0.1036, allocations: 23.86 kB / 482.4 MB, free: 2.836 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000192/0.1038, allocations: 139.7 kB / 482.6 MB, free: 2.699 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.276e-06/0.1038, allocations: 0 / 482.6 MB, free: 2.699 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.072e-06/0.1038, allocations: 3.938 kB / 482.6 MB, free: 2.695 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.278e-06/0.1039, allocations: 0 / 482.6 MB, free: 2.695 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: 1 * Number of variables: 1 Notification: Performance of Generate backend data structure: time 0.0003174/0.1042, allocations: 335.6 kB / 482.9 MB, free: 2.32 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.966e-05/0.1042, allocations: 12.03 kB / 482.9 MB, free: 2.309 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.61e-05/0.1042, allocations: 0.9375 kB / 482.9 MB, free: 2.309 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.867e-05/0.1043, allocations: 164.4 kB / 483.1 MB, free: 2.109 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.117e-06/0.1044, allocations: 4.375 kB / 483.1 MB, free: 2.105 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.387e-06/0.1044, allocations: 384 / 483.1 MB, free: 2.105 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.104e-05/0.1045, allocations: 34.02 kB / 483.1 MB, free: 2.066 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.332e-06/0.1045, allocations: 0 / 483.1 MB, free: 2.066 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.616e-06/0.1045, allocations: 0 / 483.1 MB, free: 2.066 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.017e-06/0.1045, allocations: 0 / 483.1 MB, free: 2.066 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.946e-05/0.1045, allocations: 4 kB / 483.1 MB, free: 2.062 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001249/0.1046, allocations: 157.6 kB / 483.3 MB, free: 1.859 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.014e-05/0.1047, allocations: 18.58 kB / 483.3 MB, free: 1.832 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.567e-05/0.1047, allocations: 4.922 kB / 483.3 MB, free: 1.824 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.022e-05/0.1047, allocations: 4 kB / 483.3 MB, free: 1.82 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.228e-05/0.1048, allocations: 38.44 kB / 483.3 MB, free: 1.773 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 8.52e-07/0.1048, allocations: 0 / 483.3 MB, free: 1.773 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001181/0.1049, allocations: 49.53 kB / 483.4 MB, free: 1.719 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.268e-05/0.1049, allocations: 51.41 kB / 483.4 MB, free: 1.656 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.805e-05/0.105, allocations: 93.98 kB / 483.5 MB, free: 1.555 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.289e-05/0.105, allocations: 29.7 kB / 483.6 MB, free: 1.52 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.783e-05/0.105, allocations: 80.14 kB / 483.6 MB, free: 1.438 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.645e-05/0.1051, allocations: 0 / 483.6 MB, free: 1.438 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.624e-05/0.1051, allocations: 13.72 kB / 483.7 MB, free: 1.418 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 8.537e-05/0.1052, allocations: 318.8 kB / 484 MB, free: 1.098 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.808e-06/0.1052, allocations: 0 / 484 MB, free: 1.098 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.062e-06/0.1052, allocations: 0 / 484 MB, free: 1.098 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.306e-05/0.1052, allocations: 13.05 kB / 484 MB, free: 1.082 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.302e-06/0.1052, allocations: 0 / 484 MB, free: 1.082 MB / 350.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 5.337e-05/0.1053, allocations: 41.64 kB / 484 MB, free: 1.035 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.274e-05/0.1053, allocations: 7.938 kB / 484 MB, free: 1.027 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.236e-06/0.1053, allocations: 0 / 484 MB, free: 1.027 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.005e-05/0.1053, allocations: 0 / 484 MB, free: 1.027 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.973e-05/0.1054, allocations: 7.984 kB / 484 MB, free: 1.02 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.877e-06/0.1054, allocations: 0 / 484 MB, free: 1.02 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.172e-05/0.1054, allocations: 288 / 484 MB, free: 1.02 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.27e-06/0.1054, allocations: 4.031 kB / 484 MB, free: 1.016 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 (1): * Single equations (assignments): 1 * 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 5.772e-05/0.1055, allocations: 109.8 kB / 484.1 MB, free: 0.8984 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.688e-06/0.1055, allocations: 3.938 kB / 484.2 MB, free: 0.8945 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001014/0.1056, allocations: 48.75 kB / 484.2 MB, free: 0.8438 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.266e-06/0.1056, allocations: 3.938 kB / 484.2 MB, free: 0.8398 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.296e-06/0.1056, allocations: 3.938 kB / 484.2 MB, free: 0.8359 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.974e-06/0.1056, allocations: 4.031 kB / 484.2 MB, free: 0.832 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.332e-05/0.1057, allocations: 149.7 kB / 484.4 MB, free: 0.6367 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.528e-06/0.1057, allocations: 0 / 484.4 MB, free: 0.6367 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.904e-06/0.1057, allocations: 4 kB / 484.4 MB, free: 0.6328 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.695e-06/0.1058, allocations: 3.938 kB / 484.4 MB, free: 0.6289 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.202e-06/0.1058, allocations: 4 kB / 484.4 MB, free: 0.625 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.02e-07/0.1058, allocations: 0 / 484.4 MB, free: 0.625 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.01e-07/0.1058, allocations: 0 / 484.4 MB, free: 0.625 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.539e-05/0.1058, allocations: 65.05 kB / 484.4 MB, free: 0.543 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.291e-05/0.1059, allocations: 88.97 kB / 484.5 MB, free: 448 kB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.045e-05/0.1059, allocations: 3.984 kB / 484.5 MB, free: 444 kB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.039e-05/0.106, allocations: 4 kB / 484.5 MB, free: 440 kB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.279e-05/0.106, allocations: 0 / 484.5 MB, free: 440 kB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.536e-06/0.106, allocations: 0 / 484.5 MB, free: 440 kB / 350.1 MB Notification: Performance of sorting global known variables: time 2.992e-05/0.106, allocations: 79.28 kB / 484.6 MB, free: 360 kB / 350.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.106, allocations: 0 / 484.6 MB, free: 360 kB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002371/0.1063, allocations: 44.11 kB / 484.6 MB, free: 316 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 (1): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * 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.0002378/0.1065, allocations: 143.2 kB / 484.8 MB, free: 160 kB / 350.1 MB Notification: Performance of simCode: created initialization part: time 6.567e-05/0.1066, allocations: 4 kB / 484.8 MB, free: 156 kB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 5.13e-06/0.1066, allocations: 0 / 484.8 MB, free: 156 kB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 2.98e-05/0.1066, allocations: 33.69 kB / 484.8 MB, free: 116 kB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000133/0.1068, allocations: 10.19 kB / 484.8 MB, free: 108 kB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001743/0.107, allocations: 77.06 kB / 484.9 MB, free: 4 kB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001965/0.1072, allocations: 0.6807 MB / 485.6 MB, free: 15.3 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 1.389e-05/0.1072, allocations: 0 / 485.6 MB, free: 15.3 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.26e-05/0.1072, allocations: 7.438 kB / 485.6 MB, free: 15.29 MB / 366.1 MB Notification: Performance of SimCode: time 2.1e-07/0.1072, allocations: 0 / 485.6 MB, free: 15.29 MB / 366.1 MB Notification: Performance of Templates: time 0.002936/0.1102, allocations: 1.1 MB / 486.7 MB, free: 14.19 MB / 366.1 MB make -j1 -f ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.Test01RegFun3.makefile (rm -f ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.Test01RegFun3.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.Test01RegFun3.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.Test01RegFun3.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.Test01RegFun3.sim & ./ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.Test01RegFun3 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.Test01RegFun3.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.Test01RegFun3_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Fluid/TestUtilities/Test01RegFun3/Test01RegFun3.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.Test01RegFun3.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches