Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.Test01RegFun3.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.Test01RegFun3,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Fluid_TestUtilities_Test01RegFun3",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestUtilities.Test01RegFun3,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Fluid_TestUtilities_Test01RegFun3",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001005/0.001005, allocations: 103.7 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001088/0.001088, allocations: 208.6 kB / 18.58 MB, free: 4.582 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.243/1.243, allocations: 227.4 MB / 246.8 MB, free: 10.62 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2033/0.2033, allocations: 46.1 MB / 344.1 MB, free: 11.62 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001541/0.001541, allocations: 77.22 kB / 417.7 MB, free: 19.66 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09677/0.09833, allocations: 62.44 MB / 480.1 MB, free: 5.199 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.Test01RegFun3): time 0.001575/0.09994, allocations: 487.7 kB / 480.6 MB, free: 4.719 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001623/0.1016, allocations: 1.418 MB / 482 MB, free: 3.285 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.058e-05/0.1016, allocations: 0 / 482 MB, free: 3.285 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.063e-05/0.1017, allocations: 3.938 kB / 482 MB, free: 3.281 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 2.47e-05/0.1017, allocations: 0 / 482 MB, free: 3.281 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006391/0.1023, allocations: 227 kB / 482.2 MB, free: 3.062 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 3.59e-05/0.1024, allocations: 7.984 kB / 482.3 MB, free: 3.055 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.146e-05/0.1024, allocations: 4 kB / 482.3 MB, free: 3.051 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.322e-05/0.1024, allocations: 0 / 482.3 MB, free: 3.051 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.642e-05/0.1025, allocations: 8 kB / 482.3 MB, free: 3.043 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.161e-05/0.1025, allocations: 0 / 482.3 MB, free: 3.043 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003901/0.1029, allocations: 283.6 kB / 482.5 MB, free: 2.766 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.01e-05/0.1029, allocations: 0 / 482.5 MB, free: 2.766 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.157e-05/0.1029, allocations: 7.938 kB / 482.5 MB, free: 2.758 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001997/0.1031, allocations: 147.7 kB / 482.7 MB, free: 2.613 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.986e-06/0.1032, allocations: 0 / 482.7 MB, free: 2.613 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.193e-06/0.1032, allocations: 0 / 482.7 MB, free: 2.613 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.572e-06/0.1032, allocations: 0 / 482.7 MB, free: 2.613 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: 1 * Number of variables: 1 Notification: Performance of Generate backend data structure: time 0.0003063/0.1035, allocations: 331.6 kB / 483 MB, free: 2.242 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.156e-05/0.1035, allocations: 12.03 kB / 483 MB, free: 2.23 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.597e-05/0.1035, allocations: 30.75 kB / 483.1 MB, free: 2.191 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.141e-05/0.1036, allocations: 4.938 kB / 483.1 MB, free: 2.188 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001006/0.1037, allocations: 164.3 kB / 483.2 MB, free: 1.988 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.135e-06/0.1037, allocations: 384 / 483.2 MB, free: 1.988 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.206e-06/0.1037, allocations: 384 / 483.2 MB, free: 1.988 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.032e-05/0.1038, allocations: 45.75 kB / 483.3 MB, free: 1.938 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.871e-06/0.1038, allocations: 0 / 483.3 MB, free: 1.938 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.713e-06/0.1038, allocations: 3.938 kB / 483.3 MB, free: 1.934 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.537e-06/0.1038, allocations: 4 kB / 483.3 MB, free: 1.93 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.816e-05/0.1038, allocations: 4 kB / 483.3 MB, free: 1.926 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000121/0.104, allocations: 145.7 kB / 483.4 MB, free: 1.734 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.599e-05/0.104, allocations: 26.55 kB / 483.4 MB, free: 1.699 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.446e-05/0.104, allocations: 4.859 kB / 483.5 MB, free: 1.691 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.752e-06/0.104, allocations: 0 / 483.5 MB, free: 1.691 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.121e-05/0.1041, allocations: 46.5 kB / 483.5 MB, free: 1.637 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 6.82e-07/0.1041, allocations: 0 / 483.5 MB, free: 1.637 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001005/0.1042, allocations: 29.7 kB / 483.5 MB, free: 1.602 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.891e-05/0.1042, allocations: 59.39 kB / 483.6 MB, free: 1.531 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.082e-05/0.1043, allocations: 93.86 kB / 483.7 MB, free: 1.43 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.246e-05/0.1043, allocations: 25.7 kB / 483.7 MB, free: 1.398 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.602e-05/0.1043, allocations: 84.14 kB / 483.8 MB, free: 1.312 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.692e-05/0.1044, allocations: 288 / 483.8 MB, free: 1.312 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.615e-05/0.1044, allocations: 13.97 kB / 483.8 MB, free: 1.293 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 9.099e-05/0.1045, allocations: 314.8 kB / 484.1 MB, free: 0.9766 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.979e-06/0.1045, allocations: 4 kB / 484.1 MB, free: 0.9727 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.815e-06/0.1045, allocations: 3.984 kB / 484.1 MB, free: 0.9688 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.117e-05/0.1046, allocations: 12.8 kB / 484.1 MB, free: 0.9531 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.232e-06/0.1046, allocations: 0 / 484.1 MB, free: 0.9531 MB / 350.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 5.355e-05/0.1046, allocations: 41.64 kB / 484.2 MB, free: 0.9062 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.098e-05/0.1046, allocations: 4 kB / 484.2 MB, free: 0.9023 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.088e-06/0.1047, allocations: 4.094 kB / 484.2 MB, free: 0.8984 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.959e-06/0.1047, allocations: 0 / 484.2 MB, free: 0.8984 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.046e-05/0.1047, allocations: 4 kB / 484.2 MB, free: 0.8945 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.637e-06/0.1047, allocations: 0 / 484.2 MB, free: 0.8945 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.495e-05/0.1047, allocations: 7.922 kB / 484.2 MB, free: 0.8867 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.41e-06/0.1048, allocations: 0 / 484.2 MB, free: 0.8867 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 (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 5.711e-05/0.1048, allocations: 113.8 kB / 484.3 MB, free: 0.7656 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.288e-06/0.1048, allocations: 3.938 kB / 484.3 MB, free: 0.7617 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001062/0.1049, allocations: 48.75 kB / 484.3 MB, free: 0.7109 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.973e-06/0.105, allocations: 0 / 484.3 MB, free: 0.7109 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.206e-06/0.105, allocations: 0 / 484.3 MB, free: 0.7109 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.724e-06/0.105, allocations: 0 / 484.3 MB, free: 0.7109 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.134e-05/0.1051, allocations: 149.7 kB / 484.5 MB, free: 0.5156 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.538e-06/0.1051, allocations: 0 / 484.5 MB, free: 0.5156 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.806e-06/0.1051, allocations: 7.922 kB / 484.5 MB, free: 0.5078 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.543e-06/0.1051, allocations: 0 / 484.5 MB, free: 0.5078 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.272e-06/0.1051, allocations: 4.031 kB / 484.5 MB, free: 0.5039 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.062e-06/0.1051, allocations: 7.938 kB / 484.5 MB, free: 0.4961 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.91e-07/0.1051, allocations: 0 / 484.5 MB, free: 0.4961 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.348e-05/0.1052, allocations: 64.92 kB / 484.6 MB, free: 424 kB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.114e-05/0.1052, allocations: 89.03 kB / 484.7 MB, free: 316 kB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.13e-05/0.1052, allocations: 3.984 kB / 484.7 MB, free: 312 kB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.806e-05/0.1053, allocations: 4 kB / 484.7 MB, free: 308 kB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.276e-05/0.1053, allocations: 4.031 kB / 484.7 MB, free: 304 kB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.767e-06/0.1053, allocations: 0 / 484.7 MB, free: 304 kB / 350.1 MB Notification: Performance of sorting global known variables: time 3.659e-05/0.1054, allocations: 75.28 kB / 484.7 MB, free: 228 kB / 350.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1054, allocations: 4 kB / 484.8 MB, free: 224 kB / 350.1 MB Notification: Performance of remove unused functions: time 0.000251/0.1056, allocations: 39.98 kB / 484.8 MB, free: 184 kB / 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 (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.0004741/0.1061, allocations: 0.6399 MB / 485.4 MB, free: 15.51 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 6.559e-05/0.1062, allocations: 7.938 kB / 485.4 MB, free: 15.5 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.675e-06/0.1062, allocations: 0 / 485.4 MB, free: 15.5 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 3.028e-05/0.1062, allocations: 29.7 kB / 485.5 MB, free: 15.46 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001322/0.1064, allocations: 9 kB / 485.5 MB, free: 15.46 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003216/0.1067, allocations: 130.6 kB / 485.6 MB, free: 15.29 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002095/0.1069, allocations: 0.6769 MB / 486.3 MB, free: 14.59 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 1.434e-05/0.1069, allocations: 4 kB / 486.3 MB, free: 14.59 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.255e-05/0.107, allocations: 7.438 kB / 486.3 MB, free: 14.58 MB / 366.1 MB Notification: Performance of SimCode: time 2.2e-07/0.107, allocations: 0 / 486.3 MB, free: 14.58 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05045/0.1574, allocations: 1.85 MB / 488.1 MB, free: 12.79 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.575/7.733, allocations: 8.203 kB / 488.2 MB, free: 12.79 MB / 366.1 MB (rm -f ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.Test01RegFun3.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.Test01RegFun3.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.Test01RegFun3.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.Test01RegFun3.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.Test01RegFun3_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Fluid_TestUtilities_Test01RegFun3_fmu --startTime=0 --stopTime=100 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Fluid_TestUtilities_Test01RegFun3.fmu > ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.Test01RegFun3.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.Test01RegFun3_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Fluid/TestUtilities/Test01RegFun3/Test01RegFun3.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.Test01RegFun3.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches