Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestUtilities.Test01RegFun3.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestUtilities.Test01RegFun3,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_TestUtilities_Test01RegFun3",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestUtilities.Test01RegFun3,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_TestUtilities_Test01RegFun3",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0008958/0.0008958, allocations: 175.9 kB / 16.72 MB, free: 5.078 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.102/1.102, allocations: 205.4 MB / 222.9 MB, free: 9.008 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0006562/0.0006562, allocations: 89.16 kB / 271.2 MB, free: 8.238 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2792/0.2792, allocations: 43.55 MB / 363.1 MB, free: 51.94 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003287/0.0003288, allocations: 19.98 kB / 432.1 MB, free: 5.477 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08397/0.08431, allocations: 58.84 MB / 490.9 MB, free: 10.55 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.Test01RegFun3): time 0.0004908/0.08484, allocations: 232.4 kB / 491.1 MB, free: 10.32 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.001432/0.08629, allocations: 1.358 MB / 492.5 MB, free: 8.945 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.888e-05/0.08633, allocations: 0 / 492.5 MB, free: 8.945 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 8.155e-06/0.08635, allocations: 4 kB / 492.5 MB, free: 8.941 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 2.205e-05/0.08637, allocations: 0 / 492.5 MB, free: 8.941 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005073/0.08689, allocations: 151.6 kB / 492.7 MB, free: 8.793 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 3.685e-05/0.08693, allocations: 11.98 kB / 492.7 MB, free: 8.781 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.021e-05/0.08697, allocations: 0 / 492.7 MB, free: 8.781 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 1.475e-05/0.08699, allocations: 4 kB / 492.7 MB, free: 8.777 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 3.871e-05/0.08704, allocations: 0 / 492.7 MB, free: 8.777 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 1.033e-05/0.08705, allocations: 3.938 kB / 492.7 MB, free: 8.773 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003537/0.08741, allocations: 255.7 kB / 492.9 MB, free: 8.523 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 1.002e-05/0.08743, allocations: 7.984 kB / 492.9 MB, free: 8.516 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 2.531e-05/0.08746, allocations: 33.64 kB / 493 MB, free: 8.477 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001193/0.08759, allocations: 87.81 kB / 493 MB, free: 8.391 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.807e-06/0.0876, allocations: 0 / 493 MB, free: 8.391 MB / 378.7 MB Notification: Performance of FrontEnd: time 9.62e-07/0.08761, allocations: 0 / 493 MB, free: 8.391 MB / 378.7 MB Notification: Performance of Transformations before backend: time 2.866e-06/0.08761, allocations: 0 / 493 MB, free: 8.391 MB / 378.7 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.0002885/0.08791, allocations: 335.5 kB / 493.4 MB, free: 8.016 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.563e-05/0.08795, allocations: 12.03 kB / 493.4 MB, free: 8.004 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.701e-05/0.08798, allocations: 30.75 kB / 493.4 MB, free: 7.965 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 1.916e-05/0.08801, allocations: 0.9375 kB / 493.4 MB, free: 7.965 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.424e-05/0.0881, allocations: 168.4 kB / 493.6 MB, free: 7.762 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.524e-06/0.08812, allocations: 384 / 493.6 MB, free: 7.762 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.215e-06/0.08813, allocations: 4.312 kB / 493.6 MB, free: 7.758 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.499e-05/0.08821, allocations: 33.83 kB / 493.6 MB, free: 7.719 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.871e-06/0.08822, allocations: 0 / 493.6 MB, free: 7.719 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.504e-06/0.08824, allocations: 0 / 493.6 MB, free: 7.719 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.91e-06/0.08825, allocations: 4 kB / 493.6 MB, free: 7.715 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.818e-05/0.08827, allocations: 3.938 kB / 493.6 MB, free: 7.711 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001539/0.08843, allocations: 153.7 kB / 493.8 MB, free: 7.512 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 3.146e-05/0.08847, allocations: 18.58 kB / 493.8 MB, free: 7.484 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.51e-05/0.08849, allocations: 8.922 kB / 493.8 MB, free: 7.473 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.745e-06/0.08851, allocations: 0 / 493.8 MB, free: 7.473 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.016e-05/0.08853, allocations: 34.5 kB / 493.8 MB, free: 7.43 MB / 378.7 MB Notification: Performance of pre-optimization done (n=1): time 8.62e-07/0.08854, allocations: 0 / 493.8 MB, free: 7.43 MB / 378.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001138/0.08865, allocations: 45.62 kB / 493.9 MB, free: 7.379 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.569e-05/0.0887, allocations: 55.53 kB / 493.9 MB, free: 7.312 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.052e-05/0.08875, allocations: 89.86 kB / 494 MB, free: 7.215 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 2.363e-05/0.08878, allocations: 29.7 kB / 494.1 MB, free: 7.18 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.625e-05/0.08882, allocations: 80.14 kB / 494.1 MB, free: 7.098 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.954e-05/0.08884, allocations: 12.12 kB / 494.1 MB, free: 7.086 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.435e-06/0.08885, allocations: 0 / 494.1 MB, free: 7.086 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 8.842e-05/0.08894, allocations: 314.8 kB / 494.4 MB, free: 6.77 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.255e-06/0.08895, allocations: 0 / 494.4 MB, free: 6.77 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.113e-06/0.08897, allocations: 8.125 kB / 494.5 MB, free: 6.762 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.401e-05/0.089, allocations: 8.859 kB / 494.5 MB, free: 6.75 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.422e-06/0.089, allocations: 3.938 kB / 494.5 MB, free: 6.746 MB / 378.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 5.017e-05/0.08906, allocations: 37.58 kB / 494.5 MB, free: 6.703 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.915e-05/0.08908, allocations: 8 kB / 494.5 MB, free: 6.695 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.897e-06/0.08909, allocations: 0 / 494.5 MB, free: 6.695 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.017e-05/0.08911, allocations: 3.984 kB / 494.5 MB, free: 6.691 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.915e-05/0.08916, allocations: 3.984 kB / 494.5 MB, free: 6.688 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.807e-06/0.08917, allocations: 0 / 494.5 MB, free: 6.688 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.437e-05/0.08919, allocations: 16.09 kB / 494.5 MB, free: 6.672 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.921e-06/0.0892, allocations: 0 / 494.5 MB, free: 6.672 MB / 378.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 5.387e-05/0.08926, allocations: 105.8 kB / 494.6 MB, free: 6.559 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.097e-06/0.08928, allocations: 3.938 kB / 494.6 MB, free: 6.555 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000101/0.08938, allocations: 48.75 kB / 494.7 MB, free: 6.5 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.507e-06/0.08939, allocations: 4 kB / 494.7 MB, free: 6.496 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.276e-06/0.0894, allocations: 7.969 kB / 494.7 MB, free: 6.488 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.513e-06/0.08941, allocations: 0 / 494.7 MB, free: 6.488 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.244e-05/0.0895, allocations: 145.7 kB / 494.8 MB, free: 6.297 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.76e-06/0.08951, allocations: 4 kB / 494.9 MB, free: 6.293 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.074e-06/0.08951, allocations: 3.938 kB / 494.9 MB, free: 6.289 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.463e-06/0.08952, allocations: 0 / 494.9 MB, free: 6.289 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.42e-06/0.08953, allocations: 0 / 494.9 MB, free: 6.289 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.91e-07/0.08953, allocations: 0 / 494.9 MB, free: 6.289 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.72e-07/0.08954, allocations: 0 / 494.9 MB, free: 6.289 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.779e-05/0.08961, allocations: 61.14 kB / 494.9 MB, free: 6.211 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.843e-05/0.08965, allocations: 85.03 kB / 495 MB, free: 6.109 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.415e-06/0.08966, allocations: 4 kB / 495 MB, free: 6.105 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.83e-05/0.08972, allocations: 0 / 495 MB, free: 6.105 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.404e-05/0.08974, allocations: 0 / 495 MB, free: 6.105 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.278e-06/0.08975, allocations: 4 kB / 495 MB, free: 6.102 MB / 378.7 MB Notification: Performance of sorting global known variables: time 2.84e-05/0.08979, allocations: 79.22 kB / 495.1 MB, free: 6.023 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.08979, allocations: 128 / 495.1 MB, free: 6.023 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.000228/0.09003, allocations: 47.98 kB / 495.1 MB, free: 5.977 MB / 378.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0004173/0.09045, allocations: 0.6319 MB / 495.8 MB, free: 5.316 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 5.191e-05/0.09051, allocations: 8 kB / 495.8 MB, free: 5.309 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.154e-06/0.09052, allocations: 96 / 495.8 MB, free: 5.309 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 3.375e-05/0.09056, allocations: 33.64 kB / 495.8 MB, free: 5.27 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001264/0.09069, allocations: 4 kB / 495.8 MB, free: 5.266 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002981/0.091, allocations: 154 kB / 496 MB, free: 5.07 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001876/0.0912, allocations: 0.677 MB / 496.6 MB, free: 4.367 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.884e-05/0.09122, allocations: 11.44 kB / 496.6 MB, free: 4.359 MB / 378.7 MB Notification: Performance of SimCode: time 2.41e-07/0.09123, allocations: 3.938 kB / 496.6 MB, free: 4.355 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.663/2.754, allocations: 1.038 MB / 497.7 MB, free: 3.316 MB / 378.7 MB (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestUtilities.Test01RegFun3.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestUtilities.Test01RegFun3.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestUtilities.Test01RegFun3.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestUtilities.Test01RegFun3.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestUtilities.Test01RegFun3_res.mat --tempDir=temp_ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_TestUtilities_Test01RegFun3_fmu --startTime=0 --stopTime=100 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_TestUtilities_Test01RegFun3.fmu > ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestUtilities.Test01RegFun3.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestUtilities.Test01RegFun3_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Fluid/TestUtilities/Test01RegFun3/Test01RegFun3.csv","../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestUtilities.Test01RegFun3.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches