Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Fluid.TestUtilities.Test01RegFun3.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 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 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 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.Test01RegFun3,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Fluid_TestUtilities_Test01RegFun3",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestUtilities.Test01RegFun3,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Fluid_TestUtilities_Test01RegFun3",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.001177/0.001177, allocations: 106.7 kB / 16.27 MB, free: 5.93 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.001195/0.001195, allocations: 192.6 kB / 17.2 MB, free: 5.574 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.474/1.474, allocations: 205.1 MB / 223.1 MB, free: 12.3 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2063/0.2063, allocations: 43.52 MB / 313.9 MB, free: 0.5156 MB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001723/0.001724, allocations: 67.75 kB / 382.8 MB, free: 56.68 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08898/0.09072, allocations: 57.79 MB / 440.6 MB, free: 6.809 MB / 318.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.Test01RegFun3): time 0.001675/0.09245, allocations: 0.4936 MB / 441.1 MB, free: 6.309 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001353/0.09383, allocations: 1.383 MB / 442.5 MB, free: 4.906 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.246e-05/0.09387, allocations: 4 kB / 442.5 MB, free: 4.902 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 1.468e-05/0.09391, allocations: 0 / 442.5 MB, free: 4.902 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 2.199e-05/0.09394, allocations: 4 kB / 442.5 MB, free: 4.898 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006418/0.09459, allocations: 214.9 kB / 442.7 MB, free: 4.691 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 4.583e-05/0.09464, allocations: 7.984 kB / 442.7 MB, free: 4.684 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.004e-05/0.0947, allocations: 8 kB / 442.7 MB, free: 4.676 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.661e-05/0.09472, allocations: 3.938 kB / 442.7 MB, free: 4.672 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.826e-05/0.09477, allocations: 7.984 kB / 442.7 MB, free: 4.664 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 1.379e-05/0.09479, allocations: 0 / 442.7 MB, free: 4.664 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003786/0.09518, allocations: 267.6 kB / 443 MB, free: 4.402 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 1.366e-05/0.0952, allocations: 3.938 kB / 443 MB, free: 4.398 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 1.954e-05/0.09522, allocations: 7.984 kB / 443 MB, free: 4.391 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001911/0.09542, allocations: 139.7 kB / 443.2 MB, free: 4.254 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.458e-06/0.09543, allocations: 0 / 443.2 MB, free: 4.254 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.342e-06/0.09544, allocations: 0 / 443.2 MB, free: 4.254 MB / 318.1 MB Notification: Performance of Transformations before backend: time 5.4e-06/0.09545, allocations: 0 / 443.2 MB, free: 4.254 MB / 318.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.0003116/0.09577, allocations: 343.7 kB / 443.5 MB, free: 3.871 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.04e-05/0.09581, allocations: 15.88 kB / 443.5 MB, free: 3.855 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.581e-05/0.09584, allocations: 30.75 kB / 443.5 MB, free: 3.816 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.658e-05/0.09588, allocations: 4.938 kB / 443.5 MB, free: 3.812 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.496e-05/0.09596, allocations: 160.4 kB / 443.7 MB, free: 3.617 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.087e-05/0.09597, allocations: 4.375 kB / 443.7 MB, free: 3.613 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.965e-06/0.09599, allocations: 384 / 443.7 MB, free: 3.613 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.638e-05/0.09608, allocations: 41.7 kB / 443.7 MB, free: 3.566 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.925e-06/0.09609, allocations: 0 / 443.7 MB, free: 3.566 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.347e-06/0.09611, allocations: 3.984 kB / 443.7 MB, free: 3.562 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.238e-06/0.09611, allocations: 0 / 443.7 MB, free: 3.562 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.091e-05/0.09614, allocations: 4 kB / 443.7 MB, free: 3.559 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 9.968e-05/0.09624, allocations: 145.7 kB / 443.9 MB, free: 3.367 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.329e-05/0.09628, allocations: 22.61 kB / 443.9 MB, free: 3.336 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.857e-05/0.09631, allocations: 8.844 kB / 443.9 MB, free: 3.324 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.076e-05/0.09633, allocations: 8.047 kB / 443.9 MB, free: 3.316 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.208e-05/0.09635, allocations: 46.44 kB / 444 MB, free: 3.262 MB / 318.1 MB Notification: Performance of pre-optimization done (n=1): time 8.82e-07/0.09636, allocations: 0 / 444 MB, free: 3.262 MB / 318.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001234/0.09649, allocations: 33.7 kB / 444 MB, free: 3.223 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.591e-05/0.09652, allocations: 51.41 kB / 444.1 MB, free: 3.16 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.9e-05/0.09657, allocations: 93.98 kB / 444.1 MB, free: 3.059 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 9.087e-06/0.09659, allocations: 25.7 kB / 444.2 MB, free: 3.027 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 1.658e-05/0.09661, allocations: 92.12 kB / 444.3 MB, free: 2.934 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.405e-05/0.09664, allocations: 3.906 kB / 444.3 MB, free: 2.93 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.54e-05/0.09667, allocations: 9.719 kB / 444.3 MB, free: 2.914 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 3.974e-05/0.09672, allocations: 314.8 kB / 444.6 MB, free: 2.598 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.157e-05/0.09673, allocations: 0 / 444.6 MB, free: 2.598 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.825e-06/0.09675, allocations: 128 / 444.6 MB, free: 2.598 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.46e-05/0.09678, allocations: 20.86 kB / 444.6 MB, free: 2.574 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.473e-06/0.09679, allocations: 0 / 444.6 MB, free: 2.574 MB / 318.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 5.195e-05/0.09684, allocations: 41.62 kB / 444.6 MB, free: 2.527 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.042e-05/0.09686, allocations: 4 kB / 444.6 MB, free: 2.523 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.339e-06/0.09687, allocations: 3.938 kB / 444.7 MB, free: 2.52 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.217e-05/0.09688, allocations: 0 / 444.7 MB, free: 2.52 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.864e-05/0.09695, allocations: 4 kB / 444.7 MB, free: 2.516 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.719e-06/0.09696, allocations: 0 / 444.7 MB, free: 2.516 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.331e-05/0.09698, allocations: 0 / 444.7 MB, free: 2.516 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.043e-06/0.09699, allocations: 4.031 kB / 444.7 MB, free: 2.512 MB / 318.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 4.75e-05/0.09704, allocations: 114.9 kB / 444.8 MB, free: 2.391 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.014e-05/0.09706, allocations: 3.938 kB / 444.8 MB, free: 2.387 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000109/0.09717, allocations: 48.75 kB / 444.8 MB, free: 2.332 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.893e-06/0.09718, allocations: 0 / 444.8 MB, free: 2.332 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.098e-06/0.09719, allocations: 4.031 kB / 444.8 MB, free: 2.328 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.044e-06/0.0972, allocations: 3.938 kB / 444.8 MB, free: 2.324 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 5.903e-05/0.09726, allocations: 149.7 kB / 445 MB, free: 2.129 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.09e-06/0.09727, allocations: 0 / 445 MB, free: 2.129 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.392e-06/0.09728, allocations: 3.938 kB / 445 MB, free: 2.125 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.583e-06/0.09728, allocations: 0 / 445 MB, free: 2.125 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.372e-06/0.09729, allocations: 4 kB / 445 MB, free: 2.121 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.243e-06/0.0973, allocations: 0 / 445 MB, free: 2.121 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.062e-06/0.0973, allocations: 0 / 445 MB, free: 2.121 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 5.622e-05/0.09736, allocations: 69.06 kB / 445.1 MB, free: 2.035 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.736e-05/0.09739, allocations: 81.05 kB / 445.1 MB, free: 1.938 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.126e-05/0.09741, allocations: 0 / 445.1 MB, free: 1.938 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.099e-05/0.09748, allocations: 4 kB / 445.1 MB, free: 1.934 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.288e-05/0.0975, allocations: 4 kB / 445.1 MB, free: 1.93 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.579e-06/0.09751, allocations: 3.984 kB / 445.1 MB, free: 1.926 MB / 318.1 MB Notification: Performance of sorting global known variables: time 1.94e-05/0.09753, allocations: 83.28 kB / 445.2 MB, free: 1.844 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.09754, allocations: 0 / 445.2 MB, free: 1.844 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0002408/0.09779, allocations: 40.12 kB / 445.3 MB, free: 1.805 MB / 318.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.0003532/0.09814, allocations: 0.6319 MB / 445.9 MB, free: 1.145 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 6.437e-05/0.09822, allocations: 11.92 kB / 445.9 MB, free: 1.133 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 1.894e-06/0.09823, allocations: 0 / 445.9 MB, free: 1.133 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 2.742e-05/0.09826, allocations: 37.8 kB / 445.9 MB, free: 1.09 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001502/0.09842, allocations: 0 / 445.9 MB, free: 1.09 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000304/0.09873, allocations: 130.6 kB / 446.1 MB, free: 0.9219 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.705e-05/0.09882, allocations: 0.669 MB / 446.7 MB, free: 232 kB / 318.1 MB Notification: Performance of simCode: alias equations: time 1.644e-05/0.09884, allocations: 4 kB / 446.7 MB, free: 228 kB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.034e-05/0.09886, allocations: 7.438 kB / 446.8 MB, free: 220 kB / 318.1 MB Notification: Performance of SimCode: time 2.31e-07/0.09887, allocations: 0 / 446.8 MB, free: 220 kB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01796/0.1168, allocations: 1.827 MB / 448.6 MB, free: 14.39 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.168/7.285, allocations: 10.75 kB / 448.6 MB, free: 14.38 MB / 334.1 MB (rm -f ModelicaTest_3.2.3_ModelicaTest.Fluid.TestUtilities.Test01RegFun3.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Fluid.TestUtilities.Test01RegFun3.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Fluid.TestUtilities.Test01RegFun3.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Fluid.TestUtilities.Test01RegFun3.sim & python3 -m fmpy simulate --output-file ModelicaTest_3.2.3_ModelicaTest.Fluid.TestUtilities.Test01RegFun3_res.csv --start-time 0 --stop-time 100 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.04 ModelicaTest_3_2_3_ModelicaTest_Fluid_TestUtilities_Test01RegFun3.fmu > ModelicaTest_3.2.3_ModelicaTest.Fluid.TestUtilities.Test01RegFun3.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Fluid.TestUtilities.Test01RegFun3_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Fluid/TestUtilities/Test01RegFun3/Test01RegFun3.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_ModelicaTest.Fluid.TestUtilities.Test01RegFun3.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches