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.001363/0.001363, 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.001665/0.001665, allocations: 206.4 kB / 18.58 MB, free: 4.582 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.336/1.336, allocations: 227.4 MB / 246.8 MB, free: 10.61 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2539/0.2539, allocations: 46.12 MB / 344.1 MB, free: 11.59 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001461/0.001461, allocations: 78 kB / 417.6 MB, free: 19.75 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09996/0.1014, allocations: 62.45 MB / 480 MB, free: 5.289 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.Test01RegFun3): time 0.001767/0.1032, allocations: 491.6 kB / 480.5 MB, free: 4.805 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001846/0.1051, allocations: 1.407 MB / 481.9 MB, free: 3.379 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.248e-05/0.1052, allocations: 0 / 481.9 MB, free: 3.379 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.57e-05/0.1052, allocations: 0 / 481.9 MB, free: 3.379 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 2.785e-05/0.1052, allocations: 3.938 kB / 481.9 MB, free: 3.375 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000758/0.106, allocations: 223.2 kB / 482.1 MB, free: 3.16 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 4.466e-05/0.106, allocations: 15.98 kB / 482.1 MB, free: 3.145 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.556e-05/0.1061, allocations: 7.984 kB / 482.1 MB, free: 3.137 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.54e-05/0.1061, allocations: 0 / 482.1 MB, free: 3.137 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.59e-05/0.1062, allocations: 7.984 kB / 482.2 MB, free: 3.129 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.137e-05/0.1062, allocations: 0 / 482.2 MB, free: 3.129 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004269/0.1066, allocations: 275.6 kB / 482.4 MB, free: 2.859 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.592e-05/0.1066, allocations: 7.984 kB / 482.4 MB, free: 2.852 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.151e-05/0.1067, allocations: 3.938 kB / 482.4 MB, free: 2.848 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002377/0.1069, allocations: 143.7 kB / 482.6 MB, free: 2.707 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.707e-06/0.1069, allocations: 0 / 482.6 MB, free: 2.707 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.563e-06/0.1069, allocations: 4 kB / 482.6 MB, free: 2.703 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.484e-06/0.1069, allocations: 0 / 482.6 MB, free: 2.703 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.0003551/0.1073, allocations: 335.6 kB / 482.9 MB, free: 2.328 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.468e-05/0.1073, allocations: 8.031 kB / 482.9 MB, free: 2.32 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.279e-05/0.1074, allocations: 8.938 kB / 482.9 MB, free: 2.312 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.974e-05/0.1075, allocations: 164.4 kB / 483.1 MB, free: 2.113 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.298e-06/0.1075, allocations: 384 / 483.1 MB, free: 2.113 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.022e-05/0.1075, allocations: 384 / 483.1 MB, free: 2.113 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000107/0.1076, allocations: 34.02 kB / 483.1 MB, free: 2.074 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.562e-06/0.1076, allocations: 7.938 kB / 483.1 MB, free: 2.066 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.387e-06/0.1077, allocations: 0 / 483.1 MB, free: 2.066 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.609e-06/0.1077, allocations: 3.938 kB / 483.1 MB, free: 2.062 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.174e-05/0.1077, allocations: 4 kB / 483.1 MB, free: 2.059 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001423/0.1078, allocations: 149.7 kB / 483.3 MB, free: 1.863 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.956e-05/0.1079, allocations: 18.61 kB / 483.3 MB, free: 1.836 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.913e-05/0.1079, allocations: 4.859 kB / 483.3 MB, free: 1.828 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.909e-06/0.1079, allocations: 7.938 kB / 483.3 MB, free: 1.82 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.663e-05/0.108, allocations: 42.56 kB / 483.4 MB, free: 1.77 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 2.525e-06/0.108, allocations: 0 / 483.4 MB, free: 1.77 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001229/0.1081, allocations: 41.53 kB / 483.4 MB, free: 1.723 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.051e-05/0.1081, allocations: 55.41 kB / 483.4 MB, free: 1.656 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.046e-05/0.1082, allocations: 89.86 kB / 483.5 MB, free: 1.559 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.212e-05/0.1082, allocations: 25.7 kB / 483.6 MB, free: 1.527 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.799e-05/0.1083, allocations: 88.39 kB / 483.6 MB, free: 1.438 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.197e-05/0.1083, allocations: 4 kB / 483.6 MB, free: 1.434 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.556e-05/0.1083, allocations: 9.719 kB / 483.7 MB, free: 1.418 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000104/0.1084, allocations: 314.8 kB / 484 MB, free: 1.102 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.463e-05/0.1085, allocations: 4 kB / 484 MB, free: 1.098 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.338e-06/0.1085, allocations: 0 / 484 MB, free: 1.098 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.806e-05/0.1085, allocations: 12.8 kB / 484 MB, free: 1.082 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.343e-06/0.1085, allocations: 0 / 484 MB, free: 1.082 MB / 350.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.122e-05/0.1086, allocations: 41.77 kB / 484 MB, free: 1.035 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.384e-05/0.1086, allocations: 7.938 kB / 484 MB, free: 1.027 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.058e-06/0.1086, allocations: 0 / 484 MB, free: 1.027 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.399e-05/0.1086, allocations: 3.984 kB / 484 MB, free: 1.023 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.849e-05/0.1087, allocations: 4 kB / 484 MB, free: 1.02 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.89e-06/0.1087, allocations: 0 / 484 MB, free: 1.02 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.321e-05/0.1087, allocations: 288 / 484 MB, free: 1.02 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.921e-06/0.1087, allocations: 0 / 484 MB, free: 1.02 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 6.998e-05/0.1088, allocations: 105.8 kB / 484.1 MB, free: 0.9062 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.166e-05/0.1088, allocations: 11.97 kB / 484.2 MB, free: 0.8945 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001115/0.1089, allocations: 52.69 kB / 484.2 MB, free: 0.8398 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.334e-06/0.1089, allocations: 0 / 484.2 MB, free: 0.8398 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.737e-06/0.109, allocations: 0 / 484.2 MB, free: 0.8398 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.134e-06/0.109, allocations: 0 / 484.2 MB, free: 0.8398 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.148e-05/0.1091, allocations: 149.7 kB / 484.4 MB, free: 0.6445 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.16e-06/0.1091, allocations: 0 / 484.4 MB, free: 0.6445 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.91e-07/0.1091, allocations: 4.031 kB / 484.4 MB, free: 0.6406 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.548e-06/0.1091, allocations: 7.938 kB / 484.4 MB, free: 0.6328 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.069e-06/0.1091, allocations: 0 / 484.4 MB, free: 0.6328 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.473e-06/0.1091, allocations: 0 / 484.4 MB, free: 0.6328 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.014e-06/0.1091, allocations: 4 kB / 484.4 MB, free: 0.6289 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.17e-05/0.1092, allocations: 72.91 kB / 484.4 MB, free: 0.5391 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.889e-05/0.1092, allocations: 84.98 kB / 484.5 MB, free: 448 kB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.111e-05/0.1092, allocations: 32 / 484.5 MB, free: 448 kB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.278e-05/0.1093, allocations: 4 kB / 484.5 MB, free: 444 kB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.326e-05/0.1094, allocations: 4 kB / 484.5 MB, free: 440 kB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.358e-06/0.1094, allocations: 0 / 484.5 MB, free: 440 kB / 350.1 MB Notification: Performance of sorting global known variables: time 2.976e-05/0.1094, allocations: 75.28 kB / 484.6 MB, free: 364 kB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1094, allocations: 0 / 484.6 MB, free: 364 kB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002512/0.1097, allocations: 47.98 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.0002649/0.1099, allocations: 135.2 kB / 484.8 MB, free: 164 kB / 350.1 MB Notification: Performance of simCode: created initialization part: time 7.364e-05/0.11, allocations: 12.08 kB / 484.8 MB, free: 152 kB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.823e-06/0.11, allocations: 0 / 484.8 MB, free: 152 kB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 3.424e-05/0.1101, allocations: 33.7 kB / 484.8 MB, free: 112 kB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001374/0.1102, allocations: 2.656 kB / 484.8 MB, free: 112 kB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001965/0.1104, allocations: 84.88 kB / 484.9 MB, free: 0 / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002347/0.1107, allocations: 0.6729 MB / 485.6 MB, free: 15.3 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 1.961e-05/0.1107, allocations: 12.11 kB / 485.6 MB, free: 15.29 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.486e-05/0.1107, allocations: 7.438 kB / 485.6 MB, free: 15.28 MB / 366.1 MB Notification: Performance of SimCode: time 2.3e-07/0.1107, allocations: 0 / 485.6 MB, free: 15.28 MB / 366.1 MB Notification: Performance of Templates: time 0.003376/0.1141, allocations: 1.109 MB / 486.7 MB, free: 14.18 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