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.001018/0.001018, allocations: 92.38 kB / 18 MB, free: 5.602 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.001373/0.001374, allocations: 180.9 kB / 18.91 MB, free: 4.734 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.338/1.338, allocations: 223.3 MB / 243 MB, free: 14.29 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.1919/0.1919, allocations: 44.25 MB / 338.3 MB, free: 2.383 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002991/0.0002991, allocations: 8 kB / 411 MB, free: 27.25 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09832/0.09864, allocations: 61.93 MB / 472.9 MB, free: 13.3 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.Test02RegFun3): time 0.0005938/0.09927, allocations: 219 kB / 473.1 MB, free: 13.08 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001895/0.1012, allocations: 1.395 MB / 474.5 MB, free: 11.67 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.858e-05/0.1012, allocations: 4 kB / 474.5 MB, free: 11.66 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.239e-05/0.1013, allocations: 3.938 kB / 474.5 MB, free: 11.66 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 2.445e-05/0.1013, allocations: 0 / 474.5 MB, free: 11.66 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005956/0.1019, allocations: 151.1 kB / 474.7 MB, free: 11.52 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 4.113e-05/0.1019, allocations: 4 kB / 474.7 MB, free: 11.51 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.645e-05/0.102, allocations: 7.984 kB / 474.7 MB, free: 11.5 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.033e-05/0.102, allocations: 7.922 kB / 474.7 MB, free: 11.5 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.606e-05/0.1021, allocations: 8 kB / 474.7 MB, free: 11.49 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.107e-05/0.1021, allocations: 0 / 474.7 MB, free: 11.49 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004786/0.1026, allocations: 271.6 kB / 475 MB, free: 11.22 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.298e-05/0.1026, allocations: 0 / 475 MB, free: 11.22 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 3.278e-05/0.1026, allocations: 29.7 kB / 475 MB, free: 11.19 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001722/0.1028, allocations: 79.83 kB / 475.1 MB, free: 11.11 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.34e-06/0.1028, allocations: 7.984 kB / 475.1 MB, free: 11.1 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.533e-06/0.1028, allocations: 0 / 475.1 MB, free: 11.1 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.831e-06/0.1029, allocations: 0 / 475.1 MB, free: 11.1 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.000328/0.1032, allocations: 331.6 kB / 475.4 MB, free: 10.73 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.866e-05/0.1032, allocations: 12.02 kB / 475.4 MB, free: 10.72 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.103e-05/0.1033, allocations: 0.9375 kB / 475.4 MB, free: 10.72 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.851e-05/0.1034, allocations: 160.4 kB / 475.6 MB, free: 10.52 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.27e-05/0.1034, allocations: 4.375 kB / 475.6 MB, free: 10.52 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.474e-06/0.1034, allocations: 384 / 475.6 MB, free: 10.52 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001095/0.1035, allocations: 46 kB / 475.6 MB, free: 10.47 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.542e-06/0.1035, allocations: 3.938 kB / 475.6 MB, free: 10.46 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.021e-05/0.1035, allocations: 0 / 475.6 MB, free: 10.46 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.458e-06/0.1036, allocations: 4 kB / 475.6 MB, free: 10.46 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.883e-05/0.1036, allocations: 8 kB / 475.6 MB, free: 10.45 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003406/0.1039, allocations: 240.9 kB / 475.9 MB, free: 10.17 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.711e-05/0.104, allocations: 14.58 kB / 475.9 MB, free: 10.14 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.818e-05/0.104, allocations: 12.92 kB / 475.9 MB, free: 10.13 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.803e-06/0.104, allocations: 0 / 475.9 MB, free: 10.13 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.207e-05/0.1041, allocations: 34.5 kB / 475.9 MB, free: 10.09 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 1.062e-06/0.1041, allocations: 0 / 475.9 MB, free: 10.09 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001394/0.1042, allocations: 37.69 kB / 476 MB, free: 10.04 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.936e-05/0.1043, allocations: 55.41 kB / 476 MB, free: 9.977 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.806e-05/0.1043, allocations: 97.89 kB / 476.1 MB, free: 9.871 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.349e-05/0.1043, allocations: 25.7 kB / 476.2 MB, free: 9.84 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.816e-05/0.1044, allocations: 96.34 kB / 476.2 MB, free: 9.742 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.612e-06/0.1044, allocations: 3.906 kB / 476.2 MB, free: 9.738 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.407e-05/0.1044, allocations: 9.719 kB / 476.3 MB, free: 9.723 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001029/0.1046, allocations: 318.8 kB / 476.6 MB, free: 9.402 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.156e-05/0.1046, allocations: 4 kB / 476.6 MB, free: 9.398 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.872e-05/0.1046, allocations: 26.52 kB / 476.6 MB, free: 9.363 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.61e-05/0.1046, allocations: 26.64 kB / 476.6 MB, free: 9.328 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.773e-06/0.1047, allocations: 0 / 476.6 MB, free: 9.328 MB / 350.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 7.439e-05/0.1047, allocations: 49.62 kB / 476.7 MB, free: 9.273 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.19e-05/0.1048, allocations: 8 kB / 476.7 MB, free: 9.266 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.619e-06/0.1048, allocations: 0 / 476.7 MB, free: 9.266 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.202e-05/0.1048, allocations: 96 / 476.7 MB, free: 9.266 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.184e-05/0.1049, allocations: 12 kB / 476.7 MB, free: 9.254 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.782e-06/0.1049, allocations: 3.938 kB / 476.7 MB, free: 9.25 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.943e-05/0.1049, allocations: 3.938 kB / 476.7 MB, free: 9.246 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.438e-06/0.1049, allocations: 7.984 kB / 476.7 MB, free: 9.238 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.745e-05/0.105, allocations: 113.8 kB / 476.8 MB, free: 9.117 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.378e-05/0.105, allocations: 0 / 476.8 MB, free: 9.117 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001082/0.1051, allocations: 44.78 kB / 476.9 MB, free: 9.066 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.528e-06/0.1051, allocations: 3.984 kB / 476.9 MB, free: 9.062 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.37e-06/0.1051, allocations: 4 kB / 476.9 MB, free: 9.059 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.934e-06/0.1051, allocations: 96 / 476.9 MB, free: 9.059 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001399/0.1053, allocations: 149.6 kB / 477 MB, free: 8.863 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.983e-06/0.1053, allocations: 3.984 kB / 477 MB, free: 8.859 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.92e-07/0.1053, allocations: 4 kB / 477 MB, free: 8.855 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.476e-06/0.1053, allocations: 0 / 477 MB, free: 8.855 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.502e-06/0.1053, allocations: 7.938 kB / 477 MB, free: 8.848 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.645e-06/0.1053, allocations: 3.984 kB / 477 MB, free: 8.844 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.92e-07/0.1053, allocations: 4.031 kB / 477 MB, free: 8.84 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.895e-05/0.1054, allocations: 135.4 kB / 477.2 MB, free: 8.691 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.166e-05/0.1055, allocations: 77.11 kB / 477.2 MB, free: 8.598 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.121e-05/0.1055, allocations: 0 / 477.2 MB, free: 8.598 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.85e-05/0.1056, allocations: 7.984 kB / 477.3 MB, free: 8.59 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.173e-05/0.1056, allocations: 0 / 477.3 MB, free: 8.59 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.697e-06/0.1056, allocations: 0 / 477.3 MB, free: 8.59 MB / 350.1 MB Notification: Performance of sorting global known variables: time 3.976e-05/0.1056, allocations: 83.31 kB / 477.3 MB, free: 8.508 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1056, allocations: 0 / 477.3 MB, free: 8.508 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002812/0.1059, allocations: 36 kB / 477.4 MB, free: 8.473 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.0002571/0.1062, allocations: 139.8 kB / 477.5 MB, free: 8.328 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 6.973e-05/0.1063, allocations: 11.94 kB / 477.5 MB, free: 8.316 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.405e-06/0.1063, allocations: 0 / 477.5 MB, free: 8.316 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 2.874e-05/0.1063, allocations: 25.98 kB / 477.5 MB, free: 8.285 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002/0.1065, allocations: 12 kB / 477.6 MB, free: 8.273 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002183/0.1067, allocations: 116.4 kB / 477.7 MB, free: 8.125 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002267/0.107, allocations: 0.6731 MB / 478.3 MB, free: 7.426 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.439e-05/0.107, allocations: 7.438 kB / 478.4 MB, free: 7.418 MB / 350.1 MB Notification: Performance of SimCode: time 1.91e-07/0.107, allocations: 0 / 478.4 MB, free: 7.418 MB / 350.1 MB Notification: Performance of Templates: time 0.00228/0.1093, allocations: 0.9089 MB / 479.3 MB, free: 6.508 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 -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