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.001719/0.001719, allocations: 117.6 kB / 17.79 MB, free: 5.125 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001937/0.001937, allocations: 200.7 kB / 18.74 MB, free: 4.184 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.423/1.423, allocations: 227.4 MB / 247 MB, free: 10.4 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2197/0.2197, allocations: 46.12 MB / 344.3 MB, free: 11.43 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002295/0.002295, allocations: 87.83 kB / 480.9 MB, free: 4.504 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.332/0.3343, allocations: 62.44 MB / 0.5306 GB, free: 13.35 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.Test02RegFun3): time 0.001681/0.3361, allocations: 0.4895 MB / 0.5311 GB, free: 12.98 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.00226/0.3383, allocations: 1.41 MB / 0.5325 GB, free: 11.85 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.745e-05/0.3384, allocations: 0 / 0.5325 GB, free: 11.85 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.298e-05/0.3385, allocations: 0 / 0.5325 GB, free: 11.85 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 3.511e-05/0.3385, allocations: 5.469 kB / 0.5325 GB, free: 11.84 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007713/0.3393, allocations: 221.6 kB / 0.5327 GB, free: 11.71 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 5.078e-05/0.3394, allocations: 6.172 kB / 0.5327 GB, free: 11.71 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.982e-05/0.3394, allocations: 5.562 kB / 0.5327 GB, free: 11.71 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.768e-05/0.3394, allocations: 2.844 kB / 0.5327 GB, free: 11.71 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.674e-05/0.3395, allocations: 5.328 kB / 0.5327 GB, free: 11.7 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 1.127e-05/0.3395, allocations: 1.344 kB / 0.5327 GB, free: 11.7 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004978/0.34, allocations: 284.2 kB / 0.533 GB, free: 11.54 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 1.781e-05/0.34, allocations: 3.984 kB / 0.533 GB, free: 11.54 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.628e-05/0.3401, allocations: 5.312 kB / 0.533 GB, free: 11.54 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002668/0.3403, allocations: 144.8 kB / 0.5331 GB, free: 11.43 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.612e-06/0.3404, allocations: 4 kB / 0.5331 GB, free: 11.43 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.934e-06/0.3404, allocations: 1.375 kB / 0.5331 GB, free: 11.43 MB / 398.1 MB Notification: Performance of Transformations before backend: time 5.38e-06/0.3404, allocations: 4 kB / 0.5331 GB, free: 11.43 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.0004112/0.3408, allocations: 331.3 kB / 0.5334 GB, free: 11.07 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.09e-05/0.3408, allocations: 9.625 kB / 0.5334 GB, free: 11.07 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.048e-05/0.3409, allocations: 36.12 kB / 0.5335 GB, free: 11.02 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.768e-05/0.3409, allocations: 6.266 kB / 0.5335 GB, free: 11.02 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001271/0.341, allocations: 160.4 kB / 0.5336 GB, free: 10.82 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.848e-06/0.3411, allocations: 4.312 kB / 0.5336 GB, free: 10.82 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.047e-05/0.3411, allocations: 1.75 kB / 0.5336 GB, free: 10.82 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001227/0.3412, allocations: 43.31 kB / 0.5337 GB, free: 10.78 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.245e-06/0.3412, allocations: 5.375 kB / 0.5337 GB, free: 10.77 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.177e-06/0.3412, allocations: 0 / 0.5337 GB, free: 10.77 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.791e-05/0.3413, allocations: 3.984 kB / 0.5337 GB, free: 10.77 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.113e-05/0.3413, allocations: 9.438 kB / 0.5337 GB, free: 10.77 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004013/0.3417, allocations: 251.7 kB / 0.5339 GB, free: 10.48 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.255e-05/0.3418, allocations: 21.27 kB / 0.534 GB, free: 10.45 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.026e-05/0.3418, allocations: 6.234 kB / 0.534 GB, free: 10.44 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.03e-05/0.3418, allocations: 4 kB / 0.534 GB, free: 10.44 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.607e-05/0.3418, allocations: 31.94 kB / 0.534 GB, free: 10.4 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 1.202e-06/0.3418, allocations: 0 / 0.534 GB, free: 10.4 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001522/0.342, allocations: 35.19 kB / 0.534 GB, free: 10.36 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.983e-05/0.3421, allocations: 52.78 kB / 0.5341 GB, free: 10.3 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001092/0.3422, allocations: 96.61 kB / 0.5342 GB, free: 10.2 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.663e-05/0.3422, allocations: 29.89 kB / 0.5342 GB, free: 10.16 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.477e-05/0.3423, allocations: 93.45 kB / 0.5343 GB, free: 10.07 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.767e-06/0.3423, allocations: 5.328 kB / 0.5343 GB, free: 10.07 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.323e-05/0.3423, allocations: 16.47 kB / 0.5343 GB, free: 10.05 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001444/0.3425, allocations: 316.2 kB / 0.5346 GB, free: 9.73 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.279e-05/0.3425, allocations: 1.375 kB / 0.5346 GB, free: 9.73 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.293e-05/0.3425, allocations: 26.69 kB / 0.5346 GB, free: 9.699 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.256e-05/0.3426, allocations: 28.02 kB / 0.5347 GB, free: 9.668 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.024e-06/0.3426, allocations: 0 / 0.5347 GB, free: 9.668 MB / 398.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 8.033e-05/0.3427, allocations: 46.02 kB / 0.5347 GB, free: 9.629 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.523e-05/0.3427, allocations: 5.5 kB / 0.5347 GB, free: 9.629 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.037e-06/0.3427, allocations: 9.359 kB / 0.5347 GB, free: 9.621 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.505e-05/0.3427, allocations: 1.375 kB / 0.5347 GB, free: 9.621 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.633e-05/0.3428, allocations: 8.219 kB / 0.5347 GB, free: 9.617 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.96e-06/0.3428, allocations: 1.375 kB / 0.5347 GB, free: 9.617 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.795e-05/0.3428, allocations: 1.375 kB / 0.5347 GB, free: 9.617 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.745e-06/0.3428, allocations: 2.75 kB / 0.5347 GB, free: 9.617 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 9.766e-05/0.3429, allocations: 123 kB / 0.5349 GB, free: 9.488 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.265e-05/0.343, allocations: 1.375 kB / 0.5349 GB, free: 9.488 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001202/0.3431, allocations: 47.62 kB / 0.5349 GB, free: 9.445 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.585e-06/0.3431, allocations: 1.375 kB / 0.5349 GB, free: 9.445 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.148e-06/0.3431, allocations: 0 / 0.5349 GB, free: 9.445 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.304e-06/0.3431, allocations: 0 / 0.5349 GB, free: 9.445 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001795/0.3433, allocations: 156.4 kB / 0.5351 GB, free: 9.246 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.551e-06/0.3433, allocations: 1.375 kB / 0.5351 GB, free: 9.246 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.248e-06/0.3433, allocations: 0 / 0.5351 GB, free: 9.246 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.404e-06/0.3433, allocations: 3.938 kB / 0.5351 GB, free: 9.242 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.532e-06/0.3433, allocations: 1.375 kB / 0.5351 GB, free: 9.242 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.392e-06/0.3433, allocations: 0 / 0.5351 GB, free: 9.242 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.244e-06/0.3434, allocations: 1.375 kB / 0.5351 GB, free: 9.242 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001106/0.3435, allocations: 134.4 kB / 0.5352 GB, free: 9.102 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.406e-05/0.3435, allocations: 78.48 kB / 0.5353 GB, free: 9.008 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.404e-05/0.3436, allocations: 4 kB / 0.5353 GB, free: 9.004 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.996e-05/0.3436, allocations: 1.375 kB / 0.5353 GB, free: 9.004 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.864e-05/0.3436, allocations: 1.375 kB / 0.5353 GB, free: 9.004 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.1e-06/0.3437, allocations: 5.312 kB / 0.5353 GB, free: 9 MB / 398.1 MB Notification: Performance of sorting global known variables: time 4.726e-05/0.3437, allocations: 80.69 kB / 0.5354 GB, free: 8.922 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.81e-07/0.3437, allocations: 0 / 0.5354 GB, free: 8.922 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0003312/0.344, allocations: 43.89 kB / 0.5354 GB, free: 8.914 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.0006472/0.3447, allocations: 0.7021 MB / 0.5361 GB, free: 8.23 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 9.336e-05/0.3448, allocations: 15.72 kB / 0.5361 GB, free: 8.223 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.375e-06/0.3448, allocations: 0 / 0.5361 GB, free: 8.223 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 3.657e-05/0.3449, allocations: 28.73 kB / 0.5361 GB, free: 8.191 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000216/0.3451, allocations: 8.922 kB / 0.5361 GB, free: 8.188 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004194/0.3455, allocations: 127.7 kB / 0.5363 GB, free: 8.039 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003184/0.3458, allocations: 0.6717 MB / 0.5369 GB, free: 7.344 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 2.937e-05/0.3459, allocations: 5.141 kB / 0.5369 GB, free: 7.34 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.675e-05/0.3459, allocations: 12.97 kB / 0.5369 GB, free: 7.328 MB / 398.1 MB Notification: Performance of SimCode: time 3.11e-07/0.3459, allocations: 0 / 0.5369 GB, free: 7.328 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02434/0.3703, allocations: 1.868 MB / 0.5388 GB, free: 6.277 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.968/8.339, allocations: 9.266 kB / 0.5388 GB, free: 6.277 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.Test02RegFun3_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Fluid_TestUtilities_Test02RegFun3_fmu --startTime=0 --stopTime=100 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Fluid_TestUtilities_Test02RegFun3.fmu > ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.Test02RegFun3.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.Test02RegFun3_res.mat","/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