Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Fluid.TestUtilities.TestRegFunctions.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.TestRegFunctions,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Fluid_TestUtilities_TestRegFunctions",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestUtilities.TestRegFunctions,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Fluid_TestUtilities_TestRegFunctions",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.00139/0.00139, allocations: 109.7 kB / 16.41 MB, free: 6.492 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.001444/0.001444, allocations: 185.5 kB / 17.34 MB, free: 5.738 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.425/1.425, allocations: 205.1 MB / 223.2 MB, free: 12.23 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.2138/0.2138, 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.002214/0.002214, allocations: 67.89 kB / 441.3 MB, free: 6.129 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1162/0.1184, allocations: 57.79 MB / 499.1 MB, free: 12.27 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.TestRegFunctions): time 0.001819/0.1203, allocations: 0.5882 MB / 499.7 MB, free: 11.69 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003672/0.1207, allocations: 116.1 kB / 499.8 MB, free: 11.57 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.974e-05/0.1207, allocations: 0 / 499.8 MB, free: 11.57 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 1.352e-05/0.1207, allocations: 0 / 499.8 MB, free: 11.57 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002746/0.121, allocations: 39.81 kB / 499.9 MB, free: 11.54 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 3.557e-06/0.121, allocations: 0 / 499.9 MB, free: 11.54 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 6.813e-05/0.1211, allocations: 19.92 kB / 499.9 MB, free: 11.52 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.478e-05/0.1212, allocations: 7.938 kB / 499.9 MB, free: 11.51 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.136e-05/0.1212, allocations: 7.938 kB / 499.9 MB, free: 11.5 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.224e-05/0.1212, allocations: 19.91 kB / 499.9 MB, free: 11.48 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 1.151e-05/0.1213, allocations: 4 kB / 499.9 MB, free: 11.48 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001255/0.1214, allocations: 51.94 kB / 500 MB, free: 11.43 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 1.103e-05/0.1214, allocations: 3.938 kB / 500 MB, free: 11.42 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 1.99e-05/0.1214, allocations: 11.94 kB / 500 MB, free: 11.41 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001227/0.1216, allocations: 47.81 kB / 0.4883 GB, free: 11.36 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.617e-06/0.1216, allocations: 0 / 0.4883 GB, free: 11.36 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.243e-06/0.1216, allocations: 0 / 0.4883 GB, free: 11.36 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.1e-05/0.1216, allocations: 0 / 0.4883 GB, free: 11.36 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: 10 * Number of variables: 10 Notification: Performance of Generate backend data structure: time 0.0004012/0.122, allocations: 347.3 kB / 0.4886 GB, free: 10.97 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.623e-05/0.1221, allocations: 11.89 kB / 0.4887 GB, free: 10.96 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.982e-05/0.1221, allocations: 42.73 kB / 0.4887 GB, free: 10.91 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.494e-05/0.1221, allocations: 0.9375 kB / 0.4887 GB, free: 10.91 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000143/0.1223, allocations: 164.3 kB / 0.4889 GB, free: 10.71 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.755e-05/0.1223, allocations: 8.375 kB / 0.4889 GB, free: 10.7 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.667e-05/0.1223, allocations: 8.312 kB / 0.4889 GB, free: 10.7 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001379/0.1225, allocations: 62.11 kB / 0.4889 GB, free: 10.63 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.17e-05/0.1225, allocations: 3.938 kB / 0.4889 GB, free: 10.62 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.167e-05/0.1225, allocations: 4 kB / 0.4889 GB, free: 10.62 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.372e-06/0.1225, allocations: 4 kB / 0.4889 GB, free: 10.62 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001091/0.1226, allocations: 51.95 kB / 0.489 GB, free: 10.57 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002017/0.1228, allocations: 175.9 kB / 0.4892 GB, free: 10.35 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001544/0.123, allocations: 86.56 kB / 0.4892 GB, free: 10.25 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.533e-05/0.1231, allocations: 28.84 kB / 0.4893 GB, free: 10.22 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003703/0.1235, allocations: 251.3 kB / 0.4895 GB, free: 9.922 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.21e-05/0.1235, allocations: 38.55 kB / 0.4895 GB, free: 9.875 MB / 382.1 MB Notification: Performance of pre-optimization done (n=10): time 1.282e-06/0.1235, allocations: 0 / 0.4895 GB, free: 9.875 MB / 382.1 MB Notification: Performance of matching and sorting (n=10): time 0.0002395/0.1238, allocations: 101.8 kB / 0.4896 GB, free: 9.77 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.183e-05/0.1238, allocations: 55.41 kB / 0.4897 GB, free: 9.703 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.543e-05/0.1239, allocations: 97.84 kB / 0.4898 GB, free: 9.598 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.693e-05/0.1239, allocations: 25.7 kB / 0.4898 GB, free: 9.566 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.726e-05/0.124, allocations: 84.09 kB / 0.4899 GB, free: 9.48 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.21e-05/0.124, allocations: 31.73 kB / 0.4899 GB, free: 9.449 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.93e-05/0.1241, allocations: 29.83 kB / 0.49 GB, free: 9.414 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001387/0.1242, allocations: 314.8 kB / 0.4903 GB, free: 9.098 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.778e-05/0.1243, allocations: 19.98 kB / 0.4903 GB, free: 9.078 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.393e-05/0.1243, allocations: 16.38 kB / 0.4903 GB, free: 9.062 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.918e-05/0.1244, allocations: 60.91 kB / 0.4903 GB, free: 9 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.764e-06/0.1244, allocations: 0 / 0.4903 GB, free: 9 MB / 382.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001403/0.1245, allocations: 85.58 kB / 0.4904 GB, free: 8.91 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.78e-05/0.1246, allocations: 11.94 kB / 0.4904 GB, free: 8.898 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.94e-06/0.1246, allocations: 0 / 0.4904 GB, free: 8.898 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.258e-05/0.1246, allocations: 4 kB / 0.4904 GB, free: 8.895 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001053/0.1247, allocations: 15.98 kB / 0.4905 GB, free: 8.879 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.126e-06/0.1247, allocations: 3.984 kB / 0.4905 GB, free: 8.875 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.672e-05/0.1248, allocations: 4 kB / 0.4905 GB, free: 8.871 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.382e-06/0.1248, allocations: 0 / 0.4905 GB, free: 8.871 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 (10): * Single equations (assignments): 10 * 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 8.802e-05/0.1249, allocations: 117.8 kB / 0.4906 GB, free: 8.746 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.389e-05/0.1249, allocations: 11.83 kB / 0.4906 GB, free: 8.734 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002083/0.1251, allocations: 105.6 kB / 0.4907 GB, free: 8.617 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.993e-06/0.1251, allocations: 4 kB / 0.4907 GB, free: 8.613 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.41e-06/0.1251, allocations: 0 / 0.4907 GB, free: 8.613 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.211e-06/0.1251, allocations: 3.938 kB / 0.4907 GB, free: 8.609 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001509/0.1253, allocations: 173.5 kB / 0.4909 GB, free: 8.391 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.833e-06/0.1253, allocations: 0 / 0.4909 GB, free: 8.391 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.745e-05/0.1254, allocations: 15.98 kB / 0.4909 GB, free: 8.375 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.152e-06/0.1254, allocations: 7.938 kB / 0.4909 GB, free: 8.367 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.223e-06/0.1254, allocations: 0 / 0.4909 GB, free: 8.367 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.894e-06/0.1254, allocations: 0 / 0.4909 GB, free: 8.367 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.82e-07/0.1254, allocations: 0 / 0.4909 GB, free: 8.367 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001685/0.1256, allocations: 125.1 kB / 0.491 GB, free: 8.227 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.266e-05/0.1256, allocations: 77.11 kB / 0.4911 GB, free: 8.133 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.613e-05/0.1256, allocations: 7.938 kB / 0.4911 GB, free: 8.125 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.513e-05/0.1257, allocations: 4 kB / 0.4911 GB, free: 8.121 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.475e-05/0.1257, allocations: 7.984 kB / 0.4911 GB, free: 8.113 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.158e-06/0.1257, allocations: 0 / 0.4911 GB, free: 8.113 MB / 382.1 MB Notification: Performance of sorting global known variables: time 3.868e-05/0.1257, allocations: 75.28 kB / 0.4912 GB, free: 8.039 MB / 382.1 MB Notification: Performance of sort global known variables: time 2e-07/0.1258, allocations: 96 / 0.4912 GB, free: 8.039 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002198/0.126, allocations: 23.94 kB / 0.4912 GB, free: 8.016 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 (10): * Single equations (assignments): 10 * 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 Backend phase and start with SimCode phase: time 0.0004992/0.1265, allocations: 0.6553 MB / 0.4918 GB, free: 7.332 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0001496/0.1266, allocations: 55.92 kB / 0.4919 GB, free: 7.277 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.033e-06/0.1267, allocations: 0 / 0.4919 GB, free: 7.277 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 4.983e-05/0.1267, allocations: 35.92 kB / 0.4919 GB, free: 7.242 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001371/0.1269, allocations: 6.5 kB / 0.4919 GB, free: 7.238 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004334/0.1273, allocations: 178.9 kB / 0.4921 GB, free: 7.023 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002682/0.1276, allocations: 0.6807 MB / 0.4928 GB, free: 6.316 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 3.353e-05/0.1276, allocations: 4 kB / 0.4928 GB, free: 6.312 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.558e-05/0.1277, allocations: 15.44 kB / 0.4928 GB, free: 6.297 MB / 382.1 MB Notification: Performance of SimCode: time 3.71e-07/0.1277, allocations: 0 / 0.4928 GB, free: 6.297 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0214/0.1491, allocations: 1.559 MB / 0.4943 GB, free: 4.73 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.76/7.909, allocations: 3.984 kB / 0.4943 GB, free: 4.727 MB / 382.1 MB (rm -f ModelicaTest_3.2.3_ModelicaTest.Fluid.TestUtilities.TestRegFunctions.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Fluid.TestUtilities.TestRegFunctions.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Fluid.TestUtilities.TestRegFunctions.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Fluid.TestUtilities.TestRegFunctions.sim & python3 -m fmpy simulate --output-file ModelicaTest_3.2.3_ModelicaTest.Fluid.TestUtilities.TestRegFunctions_res.csv --start-time 0 --stop-time 1.01 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.000404 ModelicaTest_3_2_3_ModelicaTest_Fluid_TestUtilities_TestRegFunctions.fmu > ModelicaTest_3.2.3_ModelicaTest.Fluid.TestUtilities.TestRegFunctions.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Fluid.TestUtilities.TestRegFunctions_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Fluid/TestUtilities/TestRegFunctions/TestRegFunctions.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_ModelicaTest.Fluid.TestUtilities.TestRegFunctions.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches