Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.Test02RegFun3.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.Test02RegFun3,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Fluid_TestUtilities_Test02RegFun3",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestUtilities.Test02RegFun3,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Fluid_TestUtilities_Test02RegFun3",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001234/0.001234, allocations: 106.8 kB / 17.33 MB, free: 5.992 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001485/0.001485, allocations: 205.8 kB / 18.26 MB, free: 5.074 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.401/1.401, allocations: 227.4 MB / 246.4 MB, free: 10.77 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2339/0.2339, allocations: 46.1 MB / 343.8 MB, free: 11.75 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001781/0.001781, allocations: 80.22 kB / 417.1 MB, free: 19.97 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1224/0.1242, allocations: 62.44 MB / 479.6 MB, free: 5.512 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.Test02RegFun3): time 0.001757/0.126, allocations: 0.5553 MB / 480.1 MB, free: 4.953 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0019/0.1279, allocations: 1.413 MB / 481.6 MB, free: 3.52 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.697e-05/0.1279, allocations: 0 / 481.6 MB, free: 3.52 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.588e-05/0.128, allocations: 0 / 481.6 MB, free: 3.52 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 2.57e-05/0.128, allocations: 0 / 481.6 MB, free: 3.52 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007085/0.1287, allocations: 207.7 kB / 481.8 MB, free: 3.32 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 4.43e-05/0.1288, allocations: 15.91 kB / 481.8 MB, free: 3.305 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.375e-05/0.1288, allocations: 4 kB / 481.8 MB, free: 3.301 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.82e-05/0.1288, allocations: 4 kB / 481.8 MB, free: 3.297 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.21e-05/0.1289, allocations: 4 kB / 481.8 MB, free: 3.293 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.032e-05/0.1289, allocations: 0 / 481.8 MB, free: 3.293 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004443/0.1294, allocations: 275.6 kB / 482.1 MB, free: 3.023 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.233e-05/0.1294, allocations: 0 / 482.1 MB, free: 3.023 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.035e-05/0.1294, allocations: 3.938 kB / 482.1 MB, free: 3.02 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002376/0.1296, allocations: 151.7 kB / 482.2 MB, free: 2.871 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.707e-06/0.1297, allocations: 4 kB / 482.2 MB, free: 2.867 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.243e-06/0.1297, allocations: 0 / 482.2 MB, free: 2.867 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.668e-06/0.1297, allocations: 0 / 482.2 MB, free: 2.867 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: 3 * Number of variables: 3 Notification: Performance of Generate backend data structure: time 0.0003592/0.13, allocations: 335.6 kB / 482.5 MB, free: 2.492 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.133e-05/0.1301, allocations: 8.031 kB / 482.5 MB, free: 2.484 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.619e-05/0.1301, allocations: 38.69 kB / 482.6 MB, free: 2.438 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.652e-05/0.1302, allocations: 0.9375 kB / 482.6 MB, free: 2.438 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.366e-05/0.1303, allocations: 160.4 kB / 482.7 MB, free: 2.242 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.245e-05/0.1303, allocations: 4.375 kB / 482.7 MB, free: 2.238 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.534e-06/0.1303, allocations: 4.375 kB / 482.7 MB, free: 2.234 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001083/0.1304, allocations: 45.81 kB / 482.8 MB, free: 2.184 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.643e-06/0.1304, allocations: 3.938 kB / 482.8 MB, free: 2.18 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.328e-06/0.1304, allocations: 0 / 482.8 MB, free: 2.18 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.278e-06/0.1304, allocations: 0 / 482.8 MB, free: 2.18 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.813e-05/0.1305, allocations: 7.984 kB / 482.8 MB, free: 2.172 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004234/0.1309, allocations: 244.9 kB / 483 MB, free: 1.883 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.868e-05/0.131, allocations: 22.58 kB / 483.1 MB, free: 1.852 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.816e-05/0.131, allocations: 4.859 kB / 483.1 MB, free: 1.844 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.388e-06/0.131, allocations: 3.938 kB / 483.1 MB, free: 1.84 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.62e-05/0.131, allocations: 34.55 kB / 483.1 MB, free: 1.797 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 1.182e-06/0.1311, allocations: 0 / 483.1 MB, free: 1.797 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001405/0.1312, allocations: 45.61 kB / 483.2 MB, free: 1.746 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.079e-05/0.1312, allocations: 51.41 kB / 483.2 MB, free: 1.684 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.896e-05/0.1313, allocations: 98.27 kB / 483.3 MB, free: 1.578 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.463e-05/0.1313, allocations: 25.7 kB / 483.3 MB, free: 1.547 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.249e-05/0.1314, allocations: 92.06 kB / 483.4 MB, free: 1.453 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.835e-06/0.1314, allocations: 3.906 kB / 483.4 MB, free: 1.449 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.113e-05/0.1315, allocations: 13.72 kB / 483.4 MB, free: 1.43 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001405/0.1316, allocations: 314.8 kB / 483.7 MB, free: 1.113 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.796e-05/0.1316, allocations: 4 kB / 483.7 MB, free: 1.109 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.611e-05/0.1317, allocations: 38.67 kB / 483.8 MB, free: 1.062 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.761e-05/0.1317, allocations: 22.52 kB / 483.8 MB, free: 1.031 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.355e-06/0.1317, allocations: 0 / 483.8 MB, free: 1.031 MB / 350.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 9.301e-05/0.1318, allocations: 53.62 kB / 483.9 MB, free: 0.9727 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.383e-05/0.1318, allocations: 4 kB / 483.9 MB, free: 0.9688 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.182e-06/0.1319, allocations: 4.094 kB / 483.9 MB, free: 0.9648 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.217e-05/0.1319, allocations: 0 / 483.9 MB, free: 0.9648 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.786e-05/0.1319, allocations: 8 kB / 483.9 MB, free: 0.957 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.831e-06/0.1319, allocations: 0 / 483.9 MB, free: 0.957 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.05e-05/0.132, allocations: 0 / 483.9 MB, free: 0.957 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.728e-06/0.132, allocations: 4 kB / 483.9 MB, free: 0.9531 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * 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 (3): * Single equations (assignments): 3 * 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.299e-05/0.1321, allocations: 113.8 kB / 484 MB, free: 0.832 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.334e-05/0.1321, allocations: 0 / 484 MB, free: 0.832 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001157/0.1322, allocations: 48.75 kB / 484 MB, free: 0.7812 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.929e-06/0.1322, allocations: 4 kB / 484 MB, free: 0.7773 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.669e-06/0.1322, allocations: 0 / 484 MB, free: 0.7773 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.375e-06/0.1323, allocations: 0 / 484 MB, free: 0.7773 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001654/0.1324, allocations: 157.5 kB / 484.2 MB, free: 0.5742 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.933e-06/0.1324, allocations: 4 kB / 484.2 MB, free: 0.5703 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.21e-07/0.1324, allocations: 0 / 484.2 MB, free: 0.5703 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.864e-06/0.1324, allocations: 0 / 484.2 MB, free: 0.5703 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.474e-06/0.1325, allocations: 0 / 484.2 MB, free: 0.5703 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.845e-06/0.1325, allocations: 8.031 kB / 484.2 MB, free: 0.5625 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.425e-06/0.1325, allocations: 3.938 kB / 484.2 MB, free: 0.5586 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001117/0.1326, allocations: 143.4 kB / 484.3 MB, free: 412 kB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.898e-05/0.1326, allocations: 77.11 kB / 484.4 MB, free: 316 kB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.581e-05/0.1327, allocations: 4 kB / 484.4 MB, free: 312 kB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.775e-05/0.1327, allocations: 0 / 484.4 MB, free: 312 kB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.136e-05/0.1327, allocations: 0 / 484.4 MB, free: 312 kB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.589e-06/0.1328, allocations: 4.031 kB / 484.4 MB, free: 308 kB / 350.1 MB Notification: Performance of sorting global known variables: time 4.624e-05/0.1328, allocations: 79.28 kB / 484.5 MB, free: 228 kB / 350.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.1328, allocations: 0 / 484.5 MB, free: 228 kB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003018/0.1331, allocations: 43.98 kB / 484.5 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.0005997/0.1337, allocations: 0.7047 MB / 485.3 MB, free: 15.45 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 9.092e-05/0.1338, allocations: 11.94 kB / 485.3 MB, free: 15.43 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.394e-06/0.1338, allocations: 0 / 485.3 MB, free: 15.43 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 3.498e-05/0.1339, allocations: 33.69 kB / 485.3 MB, free: 15.39 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002158/0.1341, allocations: 10.34 kB / 485.3 MB, free: 15.39 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003997/0.1345, allocations: 126.6 kB / 485.4 MB, free: 15.22 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002503/0.1348, allocations: 0.669 MB / 486.1 MB, free: 14.53 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 2.988e-05/0.1348, allocations: 8.25 kB / 486.1 MB, free: 14.52 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.9e-05/0.1348, allocations: 11.44 kB / 486.1 MB, free: 14.51 MB / 366.1 MB Notification: Performance of SimCode: time 2.61e-07/0.1348, allocations: 3.938 kB / 486.1 MB, free: 14.5 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01303/0.1479, allocations: 1.781 MB / 487.9 MB, free: 12.84 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001815/0.1481, allocations: 203.6 kB / 488.1 MB, free: 12.58 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.923/2.071, allocations: 0 / 488.1 MB, free: 12.58 MB / 366.1 MB (rm -f ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.Test02RegFun3.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.Test02RegFun3.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.Test02RegFun3.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.Test02RegFun3.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.Test02RegFun3_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Fluid_TestUtilities_Test02RegFun3_fmu --startTime=0 --stopTime=100 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Fluid_TestUtilities_Test02RegFun3.fmu > ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.Test02RegFun3.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.Test02RegFun3_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Fluid/TestUtilities/Test02RegFun3/Test02RegFun3.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.Test02RegFun3.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches