Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.Test02RegFun3.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(ModelicaTest.Fluid.TestUtilities.Test02RegFun3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|x|a|b",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.Test02RegFun3") translateModel(ModelicaTest.Fluid.TestUtilities.Test02RegFun3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|x|a|b",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.Test02RegFun3") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001083/0.001083, allocations: 108.2 kB / 18.4 MB, free: 4.699 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001122/0.001122, allocations: 187 kB / 19.34 MB, free: 3.766 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.295/1.295, allocations: 222.9 MB / 243 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.1959/0.1959, allocations: 44.17 MB / 337.4 MB, free: 2.699 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001193/0.001193, allocations: 56.53 kB / 409.9 MB, free: 26.54 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09362/0.09483, allocations: 60.83 MB / 470.7 MB, free: 13.65 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.Test02RegFun3): time 0.00173/0.09659, allocations: 494.4 kB / 471.2 MB, free: 13.17 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00167/0.09829, allocations: 1.356 MB / 472.5 MB, free: 11.79 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.257e-05/0.09833, allocations: 0 / 472.5 MB, free: 11.79 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.597e-05/0.09835, allocations: 0 / 472.5 MB, free: 11.79 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 2.634e-05/0.09839, allocations: 3.938 kB / 472.6 MB, free: 11.79 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006908/0.09908, allocations: 218.2 kB / 472.8 MB, free: 11.58 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 5.104e-05/0.09915, allocations: 7.984 kB / 472.8 MB, free: 11.57 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.065e-05/0.09919, allocations: 0 / 472.8 MB, free: 11.57 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.051e-05/0.09922, allocations: 11.94 kB / 472.8 MB, free: 11.56 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.297e-05/0.09927, allocations: 3.984 kB / 472.8 MB, free: 11.55 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.238e-05/0.09928, allocations: 0 / 472.8 MB, free: 11.55 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004067/0.0997, allocations: 275.6 kB / 473.1 MB, free: 11.29 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.371e-05/0.09972, allocations: 3.984 kB / 473.1 MB, free: 11.28 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.158e-05/0.09975, allocations: 7.984 kB / 473.1 MB, free: 11.27 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002081/0.09996, allocations: 139.7 kB / 473.2 MB, free: 11.14 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.847e-06/0.09997, allocations: 0 / 473.2 MB, free: 11.14 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.072e-06/0.09998, allocations: 0 / 473.2 MB, free: 11.14 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.353e-06/0.09999, allocations: 0 / 473.2 MB, free: 11.14 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.0003134/0.1003, allocations: 342.3 kB / 473.5 MB, free: 10.76 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.308e-05/0.1004, allocations: 8.031 kB / 473.5 MB, free: 10.75 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.836e-05/0.1004, allocations: 4.875 kB / 473.6 MB, free: 10.75 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.497e-05/0.1005, allocations: 164.4 kB / 473.7 MB, free: 10.55 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.094e-05/0.1005, allocations: 4.375 kB / 473.7 MB, free: 10.54 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.474e-06/0.1005, allocations: 384 / 473.7 MB, free: 10.54 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.523e-05/0.1006, allocations: 41.95 kB / 473.8 MB, free: 10.5 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.205e-06/0.1006, allocations: 3.984 kB / 473.8 MB, free: 10.49 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.476e-06/0.1006, allocations: 0 / 473.8 MB, free: 10.49 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.117e-06/0.1007, allocations: 8 kB / 473.8 MB, free: 10.48 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.924e-05/0.1007, allocations: 4 kB / 473.8 MB, free: 10.48 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000302/0.101, allocations: 248.9 kB / 474 MB, free: 10.19 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.093e-05/0.101, allocations: 18.52 kB / 474 MB, free: 10.16 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.375e-05/0.1011, allocations: 4.859 kB / 474 MB, free: 10.15 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.385e-06/0.1011, allocations: 4.062 kB / 474 MB, free: 10.15 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.189e-05/0.1011, allocations: 34.56 kB / 474.1 MB, free: 10.11 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 1.042e-06/0.1011, allocations: 0 / 474.1 MB, free: 10.11 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.000128/0.1012, allocations: 29.7 kB / 474.1 MB, free: 10.07 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.103e-05/0.1013, allocations: 55.41 kB / 474.2 MB, free: 10 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.353e-05/0.1014, allocations: 101.8 kB / 474.3 MB, free: 9.895 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.144e-05/0.1014, allocations: 25.7 kB / 474.3 MB, free: 9.863 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.542e-05/0.1014, allocations: 88.33 kB / 474.4 MB, free: 9.773 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.081e-06/0.1014, allocations: 7.906 kB / 474.4 MB, free: 9.766 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.154e-05/0.1015, allocations: 17.72 kB / 474.4 MB, free: 9.742 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001003/0.1016, allocations: 322.7 kB / 474.7 MB, free: 9.418 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.079e-05/0.1016, allocations: 0 / 474.7 MB, free: 9.418 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.401e-05/0.1016, allocations: 22.58 kB / 474.7 MB, free: 9.387 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.191e-05/0.1016, allocations: 30.52 kB / 474.8 MB, free: 9.348 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.633e-06/0.1017, allocations: 0 / 474.8 MB, free: 9.348 MB / 350.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 6.561e-05/0.1017, allocations: 49.62 kB / 474.8 MB, free: 9.293 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.279e-05/0.1017, allocations: 4 kB / 474.8 MB, free: 9.289 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.26e-06/0.1018, allocations: 7.938 kB / 474.8 MB, free: 9.281 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.046e-05/0.1018, allocations: 0 / 474.8 MB, free: 9.281 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.381e-05/0.1018, allocations: 4 kB / 474.8 MB, free: 9.277 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.73e-06/0.1018, allocations: 0 / 474.8 MB, free: 9.277 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.655e-05/0.1019, allocations: 8.094 kB / 474.8 MB, free: 9.27 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.333e-06/0.1019, allocations: 3.984 kB / 474.8 MB, free: 9.266 MB / 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.908e-05/0.1019, allocations: 117.8 kB / 475 MB, free: 9.141 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.196e-05/0.102, allocations: 0 / 475 MB, free: 9.141 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001053/0.1021, allocations: 48.8 kB / 475 MB, free: 9.086 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.783e-06/0.1021, allocations: 0 / 475 MB, free: 9.086 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.06e-06/0.1021, allocations: 8.016 kB / 475 MB, free: 9.078 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.843e-06/0.1021, allocations: 0 / 475 MB, free: 9.078 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001367/0.1022, allocations: 157.6 kB / 475.2 MB, free: 8.875 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.157e-06/0.1023, allocations: 3.938 kB / 475.2 MB, free: 8.871 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.51e-07/0.1023, allocations: 0 / 475.2 MB, free: 8.871 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.222e-06/0.1023, allocations: 0 / 475.2 MB, free: 8.871 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.725e-06/0.1023, allocations: 4 kB / 475.2 MB, free: 8.867 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.62e-07/0.1023, allocations: 0 / 475.2 MB, free: 8.867 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.025e-06/0.1023, allocations: 3.984 kB / 475.2 MB, free: 8.863 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.621e-05/0.1024, allocations: 135.4 kB / 475.3 MB, free: 8.715 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.628e-05/0.1024, allocations: 77.11 kB / 475.4 MB, free: 8.621 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.069e-05/0.1025, allocations: 0 / 475.4 MB, free: 8.621 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.411e-05/0.1025, allocations: 4 kB / 475.4 MB, free: 8.617 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.755e-05/0.1025, allocations: 7.984 kB / 475.4 MB, free: 8.609 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.058e-06/0.1025, allocations: 0 / 475.4 MB, free: 8.609 MB / 350.1 MB Notification: Performance of sorting global known variables: time 3.104e-05/0.1026, allocations: 75.28 kB / 475.5 MB, free: 8.535 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.613e-06/0.1026, allocations: 0 / 475.5 MB, free: 8.535 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002725/0.1029, allocations: 48.06 kB / 475.5 MB, free: 8.488 MB / 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.0002383/0.1031, allocations: 135.2 kB / 475.6 MB, free: 8.348 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 7.085e-05/0.1032, allocations: 8 kB / 475.7 MB, free: 8.34 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.318e-06/0.1032, allocations: 0 / 475.7 MB, free: 8.34 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 2.877e-05/0.1032, allocations: 33.64 kB / 475.7 MB, free: 8.301 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002029/0.1034, allocations: 7.938 kB / 475.7 MB, free: 8.293 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002073/0.1037, allocations: 93.11 kB / 475.8 MB, free: 8.176 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000215/0.1039, allocations: 0.6768 MB / 476.5 MB, free: 7.473 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 1.909e-05/0.1039, allocations: 0 / 476.5 MB, free: 7.473 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.37e-05/0.1039, allocations: 11.44 kB / 476.5 MB, free: 7.461 MB / 350.1 MB Notification: Performance of SimCode: time 2.2e-07/0.1039, allocations: 0 / 476.5 MB, free: 7.461 MB / 350.1 MB Notification: Performance of Templates: time 0.002892/0.1068, allocations: 1.069 MB / 477.5 MB, free: 6.395 MB / 350.1 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.Test02RegFun3.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.Test02RegFun3.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.Test02RegFun3.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.Test02RegFun3.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.Test02RegFun3.sim & ./ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.Test02RegFun3 -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.Test02RegFun3.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_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_4.0.0_ModelicaTest.Fluid.TestUtilities.Test02RegFun3.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches