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.001531/0.001531, allocations: 104.8 kB / 17.2 MB, free: 6.289 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001897/0.001897, allocations: 209.8 kB / 18.14 MB, free: 5.371 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.407/1.407, allocations: 227.4 MB / 246.3 MB, free: 10.76 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2187/0.2187, allocations: 46.09 MB / 343.6 MB, free: 11.84 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001418/0.001418, allocations: 81.59 kB / 416.9 MB, free: 20.14 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1286/0.13, allocations: 62.44 MB / 479.4 MB, free: 5.688 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.Test02RegFun3): time 0.002122/0.1322, allocations: 0.5605 MB / 479.9 MB, free: 5.121 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002154/0.1344, allocations: 1.458 MB / 481.4 MB, free: 3.645 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.433e-05/0.1344, allocations: 0 / 481.4 MB, free: 3.645 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 2.109e-05/0.1345, allocations: 0 / 481.4 MB, free: 3.645 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 3.127e-05/0.1345, allocations: 3.938 kB / 481.4 MB, free: 3.641 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006133/0.1352, allocations: 151.1 kB / 481.5 MB, free: 3.496 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 4.238e-05/0.1352, allocations: 11.88 kB / 481.6 MB, free: 3.484 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.676e-05/0.1353, allocations: 4 kB / 481.6 MB, free: 3.48 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.859e-05/0.1353, allocations: 3.984 kB / 481.6 MB, free: 3.477 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.455e-05/0.1353, allocations: 15.98 kB / 481.6 MB, free: 3.461 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.54e-05/0.1354, allocations: 0 / 481.6 MB, free: 3.461 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004879/0.1359, allocations: 271.6 kB / 481.8 MB, free: 3.195 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.658e-05/0.1359, allocations: 3.984 kB / 481.8 MB, free: 3.191 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.376e-05/0.1359, allocations: 3.938 kB / 481.9 MB, free: 3.188 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002558/0.1362, allocations: 143.7 kB / 482 MB, free: 3.047 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.311e-06/0.1362, allocations: 4 kB / 482 MB, free: 3.043 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.363e-06/0.1362, allocations: 0 / 482 MB, free: 3.043 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.871e-06/0.1362, allocations: 0 / 482 MB, free: 3.043 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.0004223/0.1366, allocations: 339.5 kB / 482.3 MB, free: 2.664 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.864e-05/0.1367, allocations: 8.875 kB / 482.3 MB, free: 2.656 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.178e-05/0.1367, allocations: 42.73 kB / 482.4 MB, free: 2.605 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.21e-05/0.1368, allocations: 0.9375 kB / 482.4 MB, free: 2.605 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001092/0.1369, allocations: 160.4 kB / 482.5 MB, free: 2.41 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.174e-05/0.1369, allocations: 384 / 482.5 MB, free: 2.41 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.658e-06/0.1369, allocations: 384 / 482.5 MB, free: 2.41 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001104/0.137, allocations: 45.81 kB / 482.6 MB, free: 2.359 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.653e-06/0.1371, allocations: 0 / 482.6 MB, free: 2.359 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.748e-06/0.1371, allocations: 3.938 kB / 482.6 MB, free: 2.355 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.019e-06/0.1371, allocations: 4 kB / 482.6 MB, free: 2.352 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.952e-05/0.1371, allocations: 7.938 kB / 482.6 MB, free: 2.344 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004222/0.1376, allocations: 244.9 kB / 482.8 MB, free: 2.055 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.714e-05/0.1376, allocations: 18.58 kB / 482.9 MB, free: 2.027 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.644e-05/0.1377, allocations: 4.859 kB / 482.9 MB, free: 2.02 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.072e-05/0.1377, allocations: 0 / 482.9 MB, free: 2.02 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.961e-05/0.1377, allocations: 38.5 kB / 482.9 MB, free: 1.973 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 1.253e-06/0.1377, allocations: 0 / 482.9 MB, free: 1.973 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001642/0.1379, allocations: 45.59 kB / 482.9 MB, free: 1.922 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.312e-05/0.1379, allocations: 51.41 kB / 483 MB, free: 1.859 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.38e-05/0.138, allocations: 97.86 kB / 483.1 MB, free: 1.754 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.443e-05/0.1381, allocations: 25.7 kB / 483.1 MB, free: 1.723 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.836e-05/0.1381, allocations: 84.36 kB / 483.2 MB, free: 1.637 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.464e-06/0.1381, allocations: 8.156 kB / 483.2 MB, free: 1.629 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.641e-05/0.1382, allocations: 25.7 kB / 483.2 MB, free: 1.598 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001319/0.1383, allocations: 314.8 kB / 483.5 MB, free: 1.281 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.289e-05/0.1383, allocations: 4 kB / 483.5 MB, free: 1.277 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.289e-05/0.1384, allocations: 26.56 kB / 483.6 MB, free: 1.242 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.106e-05/0.1384, allocations: 26.52 kB / 483.6 MB, free: 1.207 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.693e-06/0.1384, allocations: 0 / 483.6 MB, free: 1.207 MB / 350.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 8.37e-05/0.1385, allocations: 53.62 kB / 483.6 MB, free: 1.148 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.586e-05/0.1385, allocations: 4 kB / 483.6 MB, free: 1.145 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.633e-06/0.1385, allocations: 0 / 483.6 MB, free: 1.145 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.448e-05/0.1386, allocations: 0 / 483.6 MB, free: 1.145 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.724e-05/0.1386, allocations: 11.98 kB / 483.7 MB, free: 1.133 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.141e-06/0.1386, allocations: 0 / 483.7 MB, free: 1.133 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.123e-05/0.1387, allocations: 4.094 kB / 483.7 MB, free: 1.129 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.269e-05/0.1387, allocations: 4 kB / 483.7 MB, free: 1.125 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 9.2e-05/0.1388, allocations: 113.8 kB / 483.8 MB, free: 1.004 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.343e-05/0.1388, allocations: 3.938 kB / 483.8 MB, free: 1 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001172/0.1389, allocations: 40.81 kB / 483.8 MB, free: 0.957 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.203e-06/0.139, allocations: 4 kB / 483.8 MB, free: 0.9531 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.18e-06/0.139, allocations: 4.031 kB / 483.8 MB, free: 0.9492 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.597e-06/0.139, allocations: 0 / 483.8 MB, free: 0.9492 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001661/0.1391, allocations: 157.5 kB / 484 MB, free: 0.7461 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.364e-06/0.1392, allocations: 4 kB / 484 MB, free: 0.7422 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.046e-06/0.1392, allocations: 3.984 kB / 484 MB, free: 0.7383 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.914e-06/0.1392, allocations: 0 / 484 MB, free: 0.7383 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.803e-06/0.1392, allocations: 0 / 484 MB, free: 0.7383 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.224e-06/0.1392, allocations: 0 / 484 MB, free: 0.7383 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.263e-06/0.1392, allocations: 0 / 484 MB, free: 0.7383 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001176/0.1393, allocations: 139.4 kB / 484.1 MB, free: 0.5859 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.636e-05/0.1394, allocations: 81.05 kB / 484.2 MB, free: 500 kB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.444e-05/0.1394, allocations: 3.984 kB / 484.2 MB, free: 496 kB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.786e-05/0.1394, allocations: 8 kB / 484.2 MB, free: 488 kB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.255e-05/0.1395, allocations: 0 / 484.2 MB, free: 488 kB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.877e-06/0.1395, allocations: 0 / 484.2 MB, free: 488 kB / 350.1 MB Notification: Performance of sorting global known variables: time 3.503e-05/0.1395, allocations: 79.28 kB / 484.3 MB, free: 408 kB / 350.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1395, allocations: 0 / 484.3 MB, free: 408 kB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003071/0.1398, allocations: 40.12 kB / 484.3 MB, free: 368 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.0006543/0.1405, allocations: 0.7085 MB / 485 MB, free: 15.62 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 7.655e-05/0.1406, allocations: 11.94 kB / 485.1 MB, free: 15.61 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.254e-06/0.1406, allocations: 0 / 485.1 MB, free: 15.61 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 3.626e-05/0.1407, allocations: 33.92 kB / 485.1 MB, free: 15.57 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002115/0.1409, allocations: 3.938 kB / 485.1 MB, free: 15.57 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004146/0.1413, allocations: 128.4 kB / 485.2 MB, free: 15.4 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002791/0.1416, allocations: 0.6731 MB / 485.9 MB, free: 14.7 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 2.806e-05/0.1416, allocations: 7.938 kB / 485.9 MB, free: 14.69 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.388e-05/0.1417, allocations: 7.438 kB / 485.9 MB, free: 14.69 MB / 366.1 MB Notification: Performance of SimCode: time 5.81e-07/0.1417, allocations: 3.938 kB / 485.9 MB, free: 14.68 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01164/0.1533, allocations: 1.727 MB / 487.6 MB, free: 13.05 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.00018/0.1535, allocations: 211.3 kB / 487.8 MB, free: 12.78 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.872/2.026, allocations: 0 / 487.8 MB, free: 12.78 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