Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.Test02RegFun3.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.Test02RegFun3,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Fluid_TestUtilities_Test02RegFun3",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestUtilities.Test02RegFun3,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Fluid_TestUtilities_Test02RegFun3",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001636/0.001637, 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.001914/0.001914, allocations: 201.2 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.332/1.332, allocations: 227.4 MB / 246.9 MB, free: 10.45 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2017/0.2017, allocations: 46.1 MB / 344.3 MB, free: 11.48 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001336/0.001336, allocations: 76.2 kB / 480.8 MB, free: 4.57 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3074/0.3088, allocations: 62.43 MB / 0.5305 GB, free: 13.4 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.Test02RegFun3): time 0.001554/0.3104, allocations: 0.4972 MB / 0.531 GB, free: 13.03 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001642/0.312, allocations: 1.402 MB / 0.5323 GB, free: 11.9 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.499e-05/0.3121, allocations: 5.156 kB / 0.5323 GB, free: 11.89 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.344e-05/0.3121, allocations: 3.938 kB / 0.5323 GB, free: 11.89 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 2.697e-05/0.3121, allocations: 0 / 0.5323 GB, free: 11.89 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006477/0.3128, allocations: 224.6 kB / 0.5326 GB, free: 11.76 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 4.375e-05/0.3128, allocations: 8.125 kB / 0.5326 GB, free: 11.75 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.826e-05/0.3129, allocations: 9.672 kB / 0.5326 GB, free: 11.75 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.607e-05/0.3129, allocations: 2.812 kB / 0.5326 GB, free: 11.75 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.177e-05/0.313, allocations: 5.594 kB / 0.5326 GB, free: 11.74 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 1.05e-05/0.313, allocations: 0 / 0.5326 GB, free: 11.74 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004099/0.3134, allocations: 280.4 kB / 0.5329 GB, free: 11.59 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 1.199e-05/0.3134, allocations: 5.188 kB / 0.5329 GB, free: 11.58 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.368e-05/0.3134, allocations: 9.125 kB / 0.5329 GB, free: 11.57 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002184/0.3137, allocations: 140.4 kB / 0.533 GB, free: 11.48 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.988e-06/0.3137, allocations: 1.188 kB / 0.533 GB, free: 11.48 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.352e-06/0.3137, allocations: 0 / 0.533 GB, free: 11.48 MB / 398.1 MB Notification: Performance of Transformations before backend: time 4.779e-06/0.3137, allocations: 0 / 0.533 GB, free: 11.48 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: 3 * Number of variables: 3 Notification: Performance of Generate backend data structure: time 0.0003579/0.3141, allocations: 336.4 kB / 0.5333 GB, free: 11.11 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.526e-05/0.3141, allocations: 13.5 kB / 0.5333 GB, free: 11.11 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.174e-05/0.3141, allocations: 34.73 kB / 0.5334 GB, free: 11.07 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.489e-05/0.3142, allocations: 10.7 kB / 0.5334 GB, free: 11.06 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.608e-05/0.3143, allocations: 160.4 kB / 0.5335 GB, free: 10.86 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.007e-05/0.3143, allocations: 2.312 kB / 0.5335 GB, free: 10.86 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.084e-06/0.3143, allocations: 384 / 0.5335 GB, free: 10.86 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001027/0.3144, allocations: 43.22 kB / 0.5336 GB, free: 10.82 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.245e-06/0.3144, allocations: 0 / 0.5336 GB, free: 10.82 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.975e-06/0.3144, allocations: 5.812 kB / 0.5336 GB, free: 10.82 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.878e-06/0.3144, allocations: 0 / 0.5336 GB, free: 10.82 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.974e-05/0.3145, allocations: 9.406 kB / 0.5336 GB, free: 10.81 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003216/0.3148, allocations: 252 kB / 0.5338 GB, free: 10.52 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.482e-05/0.3148, allocations: 16.39 kB / 0.5338 GB, free: 10.5 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.502e-05/0.3149, allocations: 6.641 kB / 0.5339 GB, free: 10.49 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.106e-06/0.3149, allocations: 0 / 0.5339 GB, free: 10.49 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.396e-05/0.3149, allocations: 36.38 kB / 0.5339 GB, free: 10.45 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 8.81e-07/0.3149, allocations: 0 / 0.5339 GB, free: 10.45 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001403/0.315, allocations: 42.97 kB / 0.5339 GB, free: 10.41 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.335e-05/0.3151, allocations: 51.41 kB / 0.534 GB, free: 10.34 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.014e-05/0.3152, allocations: 93.45 kB / 0.5341 GB, free: 10.25 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.439e-05/0.3152, allocations: 29.7 kB / 0.5341 GB, free: 10.21 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.064e-05/0.3152, allocations: 85.88 kB / 0.5342 GB, free: 10.12 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.737e-06/0.3152, allocations: 7.938 kB / 0.5342 GB, free: 10.12 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.911e-05/0.3153, allocations: 17.27 kB / 0.5342 GB, free: 10.1 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001153/0.3154, allocations: 320.8 kB / 0.5345 GB, free: 9.777 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.172e-05/0.3154, allocations: 5.781 kB / 0.5345 GB, free: 9.773 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.308e-05/0.3154, allocations: 22.16 kB / 0.5345 GB, free: 9.746 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.688e-05/0.3155, allocations: 28.33 kB / 0.5346 GB, free: 9.715 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.493e-06/0.3155, allocations: 0 / 0.5346 GB, free: 9.715 MB / 398.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 7.262e-05/0.3156, allocations: 54.44 kB / 0.5346 GB, free: 9.668 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.371e-05/0.3156, allocations: 9 kB / 0.5346 GB, free: 9.664 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.46e-06/0.3156, allocations: 1.281 kB / 0.5346 GB, free: 9.664 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.361e-05/0.3156, allocations: 1.375 kB / 0.5346 GB, free: 9.664 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.998e-05/0.3157, allocations: 11.67 kB / 0.5346 GB, free: 9.656 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.25e-06/0.3157, allocations: 1.25 kB / 0.5346 GB, free: 9.656 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.701e-05/0.3157, allocations: 1.344 kB / 0.5346 GB, free: 9.656 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.69e-06/0.3157, allocations: 2.75 kB / 0.5346 GB, free: 9.656 MB / 398.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.831e-05/0.3158, allocations: 119.2 kB / 0.5348 GB, free: 9.531 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.945e-05/0.3158, allocations: 1.375 kB / 0.5348 GB, free: 9.531 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001017/0.3159, allocations: 49 kB / 0.5348 GB, free: 9.488 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.024e-06/0.316, allocations: 0 / 0.5348 GB, free: 9.488 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.317e-06/0.316, allocations: 0 / 0.5348 GB, free: 9.488 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.805e-06/0.316, allocations: 1.375 kB / 0.5348 GB, free: 9.488 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001461/0.3161, allocations: 147 kB / 0.5349 GB, free: 9.297 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.28e-06/0.3161, allocations: 5.312 kB / 0.5349 GB, free: 9.293 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.894e-06/0.3161, allocations: 8.016 kB / 0.535 GB, free: 9.285 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.763e-06/0.3161, allocations: 1.375 kB / 0.535 GB, free: 9.285 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.859e-06/0.3162, allocations: 0 / 0.535 GB, free: 9.285 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.92e-07/0.3162, allocations: 0 / 0.535 GB, free: 9.285 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.21e-07/0.3162, allocations: 1.375 kB / 0.535 GB, free: 9.285 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.851e-05/0.3163, allocations: 134.3 kB / 0.5351 GB, free: 9.145 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.215e-05/0.3163, allocations: 78.48 kB / 0.5352 GB, free: 9.051 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.194e-05/0.3163, allocations: 4.016 kB / 0.5352 GB, free: 9.047 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.503e-05/0.3164, allocations: 5.375 kB / 0.5352 GB, free: 9.043 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.688e-06/0.3164, allocations: 1.375 kB / 0.5352 GB, free: 9.043 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.907e-06/0.3164, allocations: 1.375 kB / 0.5352 GB, free: 9.043 MB / 398.1 MB Notification: Performance of sorting global known variables: time 3.325e-05/0.3164, allocations: 76.66 kB / 0.5352 GB, free: 8.969 MB / 398.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3165, allocations: 0 / 0.5352 GB, free: 8.969 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0003054/0.3168, allocations: 43.69 kB / 0.5353 GB, free: 8.961 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 (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.0005225/0.3173, allocations: 0.7061 MB / 0.536 GB, free: 8.273 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 7.753e-05/0.3174, allocations: 12.19 kB / 0.536 GB, free: 8.27 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.977e-06/0.3174, allocations: 4 kB / 0.536 GB, free: 8.266 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 3.186e-05/0.3174, allocations: 28.45 kB / 0.536 GB, free: 8.234 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002093/0.3176, allocations: 8.922 kB / 0.536 GB, free: 8.23 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003819/0.318, allocations: 131.4 kB / 0.5362 GB, free: 8.078 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002486/0.3183, allocations: 0.6755 MB / 0.5368 GB, free: 7.379 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 2.304e-05/0.3183, allocations: 1.375 kB / 0.5368 GB, free: 7.379 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.987e-05/0.3183, allocations: 12.75 kB / 0.5368 GB, free: 7.367 MB / 398.1 MB Notification: Performance of SimCode: time 2.3e-07/0.3183, allocations: 0 / 0.5368 GB, free: 7.367 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01862/0.337, allocations: 1.871 MB / 0.5387 GB, free: 6.312 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.449/7.786, allocations: 14.5 kB / 0.5387 GB, free: 6.309 MB / 398.1 MB (rm -f ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.Test02RegFun3.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.Test02RegFun3.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.Test02RegFun3.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.Test02RegFun3.sim & python3 -m fmpy simulate --output-file ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.Test02RegFun3_res.csv --start-time 0 --stop-time 100 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.04 ModelicaTest_trunk_ModelicaTest_Fluid_TestUtilities_Test02RegFun3.fmu > ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.Test02RegFun3.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.Test02RegFun3_res.csv","/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_trunk_ModelicaTest.Fluid.TestUtilities.Test02RegFun3.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches