Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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: "" <> buildModelFMU(ModelicaTest.Fluid.TestUtilities.Test01RegFun3,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Fluid_TestUtilities_Test01RegFun3",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestUtilities.Test01RegFun3,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Fluid_TestUtilities_Test01RegFun3",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001291/0.001292, allocations: 105.7 kB / 16.41 MB, free: 6.496 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.001156/0.001156, allocations: 189.5 kB / 17.34 MB, free: 5.766 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.326/1.326, allocations: 205.1 MB / 223.2 MB, free: 12.21 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2032/0.2032, allocations: 43.52 MB / 314.1 MB, free: 460 kB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001722/0.001722, allocations: 63.91 kB / 441.3 MB, free: 6.195 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09402/0.09575, allocations: 57.8 MB / 499.1 MB, free: 12.32 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.Test01RegFun3): time 0.001743/0.09755, allocations: 498.7 kB / 499.6 MB, free: 11.84 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001845/0.09942, allocations: 1.401 MB / 0.4892 GB, free: 10.42 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.769e-05/0.09947, allocations: 0 / 0.4892 GB, free: 10.42 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 1.506e-05/0.09949, allocations: 0 / 0.4892 GB, free: 10.42 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 2.143e-05/0.09956, allocations: 0 / 0.4892 GB, free: 10.42 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006715/0.1002, allocations: 227.9 kB / 0.4894 GB, free: 10.2 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 4.052e-05/0.1003, allocations: 4 kB / 0.4894 GB, free: 10.19 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.999e-05/0.1003, allocations: 3.984 kB / 0.4894 GB, free: 10.19 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.625e-05/0.1004, allocations: 8 kB / 0.4895 GB, free: 10.18 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.291e-05/0.1004, allocations: 3.938 kB / 0.4895 GB, free: 10.18 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 1.296e-05/0.1004, allocations: 4 kB / 0.4895 GB, free: 10.17 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004189/0.1008, allocations: 279.6 kB / 0.4897 GB, free: 9.898 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 1.313e-05/0.1009, allocations: 3.984 kB / 0.4897 GB, free: 9.895 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 1.788e-05/0.1009, allocations: 4 kB / 0.4897 GB, free: 9.891 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002126/0.1011, allocations: 139.7 kB / 0.4899 GB, free: 9.754 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.937e-06/0.1011, allocations: 0 / 0.4899 GB, free: 9.754 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.675e-06/0.1011, allocations: 0 / 0.4899 GB, free: 9.754 MB / 382.1 MB Notification: Performance of Transformations before backend: time 4.809e-06/0.1011, allocations: 3.938 kB / 0.4899 GB, free: 9.75 MB / 382.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.0003554/0.1015, allocations: 335.5 kB / 0.4902 GB, free: 9.375 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.962e-05/0.1015, allocations: 11.89 kB / 0.4902 GB, free: 9.363 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.247e-05/0.1016, allocations: 34.75 kB / 0.4902 GB, free: 9.32 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.585e-05/0.1016, allocations: 0.9375 kB / 0.4902 GB, free: 9.32 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001184/0.1017, allocations: 164.4 kB / 0.4904 GB, free: 9.121 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.265e-06/0.1017, allocations: 384 / 0.4904 GB, free: 9.121 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.103e-05/0.1018, allocations: 384 / 0.4904 GB, free: 9.121 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.268e-05/0.1019, allocations: 41.75 kB / 0.4904 GB, free: 9.074 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.874e-06/0.1019, allocations: 4 kB / 0.4904 GB, free: 9.07 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.177e-06/0.1019, allocations: 0 / 0.4904 GB, free: 9.07 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.817e-06/0.1019, allocations: 3.938 kB / 0.4904 GB, free: 9.066 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.595e-05/0.1019, allocations: 4 kB / 0.4904 GB, free: 9.062 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001704/0.1021, allocations: 153.7 kB / 0.4906 GB, free: 8.863 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.012e-05/0.1022, allocations: 18.61 kB / 0.4906 GB, free: 8.836 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.737e-05/0.1022, allocations: 4.859 kB / 0.4906 GB, free: 8.828 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.959e-06/0.1022, allocations: 0 / 0.4906 GB, free: 8.828 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.724e-05/0.1022, allocations: 38.5 kB / 0.4907 GB, free: 8.781 MB / 382.1 MB Notification: Performance of pre-optimization done (n=1): time 1.052e-06/0.1022, allocations: 8 kB / 0.4907 GB, free: 8.773 MB / 382.1 MB Notification: Performance of matching and sorting (n=1): time 0.000133/0.1024, allocations: 33.7 kB / 0.4907 GB, free: 8.734 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.311e-05/0.1024, allocations: 51.41 kB / 0.4907 GB, free: 8.672 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.567e-05/0.1025, allocations: 97.84 kB / 0.4908 GB, free: 8.566 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.334e-05/0.1025, allocations: 25.7 kB / 0.4909 GB, free: 8.535 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.822e-05/0.1026, allocations: 80.39 kB / 0.4909 GB, free: 8.453 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.326e-05/0.1026, allocations: 7.906 kB / 0.4909 GB, free: 8.445 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.997e-05/0.1026, allocations: 17.72 kB / 0.491 GB, free: 8.422 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001021/0.1027, allocations: 310.8 kB / 0.4913 GB, free: 8.109 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.276e-05/0.1028, allocations: 4 kB / 0.4913 GB, free: 8.105 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.564e-06/0.1028, allocations: 0 / 0.4913 GB, free: 8.105 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.656e-05/0.1028, allocations: 16.78 kB / 0.4913 GB, free: 8.086 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.254e-06/0.1028, allocations: 0 / 0.4913 GB, free: 8.086 MB / 382.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 5.903e-05/0.1029, allocations: 37.7 kB / 0.4913 GB, free: 8.043 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.228e-05/0.1029, allocations: 8 kB / 0.4913 GB, free: 8.035 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.338e-06/0.1029, allocations: 0 / 0.4913 GB, free: 8.035 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.513e-05/0.1029, allocations: 0 / 0.4913 GB, free: 8.035 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.883e-05/0.103, allocations: 7.938 kB / 0.4913 GB, free: 8.027 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.519e-06/0.103, allocations: 0 / 0.4913 GB, free: 8.027 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.477e-05/0.103, allocations: 4 kB / 0.4913 GB, free: 8.023 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.392e-06/0.103, allocations: 0 / 0.4913 GB, free: 8.023 MB / 382.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.234e-05/0.1031, allocations: 113.8 kB / 0.4914 GB, free: 7.902 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.248e-05/0.1031, allocations: 15.95 kB / 0.4915 GB, free: 7.887 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001064/0.1032, allocations: 44.77 kB / 0.4915 GB, free: 7.832 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.424e-06/0.1032, allocations: 0 / 0.4915 GB, free: 7.832 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.799e-06/0.1033, allocations: 3.984 kB / 0.4915 GB, free: 7.828 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.773e-06/0.1033, allocations: 0 / 0.4915 GB, free: 7.828 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.93e-05/0.1033, allocations: 149.7 kB / 0.4916 GB, free: 7.633 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.739e-06/0.1034, allocations: 0 / 0.4916 GB, free: 7.633 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.864e-06/0.1034, allocations: 3.969 kB / 0.4916 GB, free: 7.629 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.773e-06/0.1034, allocations: 4 kB / 0.4917 GB, free: 7.625 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.402e-06/0.1034, allocations: 3.984 kB / 0.4917 GB, free: 7.621 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.443e-06/0.1034, allocations: 0 / 0.4917 GB, free: 7.621 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.82e-07/0.1034, allocations: 0 / 0.4917 GB, free: 7.621 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.369e-05/0.1035, allocations: 61.08 kB / 0.4917 GB, free: 7.543 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.154e-05/0.1035, allocations: 88.98 kB / 0.4918 GB, free: 7.438 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.022e-05/0.1035, allocations: 0 / 0.4918 GB, free: 7.438 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.373e-05/0.1036, allocations: 8.016 kB / 0.4918 GB, free: 7.43 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.488e-05/0.1036, allocations: 4 kB / 0.4918 GB, free: 7.426 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.717e-06/0.1036, allocations: 0 / 0.4918 GB, free: 7.426 MB / 382.1 MB Notification: Performance of sorting global known variables: time 3.214e-05/0.1037, allocations: 75.28 kB / 0.4919 GB, free: 7.352 MB / 382.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1037, allocations: 0 / 0.4919 GB, free: 7.352 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002497/0.1039, allocations: 40 kB / 0.4919 GB, free: 7.312 MB / 382.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.0004408/0.1044, allocations: 0.6398 MB / 0.4925 GB, free: 6.641 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 6.465e-05/0.1044, allocations: 7.938 kB / 0.4926 GB, free: 6.633 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.994e-06/0.1044, allocations: 0 / 0.4926 GB, free: 6.633 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 2.986e-05/0.1045, allocations: 29.7 kB / 0.4926 GB, free: 6.598 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001376/0.1046, allocations: 2.5 kB / 0.4926 GB, free: 6.598 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003331/0.105, allocations: 134.6 kB / 0.4927 GB, free: 6.426 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001864/0.1052, allocations: 0.6768 MB / 0.4934 GB, free: 5.723 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 1.5e-05/0.1052, allocations: 0 / 0.4934 GB, free: 5.723 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.352e-05/0.1052, allocations: 15.38 kB / 0.4934 GB, free: 5.707 MB / 382.1 MB Notification: Performance of SimCode: time 2.8e-07/0.1052, allocations: 0 / 0.4934 GB, free: 5.707 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01497/0.1202, allocations: 1.843 MB / 0.4952 GB, free: 3.859 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.149/7.269, allocations: 19.92 kB / 0.4952 GB, free: 3.84 MB / 382.1 MB (rm -f ModelicaTest_3.2.3_ModelicaTest.Fluid.TestUtilities.Test01RegFun3.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Fluid.TestUtilities.Test01RegFun3.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Fluid.TestUtilities.Test01RegFun3.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Fluid.TestUtilities.Test01RegFun3.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.Fluid.TestUtilities.Test01RegFun3_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_Fluid_TestUtilities_Test01RegFun3_fmu --startTime=0 --stopTime=100 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_ModelicaTest_Fluid_TestUtilities_Test01RegFun3.fmu > ModelicaTest_3.2.3_ModelicaTest.Fluid.TestUtilities.Test01RegFun3.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Fluid.TestUtilities.Test01RegFun3_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Fluid/TestUtilities/Test01RegFun3/Test01RegFun3.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_ModelicaTest.Fluid.TestUtilities.Test01RegFun3.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches