Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.Test02RegFun3.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.Test02RegFun3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|x|a|b",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.Test02RegFun3") translateModel(ModelicaTest.Fluid.TestUtilities.Test02RegFun3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|x|a|b",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.Test02RegFun3") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001153/0.001153, allocations: 115.9 kB / 18.41 MB, free: 4.711 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001171/0.001171, allocations: 199.5 kB / 19.36 MB, free: 3.77 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.315/1.315, allocations: 227.4 MB / 247.5 MB, free: 10.4 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1975/0.1975, allocations: 46.11 MB / 344.9 MB, free: 11.48 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001301/0.001301, allocations: 72.17 kB / 419 MB, free: 19 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1071/0.1084, allocations: 62.45 MB / 481.5 MB, free: 4.512 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.Test02RegFun3): time 0.001505/0.11, allocations: 486.8 kB / 481.9 MB, free: 4.035 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001514/0.1115, allocations: 1.415 MB / 483.3 MB, free: 2.605 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.967e-05/0.1115, allocations: 0 / 483.3 MB, free: 2.605 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.042e-05/0.1115, allocations: 0 / 483.3 MB, free: 2.605 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 2.48e-05/0.1116, allocations: 0 / 483.3 MB, free: 2.605 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00063/0.1122, allocations: 223.3 kB / 483.6 MB, free: 2.391 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 4.153e-05/0.1123, allocations: 11.98 kB / 483.6 MB, free: 2.379 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.667e-05/0.1123, allocations: 8 kB / 483.6 MB, free: 2.371 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.524e-05/0.1123, allocations: 0 / 483.6 MB, free: 2.371 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.289e-05/0.1124, allocations: 11.98 kB / 483.6 MB, free: 2.359 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.054e-05/0.1124, allocations: 0 / 483.6 MB, free: 2.359 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003859/0.1128, allocations: 283.6 kB / 483.9 MB, free: 2.082 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.194e-05/0.1128, allocations: 3.938 kB / 483.9 MB, free: 2.078 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 1.606e-05/0.1128, allocations: 3.984 kB / 483.9 MB, free: 2.074 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001941/0.113, allocations: 143.7 kB / 484 MB, free: 1.934 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.925e-06/0.113, allocations: 0 / 484 MB, free: 1.934 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.152e-06/0.113, allocations: 0 / 484 MB, free: 1.934 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.667e-06/0.113, 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: 3 * Number of variables: 3 Notification: Performance of Generate backend data structure: time 0.0002972/0.1133, allocations: 339.6 kB / 484.4 MB, free: 1.555 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.995e-05/0.1134, allocations: 12.03 kB / 484.4 MB, free: 1.543 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.546e-05/0.1134, allocations: 0.9375 kB / 484.4 MB, free: 1.543 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.193e-05/0.1135, allocations: 164.4 kB / 484.5 MB, free: 1.344 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.554e-06/0.1135, allocations: 384 / 484.5 MB, free: 1.344 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.157e-05/0.1135, allocations: 8.312 kB / 484.5 MB, free: 1.336 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.957e-05/0.1136, allocations: 46 kB / 484.6 MB, free: 1.285 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.871e-06/0.1136, allocations: 7.875 kB / 484.6 MB, free: 1.277 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.215e-06/0.1137, allocations: 0 / 484.6 MB, free: 1.277 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.757e-06/0.1137, allocations: 0 / 484.6 MB, free: 1.277 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.926e-05/0.1137, allocations: 15.98 kB / 484.6 MB, free: 1.262 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002823/0.114, allocations: 236.9 kB / 484.8 MB, free: 0.9805 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.033e-05/0.114, allocations: 18.58 kB / 484.9 MB, free: 0.9531 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.556e-05/0.1141, allocations: 4.859 kB / 484.9 MB, free: 0.9453 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.151e-05/0.1141, allocations: 8.031 kB / 484.9 MB, free: 0.9375 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.895e-05/0.1141, allocations: 38.5 kB / 484.9 MB, free: 0.8906 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 1.012e-06/0.1141, allocations: 0 / 484.9 MB, free: 0.8906 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001144/0.1142, allocations: 33.77 kB / 484.9 MB, free: 0.8516 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.91e-05/0.1143, allocations: 51.41 kB / 485 MB, free: 0.7891 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.836e-05/0.1143, allocations: 101.8 kB / 485.1 MB, free: 0.6797 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.196e-05/0.1143, allocations: 29.69 kB / 485.1 MB, free: 0.6445 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.75e-05/0.1144, allocations: 84.08 kB / 485.2 MB, free: 0.5586 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.711e-06/0.1144, allocations: 3.906 kB / 485.2 MB, free: 0.5547 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.514e-05/0.1144, allocations: 17.97 kB / 485.2 MB, free: 0.5312 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 8.557e-05/0.1145, allocations: 322.8 kB / 485.5 MB, free: 212 kB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.458e-06/0.1145, allocations: 0 / 485.5 MB, free: 212 kB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.255e-05/0.1146, allocations: 26.5 kB / 485.6 MB, free: 176 kB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.157e-05/0.1146, allocations: 26.58 kB / 485.6 MB, free: 140 kB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.583e-06/0.1146, allocations: 0 / 485.6 MB, free: 140 kB / 350.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 6.897e-05/0.1147, allocations: 53.62 kB / 485.6 MB, free: 80 kB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.598e-06/0.1147, allocations: 4 kB / 485.6 MB, free: 76 kB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.567e-06/0.1147, allocations: 0 / 485.6 MB, free: 76 kB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.768e-06/0.1147, allocations: 0 / 485.6 MB, free: 76 kB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.115e-05/0.1148, allocations: 8 kB / 485.7 MB, free: 68 kB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.007e-06/0.1148, allocations: 3.938 kB / 485.7 MB, free: 64 kB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.516e-05/0.1148, allocations: 0 / 485.7 MB, free: 64 kB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.592e-06/0.1148, allocations: 8.094 kB / 485.7 MB, free: 56 kB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * 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 (3): * Single equations (assignments): 3 * 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.45e-05/0.1149, allocations: 109.8 kB / 485.8 MB, free: 15.94 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.2e-05/0.1149, allocations: 0 / 485.8 MB, free: 15.94 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.735e-05/0.115, allocations: 44.81 kB / 485.8 MB, free: 15.89 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.326e-06/0.115, allocations: 4 kB / 485.8 MB, free: 15.89 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.686e-06/0.115, allocations: 3.938 kB / 485.8 MB, free: 15.88 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.074e-06/0.115, allocations: 4.031 kB / 485.8 MB, free: 15.88 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001366/0.1152, allocations: 149.6 kB / 486 MB, free: 15.68 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.62e-06/0.1152, allocations: 4 kB / 486 MB, free: 15.68 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.81e-07/0.1152, allocations: 96 / 486 MB, free: 15.68 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.597e-06/0.1152, allocations: 3.984 kB / 486 MB, free: 15.68 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.969e-06/0.1152, allocations: 3.938 kB / 486 MB, free: 15.67 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.02e-07/0.1152, allocations: 0 / 486 MB, free: 15.67 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.774e-06/0.1152, allocations: 7.938 kB / 486 MB, free: 15.66 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.529e-05/0.1153, allocations: 143.4 kB / 486.1 MB, free: 15.51 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.956e-05/0.1153, allocations: 77.11 kB / 486.2 MB, free: 15.41 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.678e-06/0.1154, allocations: 4 kB / 486.2 MB, free: 15.41 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.13e-05/0.1154, allocations: 0 / 486.2 MB, free: 15.41 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.248e-05/0.1154, allocations: 0 / 486.2 MB, free: 15.41 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.617e-06/0.1154, allocations: 0 / 486.2 MB, free: 15.41 MB / 366.1 MB Notification: Performance of sorting global known variables: time 3.258e-05/0.1155, allocations: 83.27 kB / 486.3 MB, free: 15.33 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.1155, allocations: 0 / 486.3 MB, free: 15.33 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0002601/0.1157, allocations: 40 kB / 486.3 MB, free: 15.29 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.0002333/0.116, allocations: 135.3 kB / 486.5 MB, free: 15.14 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 6.697e-05/0.1161, allocations: 19.92 kB / 486.5 MB, free: 15.12 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.703e-06/0.1161, allocations: 0 / 486.5 MB, free: 15.12 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 2.76e-05/0.1161, allocations: 29.7 kB / 486.5 MB, free: 15.09 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001968/0.1163, allocations: 3.938 kB / 486.5 MB, free: 15.09 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001685/0.1165, allocations: 92.92 kB / 486.6 MB, free: 14.97 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000194/0.1167, allocations: 0.677 MB / 487.3 MB, free: 14.27 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 1.886e-05/0.1167, allocations: 0 / 487.3 MB, free: 14.27 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.171e-05/0.1167, allocations: 7.438 kB / 487.3 MB, free: 14.26 MB / 366.1 MB Notification: Performance of SimCode: time 2.31e-07/0.1167, allocations: 0 / 487.3 MB, free: 14.26 MB / 366.1 MB Notification: Performance of Templates: time 0.002792/0.1195, allocations: 1.098 MB / 488.4 MB, free: 13.17 MB / 366.1 MB make -j1 -f ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.Test02RegFun3.makefile (rm -f ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.Test02RegFun3.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.Test02RegFun3.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.Test02RegFun3.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.Test02RegFun3.sim & ./ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.Test02RegFun3 -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.Test02RegFun3.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.Test02RegFun3_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Fluid/TestUtilities/Test02RegFun3/Test02RegFun3.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.Test02RegFun3.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches