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.001192/0.001192, allocations: 106.7 kB / 16.4 MB, free: 6.438 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.001264/0.001264, allocations: 192.1 kB / 17.34 MB, free: 5.719 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.384/1.384, 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.2195/0.2195, allocations: 43.53 MB / 314.1 MB, free: 448 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.001451/0.001452, allocations: 65.47 kB / 441.3 MB, free: 6.172 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1228/0.1242, allocations: 57.79 MB / 499.1 MB, free: 12.31 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.Test01RegFun3): time 0.001808/0.1261, allocations: 0.4988 MB / 499.6 MB, free: 11.81 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.00193/0.128, allocations: 1.385 MB / 0.4892 GB, free: 10.41 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.055e-05/0.1281, allocations: 0 / 0.4892 GB, free: 10.41 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 1.777e-05/0.1281, allocations: 3.938 kB / 0.4892 GB, free: 10.4 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 3.575e-05/0.1282, allocations: 0 / 0.4892 GB, free: 10.4 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007327/0.1289, allocations: 227.9 kB / 0.4894 GB, free: 10.18 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 5.552e-05/0.129, allocations: 11.92 kB / 0.4894 GB, free: 10.17 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.59e-05/0.129, allocations: 4 kB / 0.4894 GB, free: 10.16 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.99e-05/0.1291, allocations: 4 kB / 0.4895 GB, free: 10.16 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.848e-05/0.1291, allocations: 11.92 kB / 0.4895 GB, free: 10.15 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 1.199e-05/0.1291, allocations: 0 / 0.4895 GB, free: 10.15 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004139/0.1296, allocations: 271.6 kB / 0.4897 GB, free: 9.883 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 1.343e-05/0.1296, allocations: 4 kB / 0.4897 GB, free: 9.879 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 1.904e-05/0.1296, allocations: 0 / 0.4897 GB, free: 9.879 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002095/0.1298, allocations: 139.7 kB / 0.4899 GB, free: 9.742 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.121e-06/0.1298, allocations: 4 kB / 0.4899 GB, free: 9.738 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.706e-06/0.1298, allocations: 0 / 0.4899 GB, free: 9.738 MB / 382.1 MB Notification: Performance of Transformations before backend: time 5.981e-06/0.1298, allocations: 7.938 kB / 0.4899 GB, free: 9.73 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.0004203/0.1303, allocations: 331.5 kB / 0.4902 GB, free: 9.359 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.424e-05/0.1303, allocations: 15.89 kB / 0.4902 GB, free: 9.344 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.683e-05/0.1304, allocations: 34.69 kB / 0.4902 GB, free: 9.301 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.963e-05/0.1304, allocations: 0.9375 kB / 0.4902 GB, free: 9.301 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000126/0.1305, allocations: 164.4 kB / 0.4904 GB, free: 9.102 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.458e-05/0.1305, allocations: 4.375 kB / 0.4904 GB, free: 9.098 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.193e-06/0.1306, allocations: 384 / 0.4904 GB, free: 9.098 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001065/0.1307, allocations: 37.83 kB / 0.4904 GB, free: 9.055 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.787e-06/0.1307, allocations: 0 / 0.4904 GB, free: 9.055 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.558e-06/0.1307, allocations: 0 / 0.4904 GB, free: 9.055 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.1e-06/0.1307, allocations: 0 / 0.4904 GB, free: 9.055 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.003e-05/0.1307, allocations: 3.938 kB / 0.4904 GB, free: 9.051 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001741/0.1309, allocations: 153.7 kB / 0.4906 GB, free: 8.852 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.527e-05/0.131, allocations: 18.52 kB / 0.4906 GB, free: 8.824 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.957e-05/0.131, allocations: 8.953 kB / 0.4906 GB, free: 8.812 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.042e-05/0.131, allocations: 4 kB / 0.4906 GB, free: 8.809 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.122e-05/0.1311, allocations: 34.5 kB / 0.4906 GB, free: 8.766 MB / 382.1 MB Notification: Performance of pre-optimization done (n=1): time 1.162e-06/0.1311, allocations: 0 / 0.4906 GB, free: 8.766 MB / 382.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001557/0.1312, allocations: 41.69 kB / 0.4907 GB, free: 8.719 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.953e-05/0.1313, allocations: 55.34 kB / 0.4907 GB, free: 8.652 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.691e-05/0.1314, allocations: 93.86 kB / 0.4908 GB, free: 8.551 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.496e-05/0.1314, allocations: 25.95 kB / 0.4909 GB, free: 8.52 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.066e-05/0.1314, allocations: 84.14 kB / 0.4909 GB, free: 8.434 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.667e-05/0.1315, allocations: 7.906 kB / 0.4909 GB, free: 8.426 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.392e-05/0.1315, allocations: 17.7 kB / 0.491 GB, free: 8.402 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001172/0.1316, allocations: 310.8 kB / 0.4913 GB, free: 8.09 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.324e-05/0.1316, allocations: 0 / 0.4913 GB, free: 8.09 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.012e-05/0.1317, allocations: 4 kB / 0.4913 GB, free: 8.086 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.724e-05/0.1317, allocations: 8.859 kB / 0.4913 GB, free: 8.074 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.573e-06/0.1317, allocations: 4.062 kB / 0.4913 GB, free: 8.07 MB / 382.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.071e-05/0.1318, allocations: 41.58 kB / 0.4913 GB, free: 8.023 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.393e-05/0.1318, allocations: 8 kB / 0.4913 GB, free: 8.016 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.474e-06/0.1318, allocations: 7.969 kB / 0.4913 GB, free: 8.008 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.811e-05/0.1318, allocations: 0 / 0.4913 GB, free: 8.008 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.635e-05/0.1319, allocations: 3.938 kB / 0.4913 GB, free: 8.004 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.318e-06/0.1319, allocations: 0 / 0.4913 GB, free: 8.004 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.537e-05/0.1319, allocations: 4 kB / 0.4913 GB, free: 8 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.915e-06/0.1319, allocations: 0 / 0.4913 GB, free: 8 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 8.283e-05/0.132, allocations: 113.8 kB / 0.4914 GB, free: 7.879 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.969e-06/0.132, allocations: 3.938 kB / 0.4914 GB, free: 7.875 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001311/0.1322, allocations: 48.81 kB / 0.4915 GB, free: 7.816 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.69e-06/0.1322, allocations: 4 kB / 0.4915 GB, free: 7.812 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.898e-06/0.1322, allocations: 0 / 0.4915 GB, free: 7.812 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.054e-06/0.1322, allocations: 0 / 0.4915 GB, free: 7.812 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001073/0.1323, allocations: 145.7 kB / 0.4916 GB, free: 7.621 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.223e-06/0.1323, allocations: 8.031 kB / 0.4916 GB, free: 7.613 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.848e-06/0.1323, allocations: 3.938 kB / 0.4916 GB, free: 7.609 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.373e-06/0.1323, allocations: 3.938 kB / 0.4917 GB, free: 7.605 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.914e-06/0.1324, allocations: 3.984 kB / 0.4917 GB, free: 7.602 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.82e-07/0.1324, allocations: 0 / 0.4917 GB, free: 7.602 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.31e-07/0.1324, allocations: 0 / 0.4917 GB, free: 7.602 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.881e-05/0.1324, allocations: 61.12 kB / 0.4917 GB, free: 7.523 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.633e-05/0.1325, allocations: 85.08 kB / 0.4918 GB, free: 7.422 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.317e-05/0.1325, allocations: 7.938 kB / 0.4918 GB, free: 7.414 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.879e-05/0.1326, allocations: 0 / 0.4918 GB, free: 7.414 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.281e-05/0.1326, allocations: 0 / 0.4918 GB, free: 7.414 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.532e-06/0.1326, allocations: 4 kB / 0.4918 GB, free: 7.41 MB / 382.1 MB Notification: Performance of sorting global known variables: time 3.486e-05/0.1327, allocations: 75.28 kB / 0.4919 GB, free: 7.336 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1327, allocations: 0 / 0.4919 GB, free: 7.336 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002655/0.1329, allocations: 47.98 kB / 0.4919 GB, free: 7.289 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.0004918/0.1334, allocations: 0.6359 MB / 0.4925 GB, free: 6.621 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 8.264e-05/0.1335, allocations: 8 kB / 0.4926 GB, free: 6.613 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.504e-06/0.1335, allocations: 0 / 0.4926 GB, free: 6.613 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 3.534e-05/0.1336, allocations: 25.7 kB / 0.4926 GB, free: 6.582 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001515/0.1337, allocations: 11.61 kB / 0.4926 GB, free: 6.574 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000379/0.1341, allocations: 138.6 kB / 0.4927 GB, free: 6.398 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002524/0.1344, allocations: 0.6729 MB / 0.4934 GB, free: 5.699 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 2.044e-05/0.1344, allocations: 0 / 0.4934 GB, free: 5.699 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.821e-05/0.1345, allocations: 15.38 kB / 0.4934 GB, free: 5.684 MB / 382.1 MB Notification: Performance of SimCode: time 4.51e-07/0.1345, allocations: 0 / 0.4934 GB, free: 5.684 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01787/0.1523, allocations: 1.847 MB / 0.4952 GB, free: 3.832 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.672/7.824, allocations: 15.86 kB / 0.4952 GB, free: 3.816 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