Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.Test02RegFun3.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestUtilities.Test02RegFun3,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Fluid_TestUtilities_Test02RegFun3",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestUtilities.Test02RegFun3,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Fluid_TestUtilities_Test02RegFun3",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001185/0.001184, allocations: 105 kB / 17.21 MB, free: 6.273 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001196/0.001197, allocations: 194 kB / 18.12 MB, free: 5.363 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.327/1.327, allocations: 222.9 MB / 241.8 MB, free: 15.43 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2059/0.2059, allocations: 44.17 MB / 336.1 MB, free: 2.988 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002204/0.002204, allocations: 59.64 kB / 407.8 MB, free: 27.59 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1329/0.1351, allocations: 60.82 MB / 468.6 MB, free: 14.74 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.Test02RegFun3): time 0.001895/0.1371, allocations: 0.5565 MB / 469.2 MB, free: 14.18 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002038/0.1391, allocations: 1.403 MB / 470.6 MB, free: 12.76 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.395e-05/0.1392, allocations: 4 kB / 470.6 MB, free: 12.75 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.823e-05/0.1392, allocations: 4 kB / 470.6 MB, free: 12.75 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 2.668e-05/0.1392, allocations: 0 / 470.6 MB, free: 12.75 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005708/0.1398, allocations: 150.4 kB / 470.7 MB, free: 12.61 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 3.795e-05/0.1399, allocations: 4 kB / 470.7 MB, free: 12.6 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.436e-05/0.1399, allocations: 4 kB / 470.7 MB, free: 12.6 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.722e-05/0.1399, allocations: 3.938 kB / 470.7 MB, free: 12.59 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.958e-05/0.14, allocations: 7.984 kB / 470.8 MB, free: 12.59 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.167e-05/0.14, allocations: 0 / 470.8 MB, free: 12.59 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004499/0.1405, allocations: 267.6 kB / 471 MB, free: 12.32 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.698e-05/0.1405, allocations: 11.97 kB / 471 MB, free: 12.31 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.24e-05/0.1405, allocations: 3.938 kB / 471 MB, free: 12.31 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002441/0.1408, allocations: 139.7 kB / 471.2 MB, free: 12.17 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.37e-06/0.1408, allocations: 4 kB / 471.2 MB, free: 12.17 MB / 350.1 MB Notification: Performance of FrontEnd: time 7.91e-07/0.1408, allocations: 0 / 471.2 MB, free: 12.17 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.468e-06/0.1408, allocations: 0 / 471.2 MB, free: 12.17 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.0003982/0.1412, allocations: 331.6 kB / 471.5 MB, free: 11.8 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.718e-05/0.1413, allocations: 8.031 kB / 471.5 MB, free: 11.79 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.106e-05/0.1413, allocations: 38.75 kB / 471.5 MB, free: 11.74 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.79e-05/0.1414, allocations: 4.938 kB / 471.5 MB, free: 11.74 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.846e-05/0.1414, allocations: 160.4 kB / 471.7 MB, free: 11.54 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.077e-06/0.1415, allocations: 384 / 471.7 MB, free: 11.54 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.324e-06/0.1415, allocations: 384 / 471.7 MB, free: 11.54 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001212/0.1416, allocations: 49.75 kB / 471.8 MB, free: 11.49 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.344e-06/0.1416, allocations: 0 / 471.8 MB, free: 11.49 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.758e-06/0.1416, allocations: 0 / 471.8 MB, free: 11.49 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.609e-06/0.1416, allocations: 0 / 471.8 MB, free: 11.49 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.422e-05/0.1417, allocations: 4 kB / 471.8 MB, free: 11.48 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003711/0.1421, allocations: 248.9 kB / 472 MB, free: 11.19 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.775e-05/0.1421, allocations: 22.58 kB / 472 MB, free: 11.16 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.184e-05/0.1421, allocations: 8.797 kB / 472 MB, free: 11.15 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.284e-06/0.1422, allocations: 3.938 kB / 472 MB, free: 11.14 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.475e-05/0.1422, allocations: 34.55 kB / 472.1 MB, free: 11.1 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 3.567e-06/0.1422, allocations: 3.984 kB / 472.1 MB, free: 11.1 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001492/0.1423, allocations: 41.67 kB / 472.1 MB, free: 11.05 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.41e-05/0.1424, allocations: 51.41 kB / 472.2 MB, free: 10.99 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.054e-05/0.1425, allocations: 97.86 kB / 472.3 MB, free: 10.88 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.678e-05/0.1425, allocations: 25.7 kB / 472.3 MB, free: 10.85 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.702e-05/0.1426, allocations: 92.25 kB / 472.4 MB, free: 10.76 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.851e-06/0.1426, allocations: 0 / 472.4 MB, free: 10.76 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.461e-05/0.1426, allocations: 17.72 kB / 472.4 MB, free: 10.73 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001145/0.1428, allocations: 319 kB / 472.7 MB, free: 10.41 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.596e-05/0.1428, allocations: 7.938 kB / 472.7 MB, free: 10.41 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.011e-05/0.1428, allocations: 26.56 kB / 472.7 MB, free: 10.37 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.724e-05/0.1429, allocations: 22.58 kB / 472.8 MB, free: 10.34 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.853e-06/0.1429, allocations: 0 / 472.8 MB, free: 10.34 MB / 350.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 8.612e-05/0.143, allocations: 57.62 kB / 472.8 MB, free: 10.28 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.629e-05/0.143, allocations: 4 kB / 472.8 MB, free: 10.27 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.731e-06/0.143, allocations: 3.938 kB / 472.8 MB, free: 10.27 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.303e-05/0.143, allocations: 0 / 472.8 MB, free: 10.27 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.407e-05/0.1431, allocations: 11.94 kB / 472.8 MB, free: 10.26 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.843e-06/0.1431, allocations: 0 / 472.8 MB, free: 10.26 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.754e-05/0.1431, allocations: 0 / 472.8 MB, free: 10.26 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.626e-06/0.1431, allocations: 4 kB / 472.8 MB, free: 10.25 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.195e-05/0.1432, allocations: 109.9 kB / 472.9 MB, free: 10.14 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.593e-05/0.1432, allocations: 8 kB / 473 MB, free: 10.13 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001246/0.1434, allocations: 52.67 kB / 473 MB, free: 10.07 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.436e-05/0.1434, allocations: 4 kB / 473 MB, free: 10.07 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.05e-06/0.1434, allocations: 3.938 kB / 473 MB, free: 10.06 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.675e-06/0.1434, allocations: 0 / 473 MB, free: 10.06 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000154/0.1436, allocations: 153.6 kB / 473.2 MB, free: 9.863 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.338e-06/0.1436, allocations: 4 kB / 473.2 MB, free: 9.859 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.022e-06/0.1436, allocations: 4.031 kB / 473.2 MB, free: 9.855 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.793e-06/0.1436, allocations: 0 / 473.2 MB, free: 9.855 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.362e-06/0.1436, allocations: 0 / 473.2 MB, free: 9.855 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.781e-06/0.1436, allocations: 3.984 kB / 473.2 MB, free: 9.852 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.816e-06/0.1436, allocations: 0 / 473.2 MB, free: 9.852 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001029/0.1437, allocations: 135.4 kB / 473.3 MB, free: 9.703 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.608e-05/0.1438, allocations: 77.11 kB / 473.4 MB, free: 9.609 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.411e-05/0.1438, allocations: 4 kB / 473.4 MB, free: 9.605 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.427e-05/0.1439, allocations: 8.031 kB / 473.4 MB, free: 9.598 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.321e-05/0.1439, allocations: 0 / 473.4 MB, free: 9.598 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.338e-06/0.1439, allocations: 0 / 473.4 MB, free: 9.598 MB / 350.1 MB Notification: Performance of sorting global known variables: time 3.264e-05/0.1439, allocations: 79.28 kB / 473.5 MB, free: 9.52 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1439, allocations: 0 / 473.5 MB, free: 9.52 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002935/0.1442, allocations: 39.98 kB / 473.5 MB, free: 9.48 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.000527/0.1448, allocations: 0.7121 MB / 474.2 MB, free: 8.746 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 7.215e-05/0.1448, allocations: 11.94 kB / 474.2 MB, free: 8.734 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.933e-06/0.1449, allocations: 0 / 474.2 MB, free: 8.734 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 3.348e-05/0.1449, allocations: 29.7 kB / 474.3 MB, free: 8.699 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002132/0.1451, allocations: 3.984 kB / 474.3 MB, free: 8.695 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003787/0.1455, allocations: 128.7 kB / 474.4 MB, free: 8.527 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002939/0.1458, allocations: 0.6731 MB / 475.1 MB, free: 7.828 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 2.831e-05/0.1458, allocations: 0 / 475.1 MB, free: 7.828 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.516e-05/0.1459, allocations: 15.38 kB / 475.1 MB, free: 7.812 MB / 350.1 MB Notification: Performance of SimCode: time 3.21e-07/0.1459, allocations: 0 / 475.1 MB, free: 7.812 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01313/0.159, allocations: 1.714 MB / 476.8 MB, free: 6.188 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001959/0.1592, allocations: 207.7 kB / 477 MB, free: 5.926 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.856/2.015, allocations: 0 / 477 MB, free: 5.926 MB / 350.1 MB (rm -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.Test02RegFun3.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.Test02RegFun3.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.Test02RegFun3.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.Test02RegFun3.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.Test02RegFun3_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Fluid_TestUtilities_Test02RegFun3_fmu --startTime=0 --stopTime=100 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Fluid_TestUtilities_Test02RegFun3.fmu > ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.Test02RegFun3.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_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_4.0.0_ModelicaTest.Fluid.TestUtilities.Test02RegFun3.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches