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.001495/0.001495, allocations: 121.6 kB / 17.79 MB, free: 5.254 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001572/0.001572, allocations: 200.7 kB / 18.73 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.376/1.376, allocations: 227.4 MB / 247 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.2185/0.2185, allocations: 46.12 MB / 344.4 MB, free: 11.44 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002178/0.002178, allocations: 75.88 kB / 480.9 MB, free: 4.512 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2973/0.2995, allocations: 62.45 MB / 0.5306 GB, free: 13.35 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.Test01RegFun3): time 0.001512/0.301, allocations: 489 kB / 0.5311 GB, free: 13 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001754/0.3028, allocations: 1.41 MB / 0.5325 GB, free: 11.86 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.09e-05/0.3028, allocations: 0 / 0.5325 GB, free: 11.86 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.448e-05/0.3029, allocations: 0 / 0.5325 GB, free: 11.86 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 2.259e-05/0.3029, allocations: 5.062 kB / 0.5325 GB, free: 11.85 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006319/0.3035, allocations: 225.2 kB / 0.5327 GB, free: 11.72 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 4.215e-05/0.3036, allocations: 2.969 kB / 0.5327 GB, free: 11.72 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.333e-05/0.3036, allocations: 5.672 kB / 0.5327 GB, free: 11.71 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.679e-05/0.3037, allocations: 2.188 kB / 0.5327 GB, free: 11.71 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.135e-05/0.3037, allocations: 2.312 kB / 0.5327 GB, free: 11.71 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 1.417e-05/0.3037, allocations: 5.625 kB / 0.5327 GB, free: 11.71 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004294/0.3042, allocations: 286.5 kB / 0.533 GB, free: 11.55 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 1.357e-05/0.3042, allocations: 5.922 kB / 0.533 GB, free: 11.54 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 1.81e-05/0.3042, allocations: 7.875 kB / 0.533 GB, free: 11.54 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002179/0.3044, allocations: 142 kB / 0.5331 GB, free: 11.44 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.837e-06/0.3044, allocations: 0 / 0.5331 GB, free: 11.44 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.312e-06/0.3044, allocations: 0 / 0.5331 GB, free: 11.44 MB / 398.1 MB Notification: Performance of Transformations before backend: time 4.439e-06/0.3045, allocations: 0 / 0.5331 GB, free: 11.44 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: 1 * Number of variables: 1 Notification: Performance of Generate backend data structure: time 0.0003589/0.3048, allocations: 337.3 kB / 0.5334 GB, free: 11.07 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.484e-05/0.3049, allocations: 12.75 kB / 0.5335 GB, free: 11.07 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.547e-05/0.3049, allocations: 30.75 kB / 0.5335 GB, free: 11.03 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.572e-05/0.3049, allocations: 6.312 kB / 0.5335 GB, free: 11.03 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001257/0.3051, allocations: 176.2 kB / 0.5337 GB, free: 10.82 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.578e-06/0.3051, allocations: 1.688 kB / 0.5337 GB, free: 10.82 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.921e-06/0.3051, allocations: 384 / 0.5337 GB, free: 10.82 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.22e-05/0.3052, allocations: 33.8 kB / 0.5337 GB, free: 10.78 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.623e-06/0.3052, allocations: 0 / 0.5337 GB, free: 10.78 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.865e-06/0.3052, allocations: 0 / 0.5337 GB, free: 10.78 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.853e-06/0.3052, allocations: 1.188 kB / 0.5337 GB, free: 10.78 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.823e-05/0.3052, allocations: 9.219 kB / 0.5337 GB, free: 10.77 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001492/0.3054, allocations: 152.3 kB / 0.5338 GB, free: 10.58 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.085e-05/0.3054, allocations: 20.92 kB / 0.5339 GB, free: 10.55 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.827e-05/0.3055, allocations: 6.141 kB / 0.5339 GB, free: 10.54 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.937e-06/0.3055, allocations: 1.25 kB / 0.5339 GB, free: 10.54 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.306e-05/0.3055, allocations: 34.5 kB / 0.5339 GB, free: 10.5 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 9.42e-07/0.3055, allocations: 5.344 kB / 0.5339 GB, free: 10.5 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001359/0.3057, allocations: 40.16 kB / 0.5339 GB, free: 10.46 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.826e-05/0.3057, allocations: 51.41 kB / 0.534 GB, free: 10.39 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.161e-05/0.3058, allocations: 93.73 kB / 0.5341 GB, free: 10.3 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.256e-05/0.3058, allocations: 25.7 kB / 0.5341 GB, free: 10.27 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.597e-05/0.3059, allocations: 84.08 kB / 0.5342 GB, free: 10.18 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.3e-05/0.3059, allocations: 6.109 kB / 0.5342 GB, free: 10.18 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.141e-05/0.3059, allocations: 20.05 kB / 0.5342 GB, free: 10.15 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001243/0.306, allocations: 314.8 kB / 0.5345 GB, free: 9.836 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.131e-05/0.3061, allocations: 1.375 kB / 0.5345 GB, free: 9.836 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.244e-06/0.3061, allocations: 1.375 kB / 0.5345 GB, free: 9.836 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.38e-05/0.3061, allocations: 7.609 kB / 0.5345 GB, free: 9.828 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.303e-06/0.3061, allocations: 0 / 0.5345 GB, free: 9.828 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 5.743e-05/0.3062, allocations: 36.52 kB / 0.5346 GB, free: 9.793 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.426e-05/0.3062, allocations: 9.484 kB / 0.5346 GB, free: 9.789 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.727e-06/0.3062, allocations: 4.094 kB / 0.5346 GB, free: 9.785 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.207e-05/0.3062, allocations: 1.375 kB / 0.5346 GB, free: 9.785 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.614e-05/0.3063, allocations: 5.312 kB / 0.5346 GB, free: 9.781 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.528e-06/0.3063, allocations: 0 / 0.5346 GB, free: 9.781 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.23e-05/0.3063, allocations: 1.375 kB / 0.5346 GB, free: 9.781 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.242e-06/0.3063, allocations: 3.938 kB / 0.5346 GB, free: 9.777 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 (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 7.536e-05/0.3064, allocations: 115.2 kB / 0.5347 GB, free: 9.656 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.032e-05/0.3064, allocations: 5.312 kB / 0.5347 GB, free: 9.652 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001119/0.3065, allocations: 45.06 kB / 0.5347 GB, free: 9.613 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.939e-06/0.3066, allocations: 5.375 kB / 0.5347 GB, free: 9.609 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.627e-06/0.3066, allocations: 0 / 0.5347 GB, free: 9.609 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.414e-06/0.3066, allocations: 0 / 0.5347 GB, free: 9.609 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001165/0.3067, allocations: 152.4 kB / 0.5349 GB, free: 9.414 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.54e-06/0.3067, allocations: 1.375 kB / 0.5349 GB, free: 9.414 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.641e-06/0.3067, allocations: 3.938 kB / 0.5349 GB, free: 9.41 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.277e-06/0.3067, allocations: 7.922 kB / 0.5349 GB, free: 9.402 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.763e-06/0.3067, allocations: 5.406 kB / 0.5349 GB, free: 9.398 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.72e-07/0.3067, allocations: 0 / 0.5349 GB, free: 9.398 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.856e-06/0.3067, allocations: 0 / 0.5349 GB, free: 9.398 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.839e-05/0.3068, allocations: 65.31 kB / 0.535 GB, free: 9.324 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.691e-05/0.3069, allocations: 82.42 kB / 0.5351 GB, free: 9.227 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.067e-05/0.3069, allocations: 0 / 0.5351 GB, free: 9.227 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.415e-05/0.307, allocations: 2.75 kB / 0.5351 GB, free: 9.227 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.533e-05/0.307, allocations: 5.406 kB / 0.5351 GB, free: 9.223 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.817e-06/0.307, allocations: 0 / 0.5351 GB, free: 9.223 MB / 398.1 MB Notification: Performance of sorting global known variables: time 4.178e-05/0.307, allocations: 82.02 kB / 0.5351 GB, free: 9.145 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.307, allocations: 0 / 0.5351 GB, free: 9.145 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002471/0.3073, allocations: 39.69 kB / 0.5352 GB, free: 9.141 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.0005483/0.3079, allocations: 0.6373 MB / 0.5358 GB, free: 8.52 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 7.082e-05/0.3079, allocations: 5.5 kB / 0.5358 GB, free: 8.52 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.185e-06/0.3079, allocations: 0 / 0.5358 GB, free: 8.52 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 3.63e-05/0.308, allocations: 28.45 kB / 0.5358 GB, free: 8.488 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000142/0.3081, allocations: 5.359 kB / 0.5358 GB, free: 8.484 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003568/0.3085, allocations: 124.5 kB / 0.536 GB, free: 8.34 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002906/0.3088, allocations: 0.6716 MB / 0.5366 GB, free: 7.645 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 1.511e-05/0.3088, allocations: 4.125 kB / 0.5366 GB, free: 7.641 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.513e-05/0.3089, allocations: 8.812 kB / 0.5366 GB, free: 7.633 MB / 398.1 MB Notification: Performance of SimCode: time 2.124e-06/0.3089, allocations: 0 / 0.5366 GB, free: 7.633 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0215/0.3304, allocations: 1.877 MB / 0.5385 GB, free: 6.574 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.87/8.201, allocations: 16.16 kB / 0.5385 GB, free: 6.566 MB / 398.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