Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.Test01RegFun3.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.Test01RegFun3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|x",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.Test01RegFun3") translateModel(ModelicaTest.Fluid.TestUtilities.Test01RegFun3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|x",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.Test01RegFun3") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001117/0.001117, allocations: 107.1 kB / 18.39 MB, free: 4.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.00111/0.00111, allocations: 184.1 kB / 19.33 MB, free: 3.699 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.09 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.1946/0.1946, allocations: 44.19 MB / 337.4 MB, free: 2.688 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001311/0.001311, allocations: 81.66 kB / 409.9 MB, free: 26.52 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09603/0.09735, allocations: 60.83 MB / 470.7 MB, free: 13.64 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.Test01RegFun3): time 0.001689/0.09907, allocations: 498.7 kB / 471.2 MB, free: 13.15 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001636/0.1007, allocations: 1.352 MB / 472.5 MB, free: 11.79 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.112e-05/0.1008, allocations: 0 / 472.5 MB, free: 11.79 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.5e-05/0.1008, allocations: 3.938 kB / 472.5 MB, free: 11.78 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 1.953e-05/0.1008, allocations: 0 / 472.5 MB, free: 11.78 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006793/0.1015, allocations: 215 kB / 472.8 MB, free: 11.57 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 4.631e-05/0.1016, allocations: 11.94 kB / 472.8 MB, free: 11.56 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.706e-05/0.1016, allocations: 0 / 472.8 MB, free: 11.56 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.016e-05/0.1017, allocations: 7.938 kB / 472.8 MB, free: 11.55 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.275e-05/0.1017, allocations: 3.984 kB / 472.8 MB, free: 11.55 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.189e-05/0.1017, allocations: 0 / 472.8 MB, free: 11.55 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004123/0.1021, allocations: 271.6 kB / 473 MB, free: 11.29 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.289e-05/0.1022, allocations: 3.984 kB / 473 MB, free: 11.28 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.088e-05/0.1022, allocations: 7.984 kB / 473.1 MB, free: 11.27 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001985/0.1024, allocations: 135.7 kB / 473.2 MB, free: 11.14 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.889e-06/0.1024, allocations: 8 kB / 473.2 MB, free: 11.13 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.243e-06/0.1024, allocations: 0 / 473.2 MB, free: 11.13 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.077e-06/0.1024, allocations: 0 / 473.2 MB, free: 11.13 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: 1 * Number of variables: 1 Notification: Performance of Generate backend data structure: time 0.0003228/0.1027, allocations: 327.6 kB / 473.5 MB, free: 10.77 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.014e-05/0.1028, allocations: 12.03 kB / 473.5 MB, free: 10.75 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.081e-05/0.1028, allocations: 4.922 kB / 473.5 MB, free: 10.75 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.95e-05/0.1029, allocations: 164.3 kB / 473.7 MB, free: 10.55 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.548e-06/0.1029, allocations: 384 / 473.7 MB, free: 10.55 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.256e-05/0.103, allocations: 8.375 kB / 473.7 MB, free: 10.54 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.826e-05/0.103, allocations: 38 kB / 473.7 MB, free: 10.5 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.972e-06/0.1031, allocations: 0 / 473.7 MB, free: 10.5 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.757e-06/0.1031, allocations: 7.938 kB / 473.7 MB, free: 10.49 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.377e-06/0.1031, allocations: 0 / 473.7 MB, free: 10.49 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.985e-05/0.1031, allocations: 3.984 kB / 473.7 MB, free: 10.49 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001346/0.1032, allocations: 157.6 kB / 473.9 MB, free: 10.29 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.716e-05/0.1033, allocations: 18.52 kB / 473.9 MB, free: 10.26 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.869e-05/0.1033, allocations: 12.95 kB / 473.9 MB, free: 10.24 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.356e-06/0.1033, allocations: 0 / 473.9 MB, free: 10.24 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.586e-05/0.1034, allocations: 38.48 kB / 474 MB, free: 10.2 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 8.72e-07/0.1034, allocations: 0 / 474 MB, free: 10.2 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001281/0.1035, allocations: 33.7 kB / 474 MB, free: 10.16 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.231e-05/0.1035, allocations: 51.41 kB / 474.1 MB, free: 10.09 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.593e-05/0.1036, allocations: 101.8 kB / 474.2 MB, free: 9.984 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.223e-05/0.1036, allocations: 29.95 kB / 474.2 MB, free: 9.949 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.219e-05/0.1037, allocations: 80.14 kB / 474.3 MB, free: 9.867 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.184e-05/0.1037, allocations: 7.969 kB / 474.3 MB, free: 9.859 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.834e-05/0.1037, allocations: 13.72 kB / 474.3 MB, free: 9.84 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 9.484e-05/0.1038, allocations: 314.8 kB / 474.6 MB, free: 9.523 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.021e-05/0.1038, allocations: 0 / 474.6 MB, free: 9.523 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.568e-06/0.1039, allocations: 4 kB / 474.6 MB, free: 9.52 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.234e-05/0.1039, allocations: 8.859 kB / 474.6 MB, free: 9.508 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.543e-06/0.1039, allocations: 4 kB / 474.6 MB, free: 9.504 MB / 350.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.437e-05/0.104, allocations: 37.69 kB / 474.6 MB, free: 9.461 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.335e-05/0.104, allocations: 7.938 kB / 474.6 MB, free: 9.453 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.159e-06/0.104, allocations: 0 / 474.6 MB, free: 9.453 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.134e-05/0.104, allocations: 7.938 kB / 474.7 MB, free: 9.445 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.116e-05/0.1041, allocations: 0 / 474.7 MB, free: 9.445 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.857e-06/0.1041, allocations: 0 / 474.7 MB, free: 9.445 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.247e-05/0.1041, allocations: 0 / 474.7 MB, free: 9.445 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.667e-06/0.1041, allocations: 4 kB / 474.7 MB, free: 9.441 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * 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 initialization (1): * Single equations (assignments): 1 * 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.08e-05/0.1042, allocations: 113.9 kB / 474.8 MB, free: 9.32 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.028e-05/0.1042, allocations: 3.938 kB / 474.8 MB, free: 9.316 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001068/0.1043, allocations: 48.7 kB / 474.8 MB, free: 9.262 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.504e-06/0.1043, allocations: 0 / 474.8 MB, free: 9.262 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.069e-06/0.1043, allocations: 4 kB / 474.8 MB, free: 9.258 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.264e-06/0.1043, allocations: 0 / 474.8 MB, free: 9.258 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.828e-05/0.1044, allocations: 153.7 kB / 475 MB, free: 9.059 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.939e-06/0.1044, allocations: 0 / 475 MB, free: 9.059 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.104e-06/0.1044, allocations: 4 kB / 475 MB, free: 9.055 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.146e-06/0.1045, allocations: 3.938 kB / 475 MB, free: 9.051 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.069e-06/0.1045, allocations: 0 / 475 MB, free: 9.051 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.404e-06/0.1045, allocations: 3.938 kB / 475 MB, free: 9.047 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.01e-07/0.1045, allocations: 0 / 475 MB, free: 9.047 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.526e-05/0.1046, allocations: 68.97 kB / 475.1 MB, free: 8.961 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.96e-05/0.1046, allocations: 85.08 kB / 475.1 MB, free: 8.859 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.038e-05/0.1046, allocations: 4 kB / 475.1 MB, free: 8.855 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.065e-05/0.1047, allocations: 4 kB / 475.1 MB, free: 8.852 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.397e-05/0.1047, allocations: 0 / 475.1 MB, free: 8.852 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.128e-06/0.1047, allocations: 0 / 475.1 MB, free: 8.852 MB / 350.1 MB Notification: Performance of sorting global known variables: time 2.932e-05/0.1047, allocations: 83.27 kB / 475.2 MB, free: 8.77 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1047, allocations: 0 / 475.2 MB, free: 8.77 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002574/0.105, allocations: 40 kB / 475.3 MB, free: 8.73 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.0002452/0.1053, allocations: 139.3 kB / 475.4 MB, free: 8.586 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 6.464e-05/0.1053, allocations: 7.938 kB / 475.4 MB, free: 8.578 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.787e-06/0.1053, allocations: 0 / 475.4 MB, free: 8.578 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 2.797e-05/0.1054, allocations: 33.64 kB / 475.4 MB, free: 8.539 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001354/0.1055, allocations: 4 kB / 475.4 MB, free: 8.535 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002083/0.1057, allocations: 88.92 kB / 475.5 MB, free: 8.422 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002027/0.1059, allocations: 0.6729 MB / 476.2 MB, free: 7.723 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 1.586e-05/0.106, allocations: 4.125 kB / 476.2 MB, free: 7.719 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.421e-05/0.106, allocations: 7.438 kB / 476.2 MB, free: 7.711 MB / 350.1 MB Notification: Performance of SimCode: time 2.3e-07/0.106, allocations: 0 / 476.2 MB, free: 7.711 MB / 350.1 MB Notification: Performance of Templates: time 0.003076/0.1091, allocations: 1.077 MB / 477.3 MB, free: 6.633 MB / 350.1 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.Test01RegFun3.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.Test01RegFun3.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.Test01RegFun3.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.Test01RegFun3.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.Test01RegFun3.sim & ./ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.Test01RegFun3 -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.Test01RegFun3.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.Test01RegFun3_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Fluid/TestUtilities/Test01RegFun3/Test01RegFun3.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.Test01RegFun3.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches