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.001197/0.001197, allocations: 118.8 kB / 17.79 MB, free: 5.281 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001292/0.001292, allocations: 202 kB / 18.73 MB, free: 4.34 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.358/1.358, allocations: 227.4 MB / 246.9 MB, free: 10.42 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2183/0.2183, allocations: 46.1 MB / 344.3 MB, free: 11.48 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00251/0.00251, allocations: 75.88 kB / 480.8 MB, free: 4.57 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3366/0.3392, allocations: 62.43 MB / 0.5305 GB, free: 13.41 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.Test01RegFun3): time 0.001617/0.3408, allocations: 0.4896 MB / 0.531 GB, free: 13.04 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.00185/0.3427, allocations: 1.405 MB / 0.5323 GB, free: 11.91 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.966e-05/0.3428, allocations: 1.438 kB / 0.5323 GB, free: 11.91 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.749e-05/0.3428, allocations: 7.938 kB / 0.5323 GB, free: 11.9 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 3.388e-05/0.3428, allocations: 0 / 0.5323 GB, free: 11.9 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007684/0.3436, allocations: 232.1 kB / 0.5326 GB, free: 11.76 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 5.248e-05/0.3437, allocations: 8.156 kB / 0.5326 GB, free: 11.76 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.262e-05/0.3437, allocations: 1.031 kB / 0.5326 GB, free: 11.76 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.017e-05/0.3438, allocations: 2.906 kB / 0.5326 GB, free: 11.76 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.951e-05/0.3438, allocations: 4.953 kB / 0.5326 GB, free: 11.75 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 1.348e-05/0.3438, allocations: 1.375 kB / 0.5326 GB, free: 11.75 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004129/0.3443, allocations: 285.7 kB / 0.5329 GB, free: 11.59 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 1.371e-05/0.3443, allocations: 3.984 kB / 0.5329 GB, free: 11.59 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.527e-05/0.3443, allocations: 11.92 kB / 0.5329 GB, free: 11.58 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002336/0.3446, allocations: 137.9 kB / 0.533 GB, free: 11.48 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.719e-06/0.3446, allocations: 0 / 0.533 GB, free: 11.48 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.733e-06/0.3446, allocations: 0 / 0.533 GB, free: 11.48 MB / 398.1 MB Notification: Performance of Transformations before backend: time 8.586e-06/0.3446, allocations: 1.375 kB / 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: 1 * Number of variables: 1 Notification: Performance of Generate backend data structure: time 0.0003833/0.345, allocations: 334.5 kB / 0.5333 GB, free: 11.12 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4e-05/0.345, allocations: 13.56 kB / 0.5333 GB, free: 11.11 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.631e-05/0.3451, allocations: 30.75 kB / 0.5334 GB, free: 11.07 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.766e-05/0.3451, allocations: 2.312 kB / 0.5334 GB, free: 11.07 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001094/0.3452, allocations: 165.7 kB / 0.5335 GB, free: 10.88 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.768e-06/0.3452, allocations: 4.375 kB / 0.5335 GB, free: 10.87 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.697e-05/0.3453, allocations: 5.734 kB / 0.5335 GB, free: 10.87 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.802e-05/0.3454, allocations: 40.56 kB / 0.5336 GB, free: 10.82 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.264e-06/0.3454, allocations: 0 / 0.5336 GB, free: 10.82 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.156e-06/0.3454, allocations: 0 / 0.5336 GB, free: 10.82 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.696e-06/0.3454, allocations: 1.375 kB / 0.5336 GB, free: 10.82 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.963e-05/0.3454, allocations: 5.312 kB / 0.5336 GB, free: 10.82 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001426/0.3456, allocations: 152.4 kB / 0.5337 GB, free: 10.62 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.378e-05/0.3456, allocations: 29.27 kB / 0.5338 GB, free: 10.59 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.7e-05/0.3457, allocations: 6.234 kB / 0.5338 GB, free: 10.58 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.019e-05/0.3457, allocations: 0 / 0.5338 GB, free: 10.58 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.605e-05/0.3457, allocations: 35.88 kB / 0.5338 GB, free: 10.54 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 8.12e-07/0.3457, allocations: 0 / 0.5338 GB, free: 10.54 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001392/0.3458, allocations: 36.52 kB / 0.5338 GB, free: 10.5 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.023e-05/0.3459, allocations: 55.52 kB / 0.5339 GB, free: 10.44 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.683e-05/0.346, allocations: 100.6 kB / 0.534 GB, free: 10.33 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.543e-05/0.346, allocations: 31.02 kB / 0.534 GB, free: 10.3 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.05e-05/0.346, allocations: 80.14 kB / 0.5341 GB, free: 10.21 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.547e-05/0.3461, allocations: 3.625 kB / 0.5341 GB, free: 10.21 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.004e-05/0.3461, allocations: 11.09 kB / 0.5341 GB, free: 10.2 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001181/0.3462, allocations: 316.2 kB / 0.5344 GB, free: 9.883 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.152e-05/0.3462, allocations: 1.375 kB / 0.5344 GB, free: 9.883 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.967e-06/0.3462, allocations: 9.484 kB / 0.5344 GB, free: 9.875 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.597e-05/0.3463, allocations: 7.609 kB / 0.5344 GB, free: 9.867 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.533e-06/0.3463, allocations: 0 / 0.5344 GB, free: 9.867 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 5.921e-05/0.3464, allocations: 40.45 kB / 0.5345 GB, free: 9.828 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.453e-05/0.3464, allocations: 5.5 kB / 0.5345 GB, free: 9.828 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.654e-06/0.3464, allocations: 4 kB / 0.5345 GB, free: 9.824 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.388e-05/0.3464, allocations: 1.375 kB / 0.5345 GB, free: 9.824 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.024e-05/0.3465, allocations: 1.375 kB / 0.5345 GB, free: 9.824 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.6e-06/0.3465, allocations: 0 / 0.5345 GB, free: 9.824 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.384e-05/0.3465, allocations: 5.469 kB / 0.5345 GB, free: 9.82 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.205e-06/0.3465, allocations: 3.984 kB / 0.5345 GB, free: 9.816 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 6.878e-05/0.3466, allocations: 115.2 kB / 0.5346 GB, free: 9.695 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.033e-05/0.3466, allocations: 5.312 kB / 0.5346 GB, free: 9.691 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001285/0.3467, allocations: 44.97 kB / 0.5346 GB, free: 9.652 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.186e-06/0.3468, allocations: 5.406 kB / 0.5346 GB, free: 9.648 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.917e-06/0.3468, allocations: 0 / 0.5346 GB, free: 9.648 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.525e-06/0.3468, allocations: 0 / 0.5346 GB, free: 9.648 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.488e-05/0.3469, allocations: 148.4 kB / 0.5348 GB, free: 9.457 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.81e-06/0.3469, allocations: 5.312 kB / 0.5348 GB, free: 9.453 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.472e-06/0.3469, allocations: 7.922 kB / 0.5348 GB, free: 9.445 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.443e-06/0.3469, allocations: 3.938 kB / 0.5348 GB, free: 9.441 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.342e-06/0.3469, allocations: 1.375 kB / 0.5348 GB, free: 9.441 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.402e-06/0.3469, allocations: 0 / 0.5348 GB, free: 9.441 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.82e-07/0.3469, allocations: 0 / 0.5348 GB, free: 9.441 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.747e-05/0.347, allocations: 61.39 kB / 0.5349 GB, free: 9.371 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.407e-05/0.3471, allocations: 82.42 kB / 0.5349 GB, free: 9.273 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.302e-05/0.3471, allocations: 3.984 kB / 0.5349 GB, free: 9.27 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.158e-05/0.3471, allocations: 2.75 kB / 0.5349 GB, free: 9.27 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.238e-05/0.3472, allocations: 1.375 kB / 0.5349 GB, free: 9.27 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.028e-06/0.3472, allocations: 0 / 0.5349 GB, free: 9.27 MB / 398.1 MB Notification: Performance of sorting global known variables: time 4.183e-05/0.3472, allocations: 78.03 kB / 0.535 GB, free: 9.195 MB / 398.1 MB Notification: Performance of sort global known variables: time 2.6e-07/0.3472, allocations: 4.125 kB / 0.535 GB, free: 9.191 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002692/0.3475, allocations: 35.75 kB / 0.5351 GB, free: 9.191 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.0005061/0.348, allocations: 0.6373 MB / 0.5357 GB, free: 8.57 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 9.166e-05/0.3481, allocations: 9.438 kB / 0.5357 GB, free: 8.566 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.515e-06/0.3481, allocations: 4.094 kB / 0.5357 GB, free: 8.562 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 3.522e-05/0.3482, allocations: 28.45 kB / 0.5357 GB, free: 8.531 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000165/0.3483, allocations: 7.547 kB / 0.5357 GB, free: 8.527 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003738/0.3487, allocations: 128.5 kB / 0.5358 GB, free: 8.379 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000243/0.349, allocations: 0.6755 MB / 0.5365 GB, free: 7.68 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 2.058e-05/0.349, allocations: 1.375 kB / 0.5365 GB, free: 7.68 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.502e-05/0.349, allocations: 8.812 kB / 0.5365 GB, free: 7.672 MB / 398.1 MB Notification: Performance of SimCode: time 7.71e-07/0.349, allocations: 4.062 kB / 0.5365 GB, free: 7.668 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01987/0.3689, allocations: 1.869 MB / 0.5383 GB, free: 6.613 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.323/7.692, allocations: 13.47 kB / 0.5384 GB, free: 6.609 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