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.001301/0.001301, allocations: 115.8 kB / 18.4 MB, free: 4.621 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001289/0.001289, allocations: 199.5 kB / 19.34 MB, free: 3.68 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.301/1.301, allocations: 227.4 MB / 247.5 MB, free: 10.35 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1974/0.1974, allocations: 46.09 MB / 344.9 MB, free: 11.48 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001381/0.001381, allocations: 72.45 kB / 419 MB, free: 19 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1069/0.1083, allocations: 62.44 MB / 481.4 MB, free: 4.531 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.Test01RegFun3): time 0.001564/0.1099, allocations: 498.7 kB / 481.9 MB, free: 4.043 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001604/0.1115, allocations: 1.407 MB / 483.3 MB, free: 2.617 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.234e-05/0.1116, allocations: 0 / 483.3 MB, free: 2.617 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.254e-05/0.1116, allocations: 4 kB / 483.3 MB, free: 2.613 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 2.639e-05/0.1116, allocations: 3.938 kB / 483.3 MB, free: 2.609 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000629/0.1122, allocations: 223.8 kB / 483.6 MB, free: 2.395 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 4.752e-05/0.1123, allocations: 11.92 kB / 483.6 MB, free: 2.383 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.365e-05/0.1124, allocations: 8 kB / 483.6 MB, free: 2.375 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.783e-05/0.1124, allocations: 7.984 kB / 483.6 MB, free: 2.367 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.155e-05/0.1124, allocations: 4 kB / 483.6 MB, free: 2.363 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.26e-05/0.1125, allocations: 0 / 483.6 MB, free: 2.363 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003832/0.1128, allocations: 283.5 kB / 483.9 MB, free: 2.086 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.116e-05/0.1129, allocations: 0 / 483.9 MB, free: 2.086 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 1.96e-05/0.1129, allocations: 11.94 kB / 483.9 MB, free: 2.074 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002043/0.1131, allocations: 143.7 kB / 484 MB, free: 1.934 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.128e-06/0.1131, allocations: 0 / 484 MB, free: 1.934 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.242e-06/0.1131, allocations: 0 / 484 MB, free: 1.934 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.559e-06/0.1131, allocations: 0 / 484 MB, free: 1.934 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.0003245/0.1134, allocations: 335.6 kB / 484.3 MB, free: 1.559 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.421e-05/0.1135, allocations: 12.02 kB / 484.4 MB, free: 1.547 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.787e-05/0.1135, allocations: 4.938 kB / 484.4 MB, free: 1.543 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001096/0.1136, allocations: 160.4 kB / 484.5 MB, free: 1.348 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.179e-05/0.1137, allocations: 4.375 kB / 484.5 MB, free: 1.344 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.769e-06/0.1137, allocations: 4.312 kB / 484.5 MB, free: 1.34 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.359e-05/0.1138, allocations: 34.02 kB / 484.6 MB, free: 1.301 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.663e-06/0.1138, allocations: 0 / 484.6 MB, free: 1.301 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.874e-06/0.1138, allocations: 0 / 484.6 MB, free: 1.301 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.548e-06/0.1138, allocations: 0 / 484.6 MB, free: 1.301 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.061e-05/0.1138, allocations: 7.984 kB / 484.6 MB, free: 1.293 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001282/0.1139, allocations: 145.7 kB / 484.7 MB, free: 1.102 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.755e-05/0.114, allocations: 22.61 kB / 484.7 MB, free: 1.07 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.534e-05/0.114, allocations: 8.797 kB / 484.7 MB, free: 1.059 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.504e-06/0.114, allocations: 0 / 484.7 MB, free: 1.059 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.304e-05/0.1141, allocations: 42.55 kB / 484.8 MB, free: 1.008 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 8.32e-07/0.1141, allocations: 0 / 484.8 MB, free: 1.008 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.000113/0.1142, allocations: 37.61 kB / 484.8 MB, free: 0.9648 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.198e-05/0.1142, allocations: 59.34 kB / 484.9 MB, free: 0.8945 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.556e-05/0.1143, allocations: 93.98 kB / 485 MB, free: 0.793 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.112e-05/0.1143, allocations: 25.7 kB / 485 MB, free: 0.7617 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.711e-05/0.1143, allocations: 80.14 kB / 485.1 MB, free: 0.6797 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.033e-05/0.1144, allocations: 11.98 kB / 485.1 MB, free: 0.668 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.307e-05/0.1144, allocations: 9.719 kB / 485.1 MB, free: 0.6523 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 8.982e-05/0.1145, allocations: 310.8 kB / 485.4 MB, free: 348 kB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.056e-05/0.1145, allocations: 11.88 kB / 485.4 MB, free: 336 kB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.723e-06/0.1145, allocations: 128 / 485.4 MB, free: 336 kB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.169e-05/0.1145, allocations: 12.92 kB / 485.4 MB, free: 320 kB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.513e-06/0.1145, allocations: 0 / 485.4 MB, free: 320 kB / 350.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 5.179e-05/0.1146, allocations: 41.69 kB / 485.5 MB, free: 272 kB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.168e-05/0.1146, allocations: 7.938 kB / 485.5 MB, free: 264 kB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.935e-06/0.1146, allocations: 0 / 485.5 MB, free: 264 kB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.958e-06/0.1146, allocations: 0 / 485.5 MB, free: 264 kB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.004e-05/0.1147, allocations: 4 kB / 485.5 MB, free: 260 kB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.649e-06/0.1147, allocations: 0 / 485.5 MB, free: 260 kB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.308e-05/0.1147, allocations: 0 / 485.5 MB, free: 260 kB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.583e-06/0.1147, allocations: 7.969 kB / 485.5 MB, free: 252 kB / 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.909e-05/0.1148, allocations: 105.8 kB / 485.6 MB, free: 136 kB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.698e-06/0.1148, allocations: 7.938 kB / 485.6 MB, free: 128 kB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.978e-05/0.1149, allocations: 52.75 kB / 485.6 MB, free: 72 kB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.823e-06/0.1149, allocations: 0 / 485.6 MB, free: 72 kB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.006e-06/0.1149, allocations: 4.031 kB / 485.7 MB, free: 68 kB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.124e-06/0.1149, allocations: 0 / 485.7 MB, free: 68 kB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.499e-05/0.115, allocations: 149.7 kB / 485.8 MB, free: 15.87 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.709e-06/0.1151, allocations: 0 / 485.8 MB, free: 15.87 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.41e-07/0.1151, allocations: 0 / 485.8 MB, free: 15.87 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.176e-06/0.1151, allocations: 3.938 kB / 485.8 MB, free: 15.87 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.703e-06/0.1151, allocations: 0 / 485.8 MB, free: 15.87 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.354e-06/0.1151, allocations: 4 kB / 485.8 MB, free: 15.86 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.31e-07/0.1151, allocations: 0 / 485.8 MB, free: 15.86 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.411e-05/0.1152, allocations: 72.97 kB / 485.9 MB, free: 15.77 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.468e-05/0.1152, allocations: 81.05 kB / 486 MB, free: 15.68 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.257e-06/0.1152, allocations: 0 / 486 MB, free: 15.68 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.057e-05/0.1153, allocations: 0 / 486 MB, free: 15.68 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.302e-05/0.1153, allocations: 7.938 kB / 486 MB, free: 15.67 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.007e-06/0.1153, allocations: 0 / 486 MB, free: 15.67 MB / 366.1 MB Notification: Performance of sorting global known variables: time 2.77e-05/0.1153, allocations: 79.27 kB / 486 MB, free: 15.59 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1154, allocations: 4 kB / 486 MB, free: 15.59 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0002226/0.1156, allocations: 40.12 kB / 486.1 MB, free: 15.55 MB / 366.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.0002401/0.1158, allocations: 143.2 kB / 486.2 MB, free: 15.39 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 6.852e-05/0.1159, allocations: 4 kB / 486.2 MB, free: 15.39 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.546e-06/0.1159, allocations: 0 / 486.2 MB, free: 15.39 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 3.11e-05/0.116, allocations: 33.64 kB / 486.3 MB, free: 15.35 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001375/0.1161, allocations: 6.25 kB / 486.3 MB, free: 15.35 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001871/0.1163, allocations: 88.92 kB / 486.4 MB, free: 15.23 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002326/0.1165, allocations: 0.673 MB / 487 MB, free: 14.54 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 1.406e-05/0.1166, allocations: 7.938 kB / 487 MB, free: 14.53 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.382e-05/0.1166, allocations: 7.438 kB / 487 MB, free: 14.52 MB / 366.1 MB Notification: Performance of SimCode: time 2.6e-07/0.1166, allocations: 0 / 487 MB, free: 14.52 MB / 366.1 MB Notification: Performance of Templates: time 0.002944/0.1195, allocations: 1.102 MB / 488.1 MB, free: 13.42 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 -s cvode -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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Fluid/TestUtilities/Test01RegFun3/Test01RegFun3.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.Test01RegFun3.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches