Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.TestRegFunctions.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestUtilities.TestRegFunctions,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Fluid_TestUtilities_TestRegFunctions",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestUtilities.TestRegFunctions,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Fluid_TestUtilities_TestRegFunctions",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001388/0.001387, allocations: 108.5 kB / 17.21 MB, free: 6.266 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001609/0.001609, allocations: 209.7 kB / 18.14 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.466/1.466, allocations: 227.4 MB / 246.3 MB, free: 10.75 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2022/0.2022, allocations: 46.11 MB / 343.6 MB, free: 11.8 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001477/0.001477, allocations: 78 kB / 416.9 MB, free: 20.11 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1019/0.1034, allocations: 62.45 MB / 479.4 MB, free: 5.645 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.TestRegFunctions): time 0.00173/0.1052, allocations: 0.5972 MB / 480 MB, free: 5.047 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0004301/0.1056, allocations: 159.5 kB / 480.1 MB, free: 4.891 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.554e-05/0.1057, allocations: 0 / 480.1 MB, free: 4.891 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.806e-05/0.1057, allocations: 7.938 kB / 480.1 MB, free: 4.883 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002036/0.1059, allocations: 35.89 kB / 480.2 MB, free: 4.848 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 2.635e-06/0.1059, allocations: 0 / 480.2 MB, free: 4.848 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 4.174e-05/0.106, allocations: 19.92 kB / 480.2 MB, free: 4.828 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.704e-05/0.106, allocations: 4 kB / 480.2 MB, free: 4.824 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.661e-05/0.106, allocations: 7.938 kB / 480.2 MB, free: 4.816 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.936e-05/0.1061, allocations: 19.91 kB / 480.2 MB, free: 4.797 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 9.829e-06/0.1061, allocations: 0 / 480.2 MB, free: 4.797 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001055/0.1062, allocations: 47.95 kB / 480.3 MB, free: 4.75 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 9.638e-06/0.1062, allocations: 3.984 kB / 480.3 MB, free: 4.746 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.236e-05/0.1062, allocations: 19.81 kB / 480.3 MB, free: 4.727 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 9.293e-05/0.1063, allocations: 43.88 kB / 480.3 MB, free: 4.684 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.007e-06/0.1064, allocations: 0 / 480.3 MB, free: 4.684 MB / 350.1 MB Notification: Performance of FrontEnd: time 7.21e-07/0.1064, allocations: 0 / 480.3 MB, free: 4.684 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.466e-06/0.1064, allocations: 0 / 480.3 MB, free: 4.684 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.0002839/0.1067, allocations: 335.8 kB / 480.7 MB, free: 4.305 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.815e-05/0.1067, allocations: 16.81 kB / 480.7 MB, free: 4.289 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.561e-05/0.1067, allocations: 38.73 kB / 480.7 MB, free: 4.242 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.468e-05/0.1068, allocations: 4.844 kB / 480.7 MB, free: 4.238 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.873e-05/0.1069, allocations: 164.4 kB / 480.9 MB, free: 4.039 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.057e-06/0.1069, allocations: 4.375 kB / 480.9 MB, free: 4.035 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.272e-05/0.1069, allocations: 8.375 kB / 480.9 MB, free: 4.027 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001223/0.107, allocations: 62.17 kB / 481 MB, free: 3.961 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.78e-05/0.1071, allocations: 3.938 kB / 481 MB, free: 3.957 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.864e-06/0.1071, allocations: 0 / 481 MB, free: 3.957 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.178e-06/0.1071, allocations: 0 / 481 MB, free: 3.957 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.918e-05/0.1072, allocations: 55.95 kB / 481 MB, free: 3.902 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001612/0.1074, allocations: 161.7 kB / 481.2 MB, free: 3.695 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001262/0.1075, allocations: 86.58 kB / 481.3 MB, free: 3.602 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.918e-05/0.1076, allocations: 32.84 kB / 481.3 MB, free: 3.566 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003132/0.1079, allocations: 251.3 kB / 481.5 MB, free: 3.266 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3e-05/0.1079, allocations: 34.56 kB / 481.6 MB, free: 3.223 MB / 350.1 MB Notification: Performance of pre-optimization done (n=10): time 1.233e-06/0.1079, allocations: 0 / 481.6 MB, free: 3.223 MB / 350.1 MB Notification: Performance of matching and sorting (n=10): time 0.0002094/0.1081, allocations: 109.6 kB / 481.7 MB, free: 3.109 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.889e-05/0.1082, allocations: 55.41 kB / 481.7 MB, free: 3.043 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.097e-05/0.1082, allocations: 93.86 kB / 481.8 MB, free: 2.941 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.425e-05/0.1083, allocations: 33.69 kB / 481.9 MB, free: 2.902 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.414e-05/0.1083, allocations: 80.14 kB / 481.9 MB, free: 2.82 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.418e-05/0.1083, allocations: 31.55 kB / 482 MB, free: 2.789 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.351e-05/0.1084, allocations: 21.7 kB / 482 MB, free: 2.762 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000119/0.1085, allocations: 319.2 kB / 482.3 MB, free: 2.441 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.687e-05/0.1085, allocations: 23.98 kB / 482.3 MB, free: 2.418 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.085e-05/0.1086, allocations: 23.94 kB / 482.3 MB, free: 2.395 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.82e-05/0.1087, allocations: 52.84 kB / 482.4 MB, free: 2.34 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.683e-06/0.1087, allocations: 0 / 482.4 MB, free: 2.34 MB / 350.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001313/0.1088, allocations: 85.53 kB / 482.5 MB, free: 2.25 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.38e-05/0.1088, allocations: 7.938 kB / 482.5 MB, free: 2.242 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.17e-06/0.1088, allocations: 0 / 482.5 MB, free: 2.242 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.014e-05/0.1088, allocations: 0 / 482.5 MB, free: 2.242 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001038/0.109, allocations: 23.98 kB / 482.5 MB, free: 2.219 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.73e-06/0.109, allocations: 0 / 482.5 MB, free: 2.219 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.518e-05/0.109, allocations: 3.938 kB / 482.5 MB, free: 2.215 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.073e-05/0.109, allocations: 12 kB / 482.5 MB, free: 2.203 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.314e-05/0.1091, allocations: 113.8 kB / 482.6 MB, free: 2.082 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.366e-05/0.1091, allocations: 7.938 kB / 482.6 MB, free: 2.074 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001828/0.1093, allocations: 101.6 kB / 482.7 MB, free: 1.969 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.599e-06/0.1093, allocations: 4 kB / 482.8 MB, free: 1.965 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.867e-06/0.1093, allocations: 0 / 482.8 MB, free: 1.965 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.018e-06/0.1093, allocations: 3.984 kB / 482.8 MB, free: 1.961 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001215/0.1095, allocations: 166 kB / 482.9 MB, free: 1.75 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.613e-06/0.1095, allocations: 8 kB / 482.9 MB, free: 1.742 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.576e-05/0.1095, allocations: 15.98 kB / 482.9 MB, free: 1.727 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.837e-06/0.1095, allocations: 3.938 kB / 482.9 MB, free: 1.723 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.334e-06/0.1096, allocations: 3.938 kB / 482.9 MB, free: 1.719 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.813e-06/0.1096, allocations: 0 / 482.9 MB, free: 1.719 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.022e-06/0.1096, allocations: 4 kB / 483 MB, free: 1.715 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001398/0.1097, allocations: 105.1 kB / 483.1 MB, free: 1.594 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.801e-05/0.1098, allocations: 96.92 kB / 483.1 MB, free: 1.48 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.324e-05/0.1098, allocations: 7.938 kB / 483.2 MB, free: 1.473 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.416e-05/0.1098, allocations: 0 / 483.2 MB, free: 1.473 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.664e-05/0.1098, allocations: 8 kB / 483.2 MB, free: 1.465 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.931e-06/0.1098, allocations: 4 kB / 483.2 MB, free: 1.461 MB / 350.1 MB Notification: Performance of sorting global known variables: time 2.732e-05/0.1099, allocations: 79.27 kB / 483.2 MB, free: 1.383 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1099, allocations: 0 / 483.2 MB, free: 1.383 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002004/0.1101, allocations: 16 kB / 483.3 MB, free: 1.367 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.000418/0.1105, allocations: 0.6592 MB / 483.9 MB, free: 0.6797 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.000128/0.1107, allocations: 51.98 kB / 484 MB, free: 0.6289 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.876e-06/0.1107, allocations: 0 / 484 MB, free: 0.6289 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 3.986e-05/0.1107, allocations: 32.3 kB / 484 MB, free: 0.5977 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001365/0.1108, allocations: 4 kB / 484 MB, free: 0.5938 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004169/0.1113, allocations: 192.4 kB / 484.2 MB, free: 372 kB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002322/0.1115, allocations: 0.6887 MB / 484.9 MB, free: 15.65 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 3.626e-05/0.1116, allocations: 7.984 kB / 484.9 MB, free: 15.64 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.134e-05/0.1116, allocations: 15.44 kB / 484.9 MB, free: 15.62 MB / 366.1 MB Notification: Performance of SimCode: time 5.81e-07/0.1116, allocations: 0 / 484.9 MB, free: 15.62 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01028/0.1219, allocations: 1.408 MB / 486.3 MB, free: 14.31 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001766/0.1221, allocations: 203.1 kB / 486.5 MB, free: 14.06 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.725/1.847, allocations: 0 / 486.5 MB, free: 14.06 MB / 366.1 MB (rm -f ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.TestRegFunctions.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.TestRegFunctions.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.TestRegFunctions.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.TestRegFunctions.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.TestRegFunctions_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Fluid_TestUtilities_TestRegFunctions_fmu --startTime=0 --stopTime=1.01 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Fluid_TestUtilities_TestRegFunctions.fmu > ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.TestRegFunctions.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_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_trunk_ModelicaTest.Fluid.TestUtilities.TestRegFunctions.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches