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.001773/0.001773, allocations: 113.4 kB / 17.86 MB, free: 5.629 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.001951/0.001951, allocations: 201.9 kB / 18.77 MB, free: 4.715 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.398/1.398, allocations: 222.9 MB / 242.5 MB, free: 15.34 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.2083/0.2083, allocations: 44.17 MB / 336.8 MB, free: 2.887 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001233/0.001233, allocations: 57.59 kB / 408.3 MB, free: 27.69 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1022/0.1034, allocations: 60.82 MB / 469.2 MB, free: 14.83 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.Test02RegFun3): time 0.001907/0.1054, allocations: 0.5489 MB / 469.7 MB, free: 14.28 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001969/0.1074, allocations: 1.411 MB / 471.1 MB, free: 12.85 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.593e-05/0.1074, allocations: 0 / 471.1 MB, free: 12.85 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.496e-05/0.1075, allocations: 8 kB / 471.1 MB, free: 12.84 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 3.036e-05/0.1075, allocations: 0 / 471.1 MB, free: 12.84 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005879/0.1081, allocations: 149.3 kB / 471.3 MB, free: 12.7 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 4.338e-05/0.1081, allocations: 7.938 kB / 471.3 MB, free: 12.69 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.665e-05/0.1082, allocations: 4 kB / 471.3 MB, free: 12.69 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.728e-05/0.1082, allocations: 0 / 471.3 MB, free: 12.69 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.146e-05/0.1083, allocations: 11.98 kB / 471.3 MB, free: 12.68 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.436e-05/0.1083, allocations: 0 / 471.3 MB, free: 12.68 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004879/0.1088, allocations: 271.6 kB / 471.6 MB, free: 12.41 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.477e-05/0.1088, allocations: 0 / 471.6 MB, free: 12.41 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.337e-05/0.1089, allocations: 11.94 kB / 471.6 MB, free: 12.4 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001793/0.109, allocations: 79.83 kB / 471.7 MB, free: 12.32 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.128e-06/0.1091, allocations: 0 / 471.7 MB, free: 12.32 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.312e-06/0.1091, allocations: 0 / 471.7 MB, free: 12.32 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.981e-06/0.1091, allocations: 4 kB / 471.7 MB, free: 12.32 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.000379/0.1095, allocations: 327.6 kB / 472 MB, free: 11.95 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.056e-05/0.1095, allocations: 16.02 kB / 472 MB, free: 11.93 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.821e-05/0.1095, allocations: 0.9375 kB / 472 MB, free: 11.93 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.966e-05/0.1096, allocations: 160.4 kB / 472.2 MB, free: 11.74 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.208e-05/0.1097, allocations: 4.375 kB / 472.2 MB, free: 11.73 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.071e-05/0.1097, allocations: 8.375 kB / 472.2 MB, free: 11.73 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000119/0.1098, allocations: 41.94 kB / 472.2 MB, free: 11.68 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.808e-06/0.1098, allocations: 0 / 472.2 MB, free: 11.68 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.096e-05/0.1098, allocations: 3.938 kB / 472.2 MB, free: 11.68 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.478e-06/0.1099, allocations: 0 / 472.2 MB, free: 11.68 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.649e-05/0.1099, allocations: 8 kB / 472.2 MB, free: 11.67 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003899/0.1103, allocations: 244.9 kB / 472.5 MB, free: 11.38 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.578e-05/0.1103, allocations: 22.58 kB / 472.5 MB, free: 11.35 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.928e-05/0.1104, allocations: 8.859 kB / 472.5 MB, free: 11.34 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.041e-05/0.1104, allocations: 0 / 472.5 MB, free: 11.34 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.83e-05/0.1104, allocations: 38.56 kB / 472.5 MB, free: 11.29 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 1.243e-06/0.1104, allocations: 0 / 472.5 MB, free: 11.29 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.000151/0.1106, allocations: 33.69 kB / 472.6 MB, free: 11.25 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.085e-05/0.1106, allocations: 51.41 kB / 472.6 MB, free: 11.19 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.483e-05/0.1107, allocations: 105.9 kB / 472.7 MB, free: 11.07 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.763e-05/0.1107, allocations: 25.7 kB / 472.7 MB, free: 11.04 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.909e-05/0.1108, allocations: 84.36 kB / 472.8 MB, free: 10.96 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.445e-06/0.1108, allocations: 7.906 kB / 472.8 MB, free: 10.95 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.899e-05/0.1109, allocations: 17.7 kB / 472.8 MB, free: 10.93 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001238/0.111, allocations: 318.8 kB / 473.2 MB, free: 10.61 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.472e-05/0.111, allocations: 0 / 473.2 MB, free: 10.61 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.683e-05/0.1111, allocations: 26.64 kB / 473.2 MB, free: 10.57 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.428e-05/0.1111, allocations: 26.52 kB / 473.2 MB, free: 10.54 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.903e-06/0.1111, allocations: 4 kB / 473.2 MB, free: 10.53 MB / 350.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 8.3e-05/0.1112, allocations: 49.62 kB / 473.3 MB, free: 10.48 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.536e-05/0.1112, allocations: 4 kB / 473.3 MB, free: 10.47 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.05e-06/0.1112, allocations: 4.094 kB / 473.3 MB, free: 10.47 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.484e-05/0.1113, allocations: 4 kB / 473.3 MB, free: 10.46 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.635e-05/0.1113, allocations: 7.984 kB / 473.3 MB, free: 10.46 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.354e-06/0.1113, allocations: 3.938 kB / 473.3 MB, free: 10.45 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.872e-05/0.1113, allocations: 0 / 473.3 MB, free: 10.45 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.893e-05/0.1114, allocations: 4 kB / 473.3 MB, free: 10.45 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.978e-05/0.1114, allocations: 113.8 kB / 473.4 MB, free: 10.33 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.491e-05/0.1115, allocations: 4.094 kB / 473.4 MB, free: 10.32 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001208/0.1116, allocations: 60.75 kB / 473.5 MB, free: 10.26 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.506e-06/0.1116, allocations: 0 / 473.5 MB, free: 10.26 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.408e-06/0.1116, allocations: 0 / 473.5 MB, free: 10.26 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.124e-06/0.1116, allocations: 0 / 473.5 MB, free: 10.26 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001469/0.1118, allocations: 145.6 kB / 473.6 MB, free: 10.07 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.139e-06/0.1118, allocations: 4 kB / 473.6 MB, free: 10.06 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.024e-06/0.1118, allocations: 3.984 kB / 473.6 MB, free: 10.06 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.535e-06/0.1118, allocations: 0 / 473.6 MB, free: 10.06 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.48e-06/0.1118, allocations: 0 / 473.6 MB, free: 10.06 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.715e-06/0.1118, allocations: 11.91 kB / 473.6 MB, free: 10.05 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.61e-07/0.1118, allocations: 0 / 473.6 MB, free: 10.05 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001082/0.1119, allocations: 135.4 kB / 473.8 MB, free: 9.898 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.277e-05/0.112, allocations: 77.11 kB / 473.8 MB, free: 9.805 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.414e-05/0.112, allocations: 7.984 kB / 473.8 MB, free: 9.797 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.957e-05/0.1121, allocations: 0 / 473.8 MB, free: 9.797 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.483e-05/0.1121, allocations: 0 / 473.8 MB, free: 9.797 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.697e-06/0.1121, allocations: 4.031 kB / 473.8 MB, free: 9.793 MB / 350.1 MB Notification: Performance of sorting global known variables: time 4.202e-05/0.1122, allocations: 83.28 kB / 473.9 MB, free: 9.711 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1122, allocations: 0 / 473.9 MB, free: 9.711 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003028/0.1125, allocations: 40 kB / 474 MB, free: 9.672 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.0002764/0.1127, allocations: 131.8 kB / 474.1 MB, free: 9.535 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 7.758e-05/0.1128, allocations: 15.94 kB / 474.1 MB, free: 9.52 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.893e-06/0.1128, allocations: 4.219 kB / 474.1 MB, free: 9.516 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 4.013e-05/0.1129, allocations: 33.7 kB / 474.1 MB, free: 9.477 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002196/0.1131, allocations: 6.859 kB / 474.2 MB, free: 9.473 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002242/0.1133, allocations: 116.5 kB / 474.3 MB, free: 9.324 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002477/0.1136, allocations: 0.6692 MB / 474.9 MB, free: 8.629 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.709e-05/0.1136, allocations: 15.42 kB / 475 MB, free: 8.613 MB / 350.1 MB Notification: Performance of SimCode: time 2.2e-07/0.1136, allocations: 0 / 475 MB, free: 8.613 MB / 350.1 MB Notification: Performance of Templates: time 0.002508/0.1161, allocations: 0.9129 MB / 475.9 MB, free: 7.699 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