Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_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 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: "" <> buildModelFMU(ModelicaTest.Fluid.TestUtilities.TestRegFunctions,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Fluid_TestUtilities_TestRegFunctions",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestUtilities.TestRegFunctions,fileNamePrefix="ModelicaTest_4_0_0_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.00143/0.00143, allocations: 104.1 kB / 17.64 MB, free: 5.48 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.001653/0.001653, allocations: 192 kB / 18.55 MB, free: 4.566 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.306/1.306, allocations: 222.9 MB / 242.3 MB, free: 15.17 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.2034/0.2034, allocations: 44.18 MB / 336.6 MB, free: 2.742 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002126/0.002126, allocations: 59.53 kB / 408.5 MB, free: 27.12 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.119/0.1212, allocations: 60.82 MB / 469.4 MB, free: 14.27 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.TestRegFunctions): time 0.001961/0.1232, allocations: 0.519 MB / 469.9 MB, free: 13.75 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0004102/0.1236, allocations: 154 kB / 470 MB, free: 13.6 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.245e-05/0.1237, allocations: 8 kB / 470 MB, free: 13.59 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.32e-05/0.1237, allocations: 3.938 kB / 470 MB, free: 13.59 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002516/0.124, allocations: 39.81 kB / 470.1 MB, free: 13.55 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 4.138e-06/0.124, allocations: 0 / 470.1 MB, free: 13.55 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 5.362e-05/0.124, allocations: 19.88 kB / 470.1 MB, free: 13.53 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.353e-05/0.1241, allocations: 7.984 kB / 470.1 MB, free: 13.52 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.153e-05/0.1241, allocations: 11.94 kB / 470.1 MB, free: 13.51 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.895e-05/0.1242, allocations: 7.984 kB / 470.1 MB, free: 13.5 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.137e-05/0.1242, allocations: 3.938 kB / 470.1 MB, free: 13.5 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001203/0.1243, allocations: 51.94 kB / 470.2 MB, free: 13.45 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.286e-05/0.1243, allocations: 11.98 kB / 470.2 MB, free: 13.43 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.148e-05/0.1244, allocations: 11.88 kB / 470.2 MB, free: 13.42 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001088/0.1245, allocations: 39.88 kB / 470.2 MB, free: 13.38 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.839e-06/0.1245, allocations: 8 kB / 470.3 MB, free: 13.38 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.473e-06/0.1245, allocations: 0 / 470.3 MB, free: 13.38 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.006e-05/0.1245, allocations: 0 / 470.3 MB, free: 13.38 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: 10 * Number of variables: 10 Notification: Performance of Generate backend data structure: time 0.0003108/0.1248, allocations: 335.8 kB / 470.6 MB, free: 13 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.724e-05/0.1249, allocations: 8.031 kB / 470.6 MB, free: 12.99 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.438e-05/0.1249, allocations: 38.73 kB / 470.6 MB, free: 12.94 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.028e-05/0.125, allocations: 8.844 kB / 470.6 MB, free: 12.93 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001125/0.1251, allocations: 172.3 kB / 470.8 MB, free: 12.73 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.161e-05/0.1251, allocations: 4.375 kB / 470.8 MB, free: 12.72 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.287e-05/0.1251, allocations: 4.312 kB / 470.8 MB, free: 12.72 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001297/0.1252, allocations: 62.19 kB / 470.9 MB, free: 12.65 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.538e-06/0.1253, allocations: 3.938 kB / 470.9 MB, free: 12.65 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.007e-06/0.1253, allocations: 0 / 470.9 MB, free: 12.65 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.759e-06/0.1253, allocations: 0 / 470.9 MB, free: 12.65 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001109/0.1254, allocations: 59.94 kB / 470.9 MB, free: 12.59 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001838/0.1256, allocations: 165.6 kB / 471.1 MB, free: 12.38 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001386/0.1257, allocations: 86.55 kB / 471.2 MB, free: 12.29 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.852e-05/0.1258, allocations: 24.86 kB / 471.2 MB, free: 12.26 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003304/0.1261, allocations: 255.3 kB / 471.5 MB, free: 11.95 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.141e-05/0.1262, allocations: 30.56 kB / 471.5 MB, free: 11.91 MB / 350.1 MB Notification: Performance of pre-optimization done (n=10): time 1.173e-06/0.1262, allocations: 0 / 471.5 MB, free: 11.91 MB / 350.1 MB Notification: Performance of matching and sorting (n=10): time 0.0002379/0.1264, allocations: 117.7 kB / 471.6 MB, free: 11.79 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.125e-05/0.1265, allocations: 55.41 kB / 471.7 MB, free: 11.73 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.453e-05/0.1265, allocations: 89.86 kB / 471.7 MB, free: 11.63 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.221e-05/0.1266, allocations: 25.7 kB / 471.8 MB, free: 11.6 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.469e-05/0.1266, allocations: 80.14 kB / 471.8 MB, free: 11.52 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.864e-05/0.1266, allocations: 35.55 kB / 471.9 MB, free: 11.48 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.932e-05/0.1267, allocations: 25.66 kB / 471.9 MB, free: 11.45 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001085/0.1268, allocations: 315 kB / 472.2 MB, free: 11.13 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.949e-05/0.1268, allocations: 24 kB / 472.2 MB, free: 11.11 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.234e-05/0.1269, allocations: 15.98 kB / 472.2 MB, free: 11.09 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.322e-05/0.127, allocations: 53.36 kB / 472.3 MB, free: 11.04 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.854e-06/0.127, allocations: 0 / 472.3 MB, free: 11.04 MB / 350.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001394/0.1271, allocations: 89.52 kB / 472.4 MB, free: 10.95 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.566e-05/0.1271, allocations: 7.938 kB / 472.4 MB, free: 10.94 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.21e-06/0.1271, allocations: 0 / 472.4 MB, free: 10.94 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.858e-05/0.1272, allocations: 4 kB / 472.4 MB, free: 10.93 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001116/0.1273, allocations: 12 kB / 472.4 MB, free: 10.92 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.516e-06/0.1273, allocations: 3.938 kB / 472.4 MB, free: 10.92 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.933e-05/0.1273, allocations: 11.94 kB / 472.4 MB, free: 10.91 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.081e-05/0.1274, allocations: 7.984 kB / 472.4 MB, free: 10.9 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 (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 7.973e-05/0.1274, allocations: 109.8 kB / 472.5 MB, free: 10.78 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.518e-05/0.1275, allocations: 7.938 kB / 472.6 MB, free: 10.77 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000209/0.1277, allocations: 105.4 kB / 472.7 MB, free: 10.66 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.595e-06/0.1277, allocations: 4 kB / 472.7 MB, free: 10.66 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.1e-06/0.1277, allocations: 0 / 472.7 MB, free: 10.66 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.396e-06/0.1277, allocations: 4 kB / 472.7 MB, free: 10.66 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001334/0.1279, allocations: 173.6 kB / 472.8 MB, free: 10.44 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.654e-06/0.1279, allocations: 0 / 472.8 MB, free: 10.44 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.975e-05/0.1279, allocations: 16 kB / 472.8 MB, free: 10.42 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.488e-06/0.1279, allocations: 3.938 kB / 472.8 MB, free: 10.42 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.296e-05/0.128, allocations: 7.984 kB / 472.9 MB, free: 10.41 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.974e-06/0.128, allocations: 0 / 472.9 MB, free: 10.41 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.62e-07/0.128, allocations: 0 / 472.9 MB, free: 10.41 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001496/0.1281, allocations: 117.2 kB / 473 MB, free: 10.28 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.528e-05/0.1282, allocations: 84.95 kB / 473.1 MB, free: 10.18 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.865e-05/0.1282, allocations: 11.92 kB / 473.1 MB, free: 10.16 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.877e-05/0.1282, allocations: 4 kB / 473.1 MB, free: 10.16 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.902e-05/0.1283, allocations: 0 / 473.1 MB, free: 10.16 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.025e-06/0.1283, allocations: 7.984 kB / 473.1 MB, free: 10.15 MB / 350.1 MB Notification: Performance of sorting global known variables: time 3.18e-05/0.1283, allocations: 79.28 kB / 473.2 MB, free: 10.07 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.513e-06/0.1283, allocations: 0 / 473.2 MB, free: 10.07 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004423/0.1288, allocations: 19.92 kB / 473.2 MB, free: 10.05 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 (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.0004403/0.1292, allocations: 0.6515 MB / 473.8 MB, free: 9.371 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0001468/0.1294, allocations: 63.92 kB / 473.9 MB, free: 9.309 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.454e-06/0.1294, allocations: 0 / 473.9 MB, free: 9.309 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 4.406e-05/0.1294, allocations: 31.92 kB / 473.9 MB, free: 9.277 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001436/0.1296, allocations: 4 kB / 473.9 MB, free: 9.273 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004739/0.1301, allocations: 178.5 kB / 474.1 MB, free: 9.059 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002806/0.1304, allocations: 0.6807 MB / 474.8 MB, free: 8.352 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 5.105e-05/0.1304, allocations: 7.984 kB / 474.8 MB, free: 8.344 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.53e-05/0.1305, allocations: 15.44 kB / 474.8 MB, free: 8.328 MB / 350.1 MB Notification: Performance of SimCode: time 1.573e-06/0.1305, allocations: 4 kB / 474.8 MB, free: 8.324 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01908/0.1496, allocations: 1.536 MB / 476.3 MB, free: 6.867 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.192/7.342, allocations: 16.41 kB / 476.4 MB, free: 6.855 MB / 350.1 MB (rm -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegFunctions.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegFunctions.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegFunctions.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegFunctions.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegFunctions_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Fluid_TestUtilities_TestRegFunctions_fmu --startTime=0 --stopTime=1.01 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Fluid_TestUtilities_TestRegFunctions.fmu > ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegFunctions.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegFunctions_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Fluid/TestUtilities/TestRegFunctions/TestRegFunctions.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegFunctions.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches