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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001503/0.001503, allocations: 92.31 kB / 20.95 MB, free: 3.598 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001275/0.001275, allocations: 160.9 kB / 24.26 MB, free: 296 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 0.9079/0.9079, allocations: 177 MB / 204.5 MB, free: 5.613 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2514/0.2514, allocations: 34.25 MB / 295.2 MB, free: 0.6367 MB / 266.7 MB " [Timeout remaining time 180] 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"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.203e-06/1.203e-06, allocations: 0 / 376.7 MB, free: 3.445 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.488e-05/1.608e-05, allocations: 3.578 kB / 376.7 MB, free: 3.441 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.Test02RegFun3): time 0.0009679/0.000984, allocations: 0.4988 MB / 377.2 MB, free: 2.941 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.001355/0.002339, allocations: 1.362 MB / 378.5 MB, free: 1.559 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.085e-05/0.00236, allocations: 0 / 378.5 MB, free: 1.559 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 1.51e-05/0.002375, allocations: 0 / 378.5 MB, free: 1.559 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 2.405e-05/0.002399, allocations: 3.938 kB / 378.5 MB, free: 1.555 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005197/0.002919, allocations: 211.9 kB / 378.7 MB, free: 1.348 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 4.498e-05/0.002964, allocations: 11.94 kB / 378.7 MB, free: 1.336 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.273e-05/0.002996, allocations: 4 kB / 378.8 MB, free: 1.332 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.914e-05/0.003025, allocations: 7.984 kB / 378.8 MB, free: 1.324 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 4.519e-05/0.003071, allocations: 0 / 378.8 MB, free: 1.324 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 1.288e-05/0.003084, allocations: 0 / 378.8 MB, free: 1.324 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002933/0.003377, allocations: 267.6 kB / 379 MB, free: 1.062 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 1.141e-05/0.003388, allocations: 0 / 379 MB, free: 1.062 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 1.522e-05/0.003404, allocations: 3.938 kB / 379 MB, free: 1.059 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001966/0.0036, allocations: 199.5 kB / 379.2 MB, free: 0.8633 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.954e-06/0.003602, allocations: 0 / 379.2 MB, free: 0.8633 MB / 346.7 MB Notification: Performance of FrontEnd: time 6.61e-07/0.003603, allocations: 0 / 379.2 MB, free: 0.8633 MB / 346.7 MB Notification: Performance of Transformations before backend: time 3.707e-06/0.003606, allocations: 0 / 379.2 MB, free: 0.8633 MB / 346.7 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.0002685/0.003875, allocations: 262.3 kB / 379.5 MB, free: 0.5781 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.731e-05/0.003912, allocations: 8.031 kB / 379.5 MB, free: 0.5703 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.407e-05/0.003936, allocations: 34.75 kB / 379.5 MB, free: 0.5273 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.815e-05/0.003964, allocations: 0.9375 kB / 379.5 MB, free: 0.5273 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 4.921e-05/0.004014, allocations: 109.8 kB / 379.6 MB, free: 404 kB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.118e-05/0.004025, allocations: 8.375 kB / 379.6 MB, free: 396 kB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.516e-06/0.004033, allocations: 384 / 379.6 MB, free: 396 kB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.956e-05/0.004133, allocations: 55.97 kB / 379.7 MB, free: 328 kB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.412e-06/0.004139, allocations: 4.125 kB / 379.7 MB, free: 324 kB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.769e-06/0.004149, allocations: 12.11 kB / 379.7 MB, free: 312 kB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.908e-06/0.004153, allocations: 0 / 379.7 MB, free: 312 kB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.441e-05/0.004177, allocations: 8 kB / 379.7 MB, free: 304 kB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002613/0.004439, allocations: 208 kB / 379.9 MB, free: 52 kB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 3.308e-05/0.004472, allocations: 18.52 kB / 379.9 MB, free: 24 kB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.397e-05/0.004486, allocations: 12.92 kB / 379.9 MB, free: 8 kB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.729e-06/0.004495, allocations: 4.031 kB / 379.9 MB, free: 4 kB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.376e-05/0.004529, allocations: 42.48 kB / 380 MB, free: 15.95 MB / 362.7 MB Notification: Performance of pre-optimization done (n=1): time 8.02e-07/0.00453, allocations: 0 / 380 MB, free: 15.95 MB / 362.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001197/0.00465, allocations: 33.7 kB / 380 MB, free: 15.91 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.633e-05/0.004676, allocations: 51.41 kB / 380.1 MB, free: 15.85 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.835e-05/0.004734, allocations: 101.8 kB / 380.2 MB, free: 15.74 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 9.558e-06/0.004744, allocations: 25.7 kB / 380.2 MB, free: 15.71 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.313e-05/0.004777, allocations: 88.08 kB / 380.3 MB, free: 15.62 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.08e-06/0.004782, allocations: 8.188 kB / 380.3 MB, free: 15.61 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.168e-05/0.004804, allocations: 13.72 kB / 380.3 MB, free: 15.59 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 7.098e-05/0.004875, allocations: 318.8 kB / 380.6 MB, free: 15.27 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.095e-06/0.004883, allocations: 0 / 380.6 MB, free: 15.27 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.815e-05/0.004901, allocations: 26.5 kB / 380.6 MB, free: 15.24 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.662e-05/0.004928, allocations: 26.58 kB / 380.7 MB, free: 15.2 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.715e-06/0.00493, allocations: 4 kB / 380.7 MB, free: 15.2 MB / 362.7 MB Notification: Performance of matching and sorting (n=3) (initialization): time 4.835e-05/0.004979, allocations: 61.58 kB / 380.7 MB, free: 15.13 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.154e-05/0.00499, allocations: 8 kB / 380.7 MB, free: 15.12 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.697e-06/0.004994, allocations: 0 / 380.7 MB, free: 15.12 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.022e-05/0.005004, allocations: 0 / 380.7 MB, free: 15.12 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.844e-05/0.005043, allocations: 7.938 kB / 380.7 MB, free: 15.12 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.609e-06/0.005047, allocations: 4 kB / 380.8 MB, free: 15.11 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.154e-05/0.005059, allocations: 0 / 380.8 MB, free: 15.11 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.51e-06/0.005064, allocations: 4 kB / 380.8 MB, free: 15.11 MB / 362.7 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 4.354e-05/0.005108, allocations: 105.8 kB / 380.9 MB, free: 15 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.263e-05/0.00512, allocations: 3.938 kB / 380.9 MB, free: 14.99 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.669e-05/0.005197, allocations: 48.88 kB / 380.9 MB, free: 14.94 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.745e-06/0.0052, allocations: 4 kB / 380.9 MB, free: 14.94 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.086e-06/0.005203, allocations: 0 / 380.9 MB, free: 14.94 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.625e-06/0.005206, allocations: 0 / 380.9 MB, free: 14.94 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.155e-05/0.005297, allocations: 120.7 kB / 381 MB, free: 14.78 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.827e-06/0.005301, allocations: 4 kB / 381 MB, free: 14.77 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3e-07/0.005301, allocations: 0 / 381 MB, free: 14.77 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.273e-06/0.005303, allocations: 3.938 kB / 381 MB, free: 14.77 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.548e-06/0.005307, allocations: 0 / 381 MB, free: 14.77 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.32e-07/0.005308, allocations: 4.031 kB / 381 MB, free: 14.77 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.41e-07/0.005309, allocations: 0 / 381 MB, free: 14.77 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 5.773e-05/0.005366, allocations: 139.5 kB / 381.2 MB, free: 14.61 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.411e-06/0.005372, allocations: 0 / 381.2 MB, free: 14.61 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.386e-06/0.00538, allocations: 0 / 381.2 MB, free: 14.61 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.241e-05/0.005413, allocations: 0 / 381.2 MB, free: 14.61 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.2e-05/0.005425, allocations: 4 kB / 381.2 MB, free: 14.61 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.605e-06/0.005427, allocations: 0 / 381.2 MB, free: 14.61 MB / 362.7 MB Notification: Performance of sorting global known variables: time 2.338e-05/0.005451, allocations: 75.28 kB / 381.3 MB, free: 14.54 MB / 362.7 MB Notification: Performance of sort global known variables: time 5e-08/0.005451, allocations: 128 / 381.3 MB, free: 14.54 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0001927/0.005643, allocations: 55.86 kB / 381.3 MB, free: 14.48 MB / 362.7 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.0004649/0.006108, allocations: 0.7045 MB / 382 MB, free: 13.75 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 6.651e-05/0.006175, allocations: 12 kB / 382 MB, free: 13.74 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.034e-06/0.006177, allocations: 0 / 382 MB, free: 13.74 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 2.762e-05/0.006204, allocations: 33.64 kB / 382.1 MB, free: 13.7 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001614/0.006366, allocations: 7.984 kB / 382.1 MB, free: 13.69 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002958/0.006662, allocations: 138.5 kB / 382.2 MB, free: 13.52 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.473e-05/0.006696, allocations: 59.36 kB / 382.3 MB, free: 13.44 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 1.904e-05/0.006715, allocations: 0 / 382.3 MB, free: 13.44 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.108e-05/0.006736, allocations: 12.5 kB / 382.3 MB, free: 13.43 MB / 362.7 MB Notification: Performance of SimCode: time 2.61e-07/0.006737, allocations: 0 / 382.3 MB, free: 13.43 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01539/0.02212, allocations: 2.571 MB / 384.8 MB, free: 10.91 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.922/6.944, allocations: 16 kB / 384.9 MB, free: 10.9 MB / 362.7 MB " [Timeout remaining time 653] (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.019992 ModelicaTest_trunk_ModelicaTest_Fluid_TestUtilities_Test02RegFun3.fmu > ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.Test02RegFun3.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.Test02RegFun3_res.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Fluid/TestUtilities/Test02RegFun3/Test02RegFun3.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_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: 8.895351907238364]