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.001335/0.001336, allocations: 108.3 kB / 17.32 MB, free: 5.672 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001529/0.001529, allocations: 205.8 kB / 18.26 MB, free: 4.969 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.349/1.349, allocations: 227.4 MB / 246.4 MB, free: 10.79 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2165/0.2165, allocations: 46.1 MB / 343.8 MB, free: 11.75 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001406/0.001406, allocations: 72.62 kB / 417.1 MB, free: 19.97 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.102/0.1034, allocations: 62.45 MB / 479.6 MB, free: 5.5 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.Test01RegFun3): time 0.001788/0.1053, allocations: 0.5359 MB / 480.1 MB, free: 4.961 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001893/0.1072, allocations: 1.413 MB / 481.5 MB, free: 3.527 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.38e-05/0.1072, allocations: 0 / 481.5 MB, free: 3.527 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.537e-05/0.1072, allocations: 0 / 481.5 MB, free: 3.527 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 3.544e-05/0.1073, allocations: 0 / 481.5 MB, free: 3.527 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007454/0.108, allocations: 218.8 kB / 481.8 MB, free: 3.32 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 5.592e-05/0.1081, allocations: 15.92 kB / 481.8 MB, free: 3.305 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.161e-05/0.1081, allocations: 3.938 kB / 481.8 MB, free: 3.301 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.842e-05/0.1082, allocations: 8 kB / 481.8 MB, free: 3.293 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.196e-05/0.1082, allocations: 0 / 481.8 MB, free: 3.293 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.162e-05/0.1082, allocations: 0 / 481.8 MB, free: 3.293 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004321/0.1087, allocations: 275.6 kB / 482.1 MB, free: 3.023 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.304e-05/0.1087, allocations: 4 kB / 482.1 MB, free: 3.02 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 1.841e-05/0.1087, allocations: 7.938 kB / 482.1 MB, free: 3.012 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002081/0.1089, allocations: 143.7 kB / 482.2 MB, free: 2.871 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.19e-06/0.1089, allocations: 4 kB / 482.2 MB, free: 2.867 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.523e-06/0.109, allocations: 0 / 482.2 MB, free: 2.867 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.548e-06/0.109, 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: 1 * Number of variables: 1 Notification: Performance of Generate backend data structure: time 0.0003664/0.1093, allocations: 335.6 kB / 482.5 MB, free: 2.492 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.732e-05/0.1094, allocations: 12.03 kB / 482.6 MB, free: 2.48 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.086e-05/0.1094, allocations: 30.75 kB / 482.6 MB, free: 2.441 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.479e-05/0.1094, allocations: 4.875 kB / 482.6 MB, free: 2.438 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001079/0.1096, allocations: 164.3 kB / 482.7 MB, free: 2.238 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.909e-06/0.1096, allocations: 4.375 kB / 482.8 MB, free: 2.234 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.295e-06/0.1096, allocations: 384 / 482.8 MB, free: 2.234 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.741e-05/0.1097, allocations: 37.81 kB / 482.8 MB, free: 2.191 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.251e-06/0.1097, allocations: 4 kB / 482.8 MB, free: 2.188 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.165e-06/0.1097, allocations: 0 / 482.8 MB, free: 2.188 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.362e-06/0.1097, allocations: 0 / 482.8 MB, free: 2.188 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.09e-05/0.1097, allocations: 4 kB / 482.8 MB, free: 2.184 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001357/0.1099, allocations: 153.7 kB / 482.9 MB, free: 1.984 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.64e-05/0.1099, allocations: 18.61 kB / 483 MB, free: 1.957 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.996e-05/0.11, allocations: 12.86 kB / 483 MB, free: 1.941 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.706e-06/0.11, allocations: 3.938 kB / 483 MB, free: 1.938 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.387e-05/0.11, allocations: 38.5 kB / 483 MB, free: 1.891 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 1.132e-06/0.11, allocations: 0 / 483 MB, free: 1.891 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001311/0.1102, allocations: 33.7 kB / 483.1 MB, free: 1.852 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.467e-05/0.1102, allocations: 55.34 kB / 483.1 MB, free: 1.785 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.118e-05/0.1103, allocations: 101.8 kB / 483.2 MB, free: 1.676 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.409e-05/0.1103, allocations: 25.7 kB / 483.2 MB, free: 1.645 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.034e-05/0.1103, allocations: 80.39 kB / 483.3 MB, free: 1.562 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.098e-05/0.1104, allocations: 4.281 kB / 483.3 MB, free: 1.559 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.857e-05/0.1104, allocations: 13.72 kB / 483.3 MB, free: 1.539 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001054/0.1105, allocations: 310.8 kB / 483.6 MB, free: 1.227 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.064e-05/0.1105, allocations: 0 / 483.6 MB, free: 1.227 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.738e-06/0.1105, allocations: 4 kB / 483.6 MB, free: 1.223 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.846e-05/0.1106, allocations: 12.86 kB / 483.6 MB, free: 1.207 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.417e-06/0.1106, allocations: 3.984 kB / 483.6 MB, free: 1.203 MB / 350.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.83e-05/0.1107, allocations: 41.64 kB / 483.7 MB, free: 1.156 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.951e-05/0.1107, allocations: 10.97 kB / 483.7 MB, free: 1.148 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.048e-06/0.1107, allocations: 3.938 kB / 483.7 MB, free: 1.145 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.111e-05/0.1107, allocations: 0 / 483.7 MB, free: 1.145 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.98e-05/0.1108, allocations: 0 / 483.7 MB, free: 1.145 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.63e-06/0.1108, allocations: 0 / 483.7 MB, free: 1.145 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.852e-05/0.1108, allocations: 7.938 kB / 483.7 MB, free: 1.137 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.143e-06/0.1108, allocations: 0 / 483.7 MB, free: 1.137 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.799e-05/0.1109, allocations: 113.8 kB / 483.8 MB, free: 1.016 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.077e-05/0.1109, allocations: 7.969 kB / 483.8 MB, free: 1.008 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001134/0.111, allocations: 40.83 kB / 483.9 MB, free: 0.9648 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.978e-06/0.111, allocations: 4 kB / 483.9 MB, free: 0.9609 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.667e-06/0.111, allocations: 0 / 483.9 MB, free: 0.9609 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.165e-06/0.111, allocations: 0 / 483.9 MB, free: 0.9609 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.516e-05/0.1111, allocations: 145.7 kB / 484 MB, free: 0.7695 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.842e-06/0.1112, allocations: 4 kB / 484 MB, free: 0.7656 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.104e-06/0.1112, allocations: 7.969 kB / 484 MB, free: 0.7578 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.244e-06/0.1112, allocations: 0 / 484 MB, free: 0.7578 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.704e-06/0.1112, allocations: 0 / 484 MB, free: 0.7578 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.472e-06/0.1112, allocations: 3.938 kB / 484 MB, free: 0.7539 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.258e-06/0.1112, allocations: 3.984 kB / 484 MB, free: 0.75 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.919e-05/0.1113, allocations: 64.98 kB / 484.1 MB, free: 0.668 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.279e-05/0.1113, allocations: 81.05 kB / 484.2 MB, free: 0.5703 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.24e-05/0.1113, allocations: 4 kB / 484.2 MB, free: 0.5664 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.231e-05/0.1114, allocations: 12.02 kB / 484.2 MB, free: 0.5547 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.455e-05/0.1114, allocations: 3.984 kB / 484.2 MB, free: 0.5508 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.591e-06/0.1115, allocations: 4 kB / 484.2 MB, free: 0.5469 MB / 350.1 MB Notification: Performance of sorting global known variables: time 3.139e-05/0.1115, allocations: 79.28 kB / 484.3 MB, free: 480 kB / 350.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1115, allocations: 0 / 484.3 MB, free: 480 kB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002664/0.1118, allocations: 40 kB / 484.3 MB, free: 440 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.0004995/0.1123, allocations: 0.6437 MB / 485 MB, free: 15.75 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 6.44e-05/0.1123, allocations: 8 kB / 485 MB, free: 15.75 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.054e-06/0.1124, allocations: 0 / 485 MB, free: 15.75 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 3.257e-05/0.1124, allocations: 29.7 kB / 485 MB, free: 15.71 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001376/0.1125, allocations: 2.406 kB / 485 MB, free: 15.71 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003399/0.1129, allocations: 130.7 kB / 485.1 MB, free: 15.54 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002277/0.1131, allocations: 0.6767 MB / 485.8 MB, free: 14.84 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 1.666e-05/0.1131, allocations: 3.984 kB / 485.8 MB, free: 14.84 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.244e-05/0.1132, allocations: 7.438 kB / 485.8 MB, free: 14.83 MB / 366.1 MB Notification: Performance of SimCode: time 3.3e-07/0.1132, allocations: 3.938 kB / 485.8 MB, free: 14.82 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01075/0.1239, allocations: 1.772 MB / 487.6 MB, free: 13.16 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001766/0.1241, allocations: 199.1 kB / 487.8 MB, free: 12.91 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.705/1.83, allocations: 0 / 487.8 MB, free: 12.91 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