Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.TestRegFunctions.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.TestRegFunctions,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Fluid_TestUtilities_TestRegFunctions",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestUtilities.TestRegFunctions,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Fluid_TestUtilities_TestRegFunctions",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001278/0.001278, allocations: 118.2 kB / 17.79 MB, free: 5.277 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001393/0.001393, allocations: 202 kB / 18.74 MB, free: 4.332 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.384/1.384, allocations: 227.4 MB / 246.9 MB, free: 10.46 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2235/0.2235, allocations: 46.11 MB / 344.3 MB, free: 11.47 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001539/0.001539, allocations: 75.88 kB / 480.8 MB, free: 4.566 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3229/0.3244, allocations: 62.44 MB / 0.5305 GB, free: 13.4 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.TestRegFunctions): time 0.0016/0.3261, allocations: 0.5201 MB / 0.531 GB, free: 13.01 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0004218/0.3265, allocations: 162.4 kB / 0.5312 GB, free: 12.89 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.687e-05/0.3266, allocations: 0 / 0.5312 GB, free: 12.89 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.725e-05/0.3266, allocations: 3.938 kB / 0.5312 GB, free: 12.89 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002463/0.3269, allocations: 33.44 kB / 0.5312 GB, free: 12.86 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 3.637e-06/0.3269, allocations: 0 / 0.5312 GB, free: 12.86 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 6.517e-05/0.3269, allocations: 28.83 kB / 0.5312 GB, free: 12.84 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.759e-05/0.327, allocations: 10.2 kB / 0.5312 GB, free: 12.84 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.093e-05/0.327, allocations: 11.05 kB / 0.5313 GB, free: 12.83 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.948e-05/0.3271, allocations: 16.3 kB / 0.5313 GB, free: 12.82 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 1.179e-05/0.3271, allocations: 1.062 kB / 0.5313 GB, free: 12.82 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001162/0.3272, allocations: 49.17 kB / 0.5313 GB, free: 12.79 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 1.076e-05/0.3272, allocations: 0 / 0.5313 GB, free: 12.79 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 1.95e-05/0.3273, allocations: 17.42 kB / 0.5313 GB, free: 12.78 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001134/0.3274, allocations: 36.25 kB / 0.5314 GB, free: 12.76 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.687e-06/0.3274, allocations: 5.062 kB / 0.5314 GB, free: 12.75 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.212e-06/0.3274, allocations: 0 / 0.5314 GB, free: 12.75 MB / 398.1 MB Notification: Performance of Transformations before backend: time 8.596e-06/0.3274, allocations: 4 kB / 0.5314 GB, free: 12.75 MB / 398.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 10 * Number of variables: 10 Notification: Performance of Generate backend data structure: time 0.0003294/0.3278, allocations: 349.3 kB / 0.5317 GB, free: 12.37 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.161e-05/0.3278, allocations: 9.469 kB / 0.5317 GB, free: 12.37 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.631e-05/0.3278, allocations: 37.5 kB / 0.5318 GB, free: 12.33 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.597e-05/0.3279, allocations: 2.562 kB / 0.5318 GB, free: 12.33 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001166/0.328, allocations: 161.9 kB / 0.5319 GB, free: 12.13 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.434e-05/0.328, allocations: 5.875 kB / 0.5319 GB, free: 12.13 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.706e-05/0.328, allocations: 7.312 kB / 0.5319 GB, free: 12.12 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001333/0.3282, allocations: 56.02 kB / 0.532 GB, free: 12.08 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.397e-06/0.3282, allocations: 7.938 kB / 0.532 GB, free: 12.07 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.139e-05/0.3282, allocations: 5.312 kB / 0.532 GB, free: 12.07 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.412e-06/0.3282, allocations: 5.172 kB / 0.532 GB, free: 12.06 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001026/0.3283, allocations: 49.64 kB / 0.532 GB, free: 12.04 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000188/0.3285, allocations: 192.3 kB / 0.5322 GB, free: 11.82 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001446/0.3287, allocations: 74.97 kB / 0.5323 GB, free: 11.77 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.572e-05/0.3287, allocations: 30.69 kB / 0.5323 GB, free: 11.75 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003479/0.3291, allocations: 257.5 kB / 0.5326 GB, free: 11.46 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.527e-05/0.3291, allocations: 33.12 kB / 0.5326 GB, free: 11.42 MB / 398.1 MB Notification: Performance of pre-optimization done (n=10): time 1.232e-06/0.3291, allocations: 0 / 0.5326 GB, free: 11.42 MB / 398.1 MB Notification: Performance of matching and sorting (n=10): time 0.000231/0.3294, allocations: 104.3 kB / 0.5327 GB, free: 11.35 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.873e-05/0.3294, allocations: 52.97 kB / 0.5328 GB, free: 11.29 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.524e-05/0.3295, allocations: 95.58 kB / 0.5328 GB, free: 11.19 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.553e-05/0.3295, allocations: 31.58 kB / 0.5329 GB, free: 11.15 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.773e-05/0.3296, allocations: 80.14 kB / 0.5329 GB, free: 11.07 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.889e-05/0.3296, allocations: 35.81 kB / 0.533 GB, free: 11.04 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.885e-05/0.3297, allocations: 27.59 kB / 0.533 GB, free: 11.01 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.000111/0.3298, allocations: 315.9 kB / 0.5333 GB, free: 10.7 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.044e-05/0.3298, allocations: 15.09 kB / 0.5333 GB, free: 10.69 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.036e-05/0.3298, allocations: 23.55 kB / 0.5333 GB, free: 10.68 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.367e-05/0.3299, allocations: 45.23 kB / 0.5334 GB, free: 10.66 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.994e-06/0.3299, allocations: 7.938 kB / 0.5334 GB, free: 10.65 MB / 398.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001173/0.33, allocations: 90.95 kB / 0.5335 GB, free: 10.59 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.513e-05/0.3301, allocations: 9.438 kB / 0.5335 GB, free: 10.58 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.272e-06/0.3301, allocations: 3.984 kB / 0.5335 GB, free: 10.58 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.309e-05/0.3301, allocations: 1.375 kB / 0.5335 GB, free: 10.58 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.731e-05/0.3302, allocations: 12.38 kB / 0.5335 GB, free: 10.58 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.385e-06/0.3302, allocations: 5.312 kB / 0.5335 GB, free: 10.57 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.477e-05/0.3302, allocations: 1.375 kB / 0.5335 GB, free: 10.57 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.685e-06/0.3303, allocations: 1.375 kB / 0.5335 GB, free: 10.57 MB / 398.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 (10): * Single equations (assignments): 10 * 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 8.578e-05/0.3303, allocations: 120.5 kB / 0.5336 GB, free: 10.45 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.611e-05/0.3304, allocations: 13.25 kB / 0.5336 GB, free: 10.44 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001825/0.3306, allocations: 99.45 kB / 0.5337 GB, free: 10.37 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.715e-06/0.3306, allocations: 2.156 kB / 0.5337 GB, free: 10.37 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.138e-06/0.3306, allocations: 0 / 0.5337 GB, free: 10.37 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.59e-06/0.3306, allocations: 4.969 kB / 0.5337 GB, free: 10.36 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001323/0.3307, allocations: 175.8 kB / 0.5339 GB, free: 10.15 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.793e-06/0.3307, allocations: 1.094 kB / 0.5339 GB, free: 10.15 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.485e-05/0.3308, allocations: 12.56 kB / 0.5339 GB, free: 10.15 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.609e-06/0.3308, allocations: 5.625 kB / 0.5339 GB, free: 10.15 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.528e-06/0.3308, allocations: 8 kB / 0.5339 GB, free: 10.14 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.743e-06/0.3308, allocations: 1.375 kB / 0.5339 GB, free: 10.14 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.72e-07/0.3308, allocations: 0 / 0.5339 GB, free: 10.14 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001489/0.331, allocations: 112.2 kB / 0.534 GB, free: 10.05 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.376e-05/0.331, allocations: 79.45 kB / 0.5341 GB, free: 9.953 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.399e-05/0.3311, allocations: 3.938 kB / 0.5341 GB, free: 9.949 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.511e-05/0.3311, allocations: 4.875 kB / 0.5341 GB, free: 9.945 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.794e-05/0.3311, allocations: 8.172 kB / 0.5341 GB, free: 9.941 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.769e-06/0.3311, allocations: 5.312 kB / 0.5341 GB, free: 9.938 MB / 398.1 MB Notification: Performance of sorting global known variables: time 3.081e-05/0.3312, allocations: 76.78 kB / 0.5342 GB, free: 9.863 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.024e-05/0.3312, allocations: 3.938 kB / 0.5342 GB, free: 9.859 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0001996/0.3314, allocations: 19.38 kB / 0.5342 GB, free: 9.852 MB / 398.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 (10): * Single equations (assignments): 10 * 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 Backend phase and start with SimCode phase: time 0.0004271/0.3318, allocations: 0.6576 MB / 0.5349 GB, free: 9.219 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0001368/0.332, allocations: 58.75 kB / 0.5349 GB, free: 9.195 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.964e-06/0.332, allocations: 3.938 kB / 0.5349 GB, free: 9.191 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 4.267e-05/0.332, allocations: 30.86 kB / 0.535 GB, free: 9.18 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001424/0.3322, allocations: 11.27 kB / 0.535 GB, free: 9.176 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004483/0.3326, allocations: 166.8 kB / 0.5351 GB, free: 9.008 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002486/0.3329, allocations: 0.6852 MB / 0.5358 GB, free: 8.305 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 3.35e-05/0.3329, allocations: 11.53 kB / 0.5358 GB, free: 8.297 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.495e-05/0.333, allocations: 19.48 kB / 0.5358 GB, free: 8.281 MB / 398.1 MB Notification: Performance of SimCode: time 2.91e-07/0.333, allocations: 0 / 0.5358 GB, free: 8.281 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01986/0.3528, allocations: 1.557 MB / 0.5374 GB, free: 7.426 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.406/7.759, allocations: 8.5 kB / 0.5374 GB, free: 7.422 MB / 398.1 MB (rm -f ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.TestRegFunctions.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.TestRegFunctions.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.TestRegFunctions.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.TestRegFunctions.sim & python3 -m fmpy simulate --output-file ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.TestRegFunctions_res.csv --start-time 0 --stop-time 1.01 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.000404 ModelicaTest_trunk_ModelicaTest_Fluid_TestUtilities_TestRegFunctions.fmu > ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.TestRegFunctions.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.TestRegFunctions_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Fluid/TestUtilities/TestRegFunctions/TestRegFunctions.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.TestRegFunctions.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches