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.001124/0.001124, 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.001139/0.001139, 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.262/1.262, allocations: 227.4 MB / 247.5 MB, free: 10.42 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1942/0.1942, allocations: 46.1 MB / 344.9 MB, free: 11.5 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001305/0.001305, allocations: 75.88 kB / 419 MB, free: 19.02 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09857/0.09989, allocations: 62.44 MB / 481.4 MB, free: 4.535 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.Test02RegFun3): time 0.001583/0.1015, allocations: 494.7 kB / 481.9 MB, free: 4.051 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001645/0.1032, allocations: 1.407 MB / 483.3 MB, free: 2.625 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2e-05/0.1032, allocations: 0 / 483.3 MB, free: 2.625 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.243e-05/0.1032, allocations: 0 / 483.3 MB, free: 2.625 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 2.053e-05/0.1033, allocations: 4 kB / 483.3 MB, free: 2.621 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006551/0.1039, allocations: 235.2 kB / 483.6 MB, free: 2.395 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 4.052e-05/0.104, allocations: 7.938 kB / 483.6 MB, free: 2.387 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.721e-05/0.104, allocations: 4 kB / 483.6 MB, free: 2.383 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.552e-05/0.104, allocations: 4 kB / 483.6 MB, free: 2.379 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.953e-05/0.1041, allocations: 3.984 kB / 483.6 MB, free: 2.375 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.041e-05/0.1041, allocations: 4 kB / 483.6 MB, free: 2.371 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004004/0.1045, allocations: 283.6 kB / 483.9 MB, free: 2.094 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.108e-05/0.1045, allocations: 0 / 483.9 MB, free: 2.094 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 1.874e-05/0.1046, allocations: 3.938 kB / 483.9 MB, free: 2.09 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000204/0.1048, allocations: 155.7 kB / 484 MB, free: 1.938 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.516e-06/0.1048, allocations: 0 / 484 MB, free: 1.938 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.212e-06/0.1048, allocations: 0 / 484 MB, free: 1.938 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.018e-06/0.1048, allocations: 0 / 484 MB, free: 1.938 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.0002974/0.1051, allocations: 331.6 kB / 484.3 MB, free: 1.566 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.931e-05/0.1051, allocations: 8.031 kB / 484.4 MB, free: 1.559 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.183e-05/0.1052, allocations: 4.938 kB / 484.4 MB, free: 1.555 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.036e-05/0.1052, allocations: 164.4 kB / 484.5 MB, free: 1.355 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.638e-06/0.1053, allocations: 4.375 kB / 484.5 MB, free: 1.352 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.566e-06/0.1053, allocations: 8.359 kB / 484.5 MB, free: 1.344 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.843e-05/0.1054, allocations: 38 kB / 484.6 MB, free: 1.301 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.771e-06/0.1054, allocations: 4 kB / 484.6 MB, free: 1.297 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.144e-05/0.1054, allocations: 4 kB / 484.6 MB, free: 1.293 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.757e-06/0.1054, allocations: 0 / 484.6 MB, free: 1.293 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.898e-05/0.1055, allocations: 7.938 kB / 484.6 MB, free: 1.285 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003049/0.1058, allocations: 240.9 kB / 484.8 MB, free: 1 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.453e-05/0.1058, allocations: 22.58 kB / 484.8 MB, free: 0.9688 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.452e-05/0.1058, allocations: 12.86 kB / 484.9 MB, free: 0.9531 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.374e-06/0.1059, allocations: 0 / 484.9 MB, free: 0.9531 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.143e-05/0.1059, allocations: 34.55 kB / 484.9 MB, free: 0.9102 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 2.204e-06/0.1059, allocations: 0 / 484.9 MB, free: 0.9102 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001163/0.106, allocations: 41.58 kB / 484.9 MB, free: 0.8633 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.603e-05/0.106, allocations: 51.41 kB / 485 MB, free: 0.8008 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.809e-05/0.1061, allocations: 105.9 kB / 485.1 MB, free: 0.6875 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.237e-05/0.1061, allocations: 25.7 kB / 485.1 MB, free: 0.6562 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.177e-05/0.1062, allocations: 88.06 kB / 485.2 MB, free: 0.5664 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.72e-06/0.1062, allocations: 3.906 kB / 485.2 MB, free: 0.5625 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.784e-05/0.1062, allocations: 17.72 kB / 485.2 MB, free: 0.5391 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 8.983e-05/0.1063, allocations: 314.8 kB / 485.5 MB, free: 228 kB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.095e-05/0.1064, allocations: 4 kB / 485.5 MB, free: 224 kB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.054e-05/0.1064, allocations: 22.69 kB / 485.5 MB, free: 192 kB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.193e-05/0.1064, allocations: 30.52 kB / 485.6 MB, free: 152 kB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.482e-06/0.1064, allocations: 0 / 485.6 MB, free: 152 kB / 350.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 6.255e-05/0.1065, allocations: 45.64 kB / 485.6 MB, free: 100 kB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.834e-05/0.1065, allocations: 11.98 kB / 485.6 MB, free: 88 kB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.666e-06/0.1065, allocations: 4.094 kB / 485.6 MB, free: 84 kB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.458e-06/0.1065, allocations: 0 / 485.6 MB, free: 84 kB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.074e-05/0.1066, allocations: 4 kB / 485.6 MB, free: 80 kB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.831e-06/0.1066, allocations: 4 kB / 485.6 MB, free: 76 kB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.456e-05/0.1066, allocations: 0 / 485.6 MB, free: 76 kB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.08e-06/0.1066, allocations: 0 / 485.6 MB, free: 76 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.867e-05/0.1067, allocations: 117.7 kB / 485.8 MB, free: 15.95 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.181e-05/0.1067, allocations: 0 / 485.8 MB, free: 15.95 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.771e-05/0.1068, allocations: 48.81 kB / 485.8 MB, free: 15.9 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.894e-06/0.1068, allocations: 0 / 485.8 MB, free: 15.9 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.865e-06/0.1068, allocations: 0 / 485.8 MB, free: 15.9 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.774e-06/0.1068, allocations: 0 / 485.8 MB, free: 15.9 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001292/0.107, allocations: 157.6 kB / 486 MB, free: 15.7 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.927e-06/0.107, allocations: 0 / 486 MB, free: 15.7 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.51e-07/0.107, allocations: 0 / 486 MB, free: 15.7 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.242e-06/0.107, allocations: 0 / 486 MB, free: 15.7 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.851e-06/0.107, allocations: 8 kB / 486 MB, free: 15.69 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.185e-06/0.107, allocations: 4.031 kB / 486 MB, free: 15.68 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.01e-07/0.107, allocations: 4.094 kB / 486 MB, free: 15.68 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.519e-05/0.1071, allocations: 143.3 kB / 486.1 MB, free: 15.52 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.781e-05/0.1071, allocations: 77.11 kB / 486.2 MB, free: 15.43 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.045e-05/0.1072, allocations: 0 / 486.2 MB, free: 15.43 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.143e-05/0.1072, allocations: 3.938 kB / 486.2 MB, free: 15.43 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.896e-06/0.1072, allocations: 4 kB / 486.2 MB, free: 15.42 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.647e-06/0.1072, allocations: 3.938 kB / 486.2 MB, free: 15.42 MB / 366.1 MB Notification: Performance of sorting global known variables: time 3.668e-05/0.1073, allocations: 83.31 kB / 486.3 MB, free: 15.34 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.1073, allocations: 0 / 486.3 MB, free: 15.34 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0002594/0.1076, allocations: 39.98 kB / 486.3 MB, free: 15.3 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.0002276/0.1078, allocations: 135.2 kB / 486.5 MB, free: 15.15 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 6.273e-05/0.1079, allocations: 15.92 kB / 486.5 MB, free: 15.14 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.462e-06/0.1079, allocations: 0 / 486.5 MB, free: 15.14 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 2.785e-05/0.1079, allocations: 33.98 kB / 486.5 MB, free: 15.1 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001904/0.1081, 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.0001835/0.1083, allocations: 88.94 kB / 486.6 MB, free: 14.98 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002052/0.1085, allocations: 0.6729 MB / 487.3 MB, free: 14.28 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 2.577e-05/0.1085, allocations: 4 kB / 487.3 MB, free: 14.28 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.288e-05/0.1086, allocations: 7.438 kB / 487.3 MB, free: 14.27 MB / 366.1 MB Notification: Performance of SimCode: time 2.2e-07/0.1086, allocations: 0 / 487.3 MB, free: 14.27 MB / 366.1 MB Notification: Performance of Templates: time 0.002808/0.1114, allocations: 1.09 MB / 488.4 MB, free: 13.19 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 gbode -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