Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0_ModelicaTest.Fluid.TestUtilities.Test02RegFun3.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001609/0.001609, allocations: 105.1 kB / 21.21 MB, free: 0.6523 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002143/0.002143, allocations: 213.4 kB / 24.52 MB, free: 3.941 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.44/1.44, allocations: 230.6 MB / 258.3 MB, free: 7.812 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo): time 0.2222/0.2222, allocations: 46.96 MB / 361.7 MB, free: 4.066 MB / 286.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestUtilities.Test02RegFun3,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_Fluid_TestUtilities_Test02RegFun3",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestUtilities.Test02RegFun3,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_Fluid_TestUtilities_Test02RegFun3",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001934/0.001934, allocations: 67.91 kB / 0.4968 GB, free: 7.77 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3107/0.3126, allocations: 66.03 MB / 0.5613 GB, free: 4.438 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.Test02RegFun3): time 0.001722/0.3143, allocations: 0.4915 MB / 0.5618 GB, free: 3.945 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001911/0.3162, allocations: 1.354 MB / 0.5631 GB, free: 2.57 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.492e-05/0.3163, allocations: 0 / 0.5631 GB, free: 2.57 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.707e-05/0.3163, allocations: 3.938 kB / 0.5631 GB, free: 2.566 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 3.015e-05/0.3163, allocations: 0 / 0.5631 GB, free: 2.566 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006884/0.317, allocations: 211.4 kB / 0.5633 GB, free: 2.363 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 5.328e-05/0.3171, allocations: 11.88 kB / 0.5634 GB, free: 2.352 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.104e-05/0.3171, allocations: 4 kB / 0.5634 GB, free: 2.348 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.567e-05/0.3171, allocations: 0 / 0.5634 GB, free: 2.348 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.417e-05/0.3172, allocations: 11.97 kB / 0.5634 GB, free: 2.336 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 1.206e-05/0.3172, allocations: 0 / 0.5634 GB, free: 2.336 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004724/0.3177, allocations: 275.6 kB / 0.5636 GB, free: 2.066 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 1.505e-05/0.3177, allocations: 4 kB / 0.5636 GB, free: 2.062 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.521e-05/0.3177, allocations: 7.938 kB / 0.5636 GB, free: 2.055 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002383/0.3179, allocations: 141.8 kB / 0.5638 GB, free: 1.918 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.462e-06/0.3179, allocations: 4 kB / 0.5638 GB, free: 1.914 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.523e-06/0.3179, allocations: 0 / 0.5638 GB, free: 1.914 MB / 398.1 MB Notification: Performance of Transformations before backend: time 5.671e-06/0.3179, allocations: 0 / 0.5638 GB, free: 1.914 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.0004043/0.3184, allocations: 258.3 kB / 0.564 GB, free: 1.633 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.457e-05/0.3184, allocations: 8.031 kB / 0.564 GB, free: 1.625 MB / 398.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.113e-05/0.3184, allocations: 192 / 0.564 GB, free: 1.625 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.418e-05/0.3184, allocations: 42.69 kB / 0.5641 GB, free: 1.574 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.378e-05/0.3185, allocations: 4.891 kB / 0.5641 GB, free: 1.57 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.181e-05/0.3185, allocations: 106.5 kB / 0.5642 GB, free: 1.441 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.057e-06/0.3185, allocations: 384 / 0.5642 GB, free: 1.441 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.538e-06/0.3186, allocations: 4.375 kB / 0.5642 GB, free: 1.438 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000129/0.3187, allocations: 67.31 kB / 0.5643 GB, free: 1.359 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.093e-06/0.3187, allocations: 0 / 0.5643 GB, free: 1.359 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.109e-05/0.3187, allocations: 4 kB / 0.5643 GB, free: 1.355 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.007e-06/0.3187, allocations: 0 / 0.5643 GB, free: 1.355 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.184e-05/0.3187, allocations: 8 kB / 0.5643 GB, free: 1.348 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003403/0.3191, allocations: 219.9 kB / 0.5645 GB, free: 1.09 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.717e-05/0.3191, allocations: 18.58 kB / 0.5645 GB, free: 1.062 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.854e-05/0.3191, allocations: 8.922 kB / 0.5645 GB, free: 1.051 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.837e-06/0.3192, allocations: 3.938 kB / 0.5645 GB, free: 1.047 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.738e-05/0.3192, allocations: 30.56 kB / 0.5645 GB, free: 1.008 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 9.51e-07/0.3192, allocations: 0 / 0.5645 GB, free: 1.008 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001416/0.3193, allocations: 37.64 kB / 0.5646 GB, free: 0.9648 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.728e-05/0.3194, allocations: 59.33 kB / 0.5646 GB, free: 0.8945 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.76e-05/0.3194, allocations: 101.8 kB / 0.5647 GB, free: 0.7852 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.494e-05/0.3195, allocations: 25.95 kB / 0.5647 GB, free: 0.7539 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.453e-05/0.3195, allocations: 88.09 kB / 0.5648 GB, free: 0.6641 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.113e-06/0.3195, allocations: 3.953 kB / 0.5648 GB, free: 0.6602 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.162e-05/0.3196, allocations: 17.72 kB / 0.5649 GB, free: 0.6367 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.00014/0.3197, allocations: 318.8 kB / 0.5652 GB, free: 324 kB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.091e-05/0.3197, allocations: 4 kB / 0.5652 GB, free: 320 kB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.345e-05/0.3197, allocations: 18.58 kB / 0.5652 GB, free: 292 kB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.027e-05/0.3198, allocations: 30.52 kB / 0.5652 GB, free: 252 kB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.243e-06/0.3198, allocations: 0 / 0.5652 GB, free: 252 kB / 398.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 8.434e-05/0.3199, allocations: 53.62 kB / 0.5653 GB, free: 192 kB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.247e-05/0.3199, allocations: 4 kB / 0.5653 GB, free: 188 kB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.807e-06/0.3199, allocations: 0 / 0.5653 GB, free: 188 kB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.075e-05/0.3199, allocations: 4 kB / 0.5653 GB, free: 184 kB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.8e-05/0.3199, allocations: 4 kB / 0.5653 GB, free: 180 kB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.582e-06/0.3199, allocations: 3.984 kB / 0.5653 GB, free: 176 kB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.77e-05/0.32, allocations: 4 kB / 0.5653 GB, free: 172 kB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.373e-06/0.32, allocations: 4 kB / 0.5653 GB, free: 168 kB / 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 8.125e-05/0.32, allocations: 121.8 kB / 0.5654 GB, free: 36 kB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.162e-05/0.3201, allocations: 0 / 0.5654 GB, free: 36 kB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000133/0.3202, allocations: 48.78 kB / 0.5654 GB, free: 15.98 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.984e-06/0.3202, allocations: 0 / 0.5654 GB, free: 15.98 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.827e-06/0.3202, allocations: 0 / 0.5654 GB, free: 15.98 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.735e-06/0.3202, allocations: 0 / 0.5654 GB, free: 15.98 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001497/0.3204, allocations: 124.7 kB / 0.5656 GB, free: 15.81 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.539e-06/0.3204, allocations: 0 / 0.5656 GB, free: 15.81 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.01e-07/0.3204, allocations: 0 / 0.5656 GB, free: 15.81 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.593e-06/0.3204, allocations: 4.031 kB / 0.5656 GB, free: 15.81 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.735e-06/0.3204, allocations: 4 kB / 0.5656 GB, free: 15.8 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.02e-07/0.3204, allocations: 0 / 0.5656 GB, free: 15.8 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.745e-06/0.3204, allocations: 3.984 kB / 0.5656 GB, free: 15.8 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001111/0.3205, allocations: 131.4 kB / 0.5657 GB, free: 15.66 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.809e-06/0.3205, allocations: 8.078 kB / 0.5657 GB, free: 15.65 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.187e-05/0.3205, allocations: 4 kB / 0.5657 GB, free: 15.64 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.742e-05/0.3206, allocations: 4 kB / 0.5657 GB, free: 15.64 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.191e-05/0.3206, allocations: 7.922 kB / 0.5657 GB, free: 15.63 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.807e-06/0.3206, allocations: 0 / 0.5657 GB, free: 15.63 MB / 414.1 MB Notification: Performance of sorting global known variables: time 4.255e-05/0.3206, allocations: 87.25 kB / 0.5658 GB, free: 15.55 MB / 414.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3206, allocations: 0 / 0.5658 GB, free: 15.55 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0003109/0.3209, allocations: 35.94 kB / 0.5658 GB, free: 15.51 MB / 414.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.0005983/0.3215, allocations: 0.7084 MB / 0.5665 GB, free: 14.77 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 7.341e-05/0.3216, allocations: 15.92 kB / 0.5665 GB, free: 14.76 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.024e-06/0.3216, allocations: 0 / 0.5665 GB, free: 14.76 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 3.65e-05/0.3216, allocations: 30.02 kB / 0.5666 GB, free: 14.72 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002082/0.3219, allocations: 4.062 kB / 0.5666 GB, free: 14.72 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004088/0.3223, allocations: 126.6 kB / 0.5667 GB, free: 14.55 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.858e-05/0.3223, allocations: 55.36 kB / 0.5668 GB, free: 14.48 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 2.077e-05/0.3223, allocations: 3.984 kB / 0.5668 GB, free: 14.48 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.421e-05/0.3224, allocations: 11.44 kB / 0.5668 GB, free: 14.46 MB / 414.1 MB Notification: Performance of SimCode: time 4.01e-07/0.3224, allocations: 3.938 kB / 0.5668 GB, free: 14.46 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02061/0.343, allocations: 2.026 MB / 0.5687 GB, free: 12.58 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.26/11.6, allocations: 14.23 kB / 0.5688 GB, free: 12.57 MB / 414.1 MB " [Timeout remaining time 648] (rm -f ModelicaTest_4.1.0_ModelicaTest.Fluid.TestUtilities.Test02RegFun3.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.Fluid.TestUtilities.Test02RegFun3.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.Fluid.TestUtilities.Test02RegFun3.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.Fluid.TestUtilities.Test02RegFun3.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.1.0_ModelicaTest.Fluid.TestUtilities.Test02RegFun3_res.mat --tempDir=temp_ModelicaTest_4_1_0_ModelicaTest_Fluid_TestUtilities_Test02RegFun3_fmu --startTime=0 --stopTime=100 --stepSize=0.019992 --timeout=50 --tolerance=1e-06 ModelicaTest_4_1_0_ModelicaTest_Fluid_TestUtilities_Test02RegFun3.fmu > ModelicaTest_4.1.0_ModelicaTest.Fluid.TestUtilities.Test02RegFun3.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_4.1.0_ModelicaTest.Fluid.TestUtilities.Test02RegFun3_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Fluid/TestUtilities/Test02RegFun3/Test02RegFun3.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.0_ModelicaTest.Fluid.TestUtilities.Test02RegFun3.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 14.555640813079663]