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.001486/0.001486, allocations: 105.2 kB / 17.21 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.001737/0.001737, allocations: 205.8 kB / 18.13 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.41/1.41, 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.2321/0.2321, allocations: 46.1 MB / 343.6 MB, free: 11.83 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002515/0.002515, allocations: 72.39 kB / 416.9 MB, free: 20.13 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1318/0.1344, allocations: 62.44 MB / 479.4 MB, free: 5.66 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.Test01RegFun3): time 0.001643/0.1361, allocations: 0.5506 MB / 479.9 MB, free: 5.105 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001754/0.1378, allocations: 1.458 MB / 481.4 MB, free: 3.629 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.434e-05/0.1379, allocations: 4 kB / 481.4 MB, free: 3.625 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.523e-05/0.1379, allocations: 0 / 481.4 MB, free: 3.625 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 2.32e-05/0.1379, allocations: 0 / 481.4 MB, free: 3.625 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004917/0.1384, allocations: 159.5 kB / 481.5 MB, free: 3.473 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 3.412e-05/0.1385, allocations: 7.938 kB / 481.6 MB, free: 3.465 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.413e-05/0.1385, allocations: 8 kB / 481.6 MB, free: 3.457 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.7e-05/0.1385, allocations: 3.984 kB / 481.6 MB, free: 3.453 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.431e-05/0.1386, allocations: 4 kB / 481.6 MB, free: 3.449 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.312e-05/0.1386, allocations: 0 / 481.6 MB, free: 3.449 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003968/0.139, allocations: 279.6 kB / 481.8 MB, free: 3.176 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.09e-05/0.139, allocations: 4 kB / 481.8 MB, free: 3.172 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.296e-05/0.1391, allocations: 7.922 kB / 481.9 MB, free: 3.164 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002115/0.1393, allocations: 143.7 kB / 482 MB, free: 3.023 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.468e-06/0.1393, allocations: 0 / 482 MB, free: 3.023 MB / 350.1 MB Notification: Performance of FrontEnd: time 7.92e-07/0.1393, allocations: 0 / 482 MB, free: 3.023 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.055e-06/0.1393, allocations: 0 / 482 MB, free: 3.023 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.0003452/0.1396, allocations: 335.6 kB / 482.3 MB, free: 2.648 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.969e-05/0.1397, allocations: 8.875 kB / 482.3 MB, free: 2.641 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.694e-05/0.1397, allocations: 34.73 kB / 482.4 MB, free: 2.598 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.997e-05/0.1398, allocations: 4.938 kB / 482.4 MB, free: 2.594 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001151/0.1399, allocations: 168.3 kB / 482.5 MB, free: 2.391 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.432e-06/0.1399, allocations: 384 / 482.5 MB, free: 2.391 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.596e-06/0.1399, allocations: 384 / 482.5 MB, free: 2.391 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.385e-05/0.14, allocations: 37.77 kB / 482.6 MB, free: 2.348 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.232e-06/0.14, allocations: 0 / 482.6 MB, free: 2.348 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.538e-06/0.14, allocations: 4 kB / 482.6 MB, free: 2.344 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.818e-06/0.14, allocations: 0 / 482.6 MB, free: 2.344 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.081e-05/0.1401, allocations: 11.92 kB / 482.6 MB, free: 2.332 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001372/0.1402, allocations: 149.7 kB / 482.7 MB, free: 2.137 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.347e-05/0.1402, allocations: 18.61 kB / 482.8 MB, free: 2.109 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.721e-05/0.1403, allocations: 4.859 kB / 482.8 MB, free: 2.102 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.337e-06/0.1403, allocations: 0 / 482.8 MB, free: 2.102 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.328e-05/0.1403, allocations: 50.42 kB / 482.8 MB, free: 2.043 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 2.044e-06/0.1403, allocations: 3.984 kB / 482.8 MB, free: 2.039 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.000114/0.1405, allocations: 33.7 kB / 482.8 MB, free: 2 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.68e-05/0.1405, allocations: 59.53 kB / 482.9 MB, free: 1.93 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.163e-05/0.1406, allocations: 89.86 kB / 483 MB, free: 1.832 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.321e-05/0.1406, allocations: 25.7 kB / 483 MB, free: 1.801 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.181e-05/0.1406, allocations: 88.12 kB / 483.1 MB, free: 1.711 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.306e-05/0.1407, allocations: 288 / 483.1 MB, free: 1.711 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.051e-05/0.1407, allocations: 17.72 kB / 483.1 MB, free: 1.688 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001184/0.1408, allocations: 310.8 kB / 483.4 MB, free: 1.375 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.125e-05/0.1408, allocations: 8.125 kB / 483.4 MB, free: 1.367 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.552e-06/0.1408, allocations: 0 / 483.4 MB, free: 1.367 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.717e-05/0.1409, allocations: 12.8 kB / 483.4 MB, free: 1.352 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.493e-06/0.1409, allocations: 0 / 483.4 MB, free: 1.352 MB / 350.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 5.489e-05/0.1409, allocations: 45.62 kB / 483.5 MB, free: 1.301 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.124e-05/0.141, allocations: 4 kB / 483.5 MB, free: 1.297 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.436e-06/0.141, allocations: 0 / 483.5 MB, free: 1.297 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.476e-06/0.141, allocations: 0 / 483.5 MB, free: 1.297 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.221e-05/0.141, allocations: 4 kB / 483.5 MB, free: 1.293 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.87e-06/0.1411, allocations: 4.094 kB / 483.5 MB, free: 1.289 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.245e-05/0.1411, allocations: 0 / 483.5 MB, free: 1.289 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.095e-06/0.1411, allocations: 0 / 483.5 MB, free: 1.289 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 6.738e-05/0.1412, allocations: 113.8 kB / 483.6 MB, free: 1.168 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.237e-06/0.1412, allocations: 3.938 kB / 483.6 MB, free: 1.164 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001154/0.1413, allocations: 52.75 kB / 483.7 MB, free: 1.109 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.934e-06/0.1413, allocations: 0 / 483.7 MB, free: 1.109 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.597e-06/0.1413, allocations: 0 / 483.7 MB, free: 1.109 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.884e-06/0.1413, allocations: 0 / 483.7 MB, free: 1.109 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.883e-05/0.1414, allocations: 153.7 kB / 483.8 MB, free: 0.9102 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.849e-06/0.1414, allocations: 0 / 483.8 MB, free: 0.9102 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.953e-06/0.1414, allocations: 3.938 kB / 483.8 MB, free: 0.9062 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.182e-06/0.1414, allocations: 0 / 483.8 MB, free: 0.9062 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.29e-06/0.1414, allocations: 0 / 483.8 MB, free: 0.9062 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.22e-07/0.1414, allocations: 4 kB / 483.8 MB, free: 0.9023 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.71e-07/0.1414, allocations: 0 / 483.8 MB, free: 0.9023 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.352e-05/0.1415, allocations: 77 kB / 483.9 MB, free: 0.8086 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.17e-05/0.1416, allocations: 84.98 kB / 484 MB, free: 0.707 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.028e-05/0.1416, allocations: 3.938 kB / 484 MB, free: 0.7031 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.15e-05/0.1417, allocations: 4 kB / 484 MB, free: 0.6992 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.661e-05/0.1417, allocations: 0 / 484 MB, free: 0.6992 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.968e-06/0.1417, allocations: 0 / 484 MB, free: 0.6992 MB / 350.1 MB Notification: Performance of sorting global known variables: time 4.338e-05/0.1417, allocations: 87.3 kB / 484.1 MB, free: 0.6133 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1417, allocations: 0 / 484.1 MB, free: 0.6133 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002311/0.142, allocations: 40 kB / 484.1 MB, free: 0.5742 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 (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.0004983/0.1425, allocations: 0.6281 MB / 484.7 MB, free: 15.91 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 6.066e-05/0.1426, allocations: 7.938 kB / 484.7 MB, free: 15.91 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.114e-06/0.1426, allocations: 4.188 kB / 484.8 MB, free: 15.9 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 3.184e-05/0.1426, allocations: 33.69 kB / 484.8 MB, free: 15.86 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000146/0.1428, allocations: 4 kB / 484.8 MB, free: 15.86 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003402/0.1431, allocations: 124.4 kB / 484.9 MB, free: 15.7 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002339/0.1434, allocations: 0.6692 MB / 485.6 MB, free: 15 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 1.801e-05/0.1434, allocations: 4 kB / 485.6 MB, free: 15 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.212e-05/0.1434, allocations: 7.438 kB / 485.6 MB, free: 14.99 MB / 366.1 MB Notification: Performance of SimCode: time 2.5e-07/0.1434, allocations: 4.062 kB / 485.6 MB, free: 14.99 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01141/0.1548, allocations: 1.738 MB / 487.3 MB, free: 13.34 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002369/0.1551, allocations: 213.7 kB / 487.5 MB, free: 13.07 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.905/2.06, allocations: 0 / 487.5 MB, free: 13.07 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