Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.TestRegFunctions.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.001509/0.001509, allocations: 105.1 kB / 21.22 MB, free: 0.6289 MB / 14.72 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.001699/0.001699, allocations: 213.5 kB / 24.52 MB, free: 3.91 MB / 14.72 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 1.382/1.382, allocations: 230.5 MB / 258.2 MB, free: 7.789 MB / 206.1 MB " [Timeout remaining time 178] 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.22/0.22, allocations: 46.93 MB / 361.6 MB, free: 3.941 MB / 286.1 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.TestRegFunctions,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Fluid_TestUtilities_TestRegFunctions",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestUtilities.TestRegFunctions,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Fluid_TestUtilities_TestRegFunctions",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.0022/0.0022, allocations: 83.8 kB / 0.4969 GB, free: 7.578 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2992/0.3014, allocations: 66.08 MB / 0.5614 GB, free: 4.074 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.TestRegFunctions): time 0.001563/0.303, allocations: 0.5211 MB / 0.5619 GB, free: 3.559 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0004084/0.3034, allocations: 151.5 kB / 0.5621 GB, free: 3.41 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.453e-05/0.3034, allocations: 0 / 0.5621 GB, free: 3.41 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.761e-05/0.3034, allocations: 7.938 kB / 0.5621 GB, free: 3.402 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002405/0.3037, allocations: 35.84 kB / 0.5621 GB, free: 3.367 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 3.587e-06/0.3037, allocations: 3.938 kB / 0.5621 GB, free: 3.363 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 5.408e-05/0.3037, allocations: 19.86 kB / 0.5621 GB, free: 3.344 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.125e-05/0.3038, allocations: 8 kB / 0.5622 GB, free: 3.336 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.21e-05/0.3038, allocations: 15.97 kB / 0.5622 GB, free: 3.32 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.105e-05/0.3038, allocations: 15.92 kB / 0.5622 GB, free: 3.305 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 9.568e-06/0.3038, allocations: 0 / 0.5622 GB, free: 3.305 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001041/0.304, allocations: 43.95 kB / 0.5622 GB, free: 3.262 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 1.218e-05/0.304, allocations: 7.938 kB / 0.5622 GB, free: 3.254 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.149e-05/0.304, allocations: 15.86 kB / 0.5622 GB, free: 3.238 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001096/0.3041, allocations: 41.66 kB / 0.5623 GB, free: 3.199 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.067e-06/0.3041, allocations: 0 / 0.5623 GB, free: 3.199 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.333e-06/0.3041, allocations: 0 / 0.5623 GB, free: 3.199 MB / 398.1 MB Notification: Performance of Transformations before backend: time 5.741e-06/0.3041, allocations: 4 kB / 0.5623 GB, free: 3.195 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: 10 * Number of variables: 10 Notification: Performance of Generate backend data structure: time 0.0002997/0.3044, allocations: 270.2 kB / 0.5625 GB, free: 2.898 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.697e-05/0.3044, allocations: 8.031 kB / 0.5626 GB, free: 2.891 MB / 398.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.645e-05/0.3045, allocations: 4.188 kB / 0.5626 GB, free: 2.887 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.15e-05/0.3045, allocations: 34.75 kB / 0.5626 GB, free: 2.844 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.641e-05/0.3045, allocations: 4.938 kB / 0.5626 GB, free: 2.84 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.785e-05/0.3046, allocations: 102.5 kB / 0.5627 GB, free: 2.715 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.151e-05/0.3046, allocations: 4.375 kB / 0.5627 GB, free: 2.711 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.191e-05/0.3046, allocations: 4.312 kB / 0.5627 GB, free: 2.707 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001316/0.3048, allocations: 65.98 kB / 0.5628 GB, free: 2.637 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.055e-06/0.3048, allocations: 0 / 0.5628 GB, free: 2.637 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.847e-06/0.3048, allocations: 4 kB / 0.5628 GB, free: 2.633 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.168e-06/0.3048, allocations: 0 / 0.5628 GB, free: 2.633 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.945e-05/0.3049, allocations: 55.95 kB / 0.5628 GB, free: 2.578 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001758/0.3051, allocations: 148.6 kB / 0.563 GB, free: 2.391 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001391/0.3052, allocations: 66.56 kB / 0.563 GB, free: 2.316 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.915e-05/0.3053, allocations: 28.84 kB / 0.5631 GB, free: 2.285 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002236/0.3055, allocations: 27.91 kB / 0.5631 GB, free: 2.258 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.863e-05/0.3055, allocations: 38.5 kB / 0.5631 GB, free: 2.211 MB / 398.1 MB Notification: Performance of pre-optimization done (n=10): time 1.193e-06/0.3055, allocations: 4 kB / 0.5631 GB, free: 2.207 MB / 398.1 MB Notification: Performance of matching and sorting (n=10): time 0.0002313/0.3057, allocations: 105.8 kB / 0.5632 GB, free: 2.098 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.148e-05/0.3058, allocations: 55.41 kB / 0.5633 GB, free: 2.031 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.481e-05/0.3058, allocations: 89.86 kB / 0.5634 GB, free: 1.934 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.007e-05/0.3059, allocations: 29.7 kB / 0.5634 GB, free: 1.898 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.24e-05/0.3059, allocations: 84.14 kB / 0.5635 GB, free: 1.812 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.608e-05/0.3059, allocations: 39.67 kB / 0.5635 GB, free: 1.773 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.882e-05/0.306, allocations: 21.66 kB / 0.5635 GB, free: 1.746 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001285/0.3061, allocations: 318.8 kB / 0.5638 GB, free: 1.426 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.444e-05/0.3061, allocations: 15.98 kB / 0.5639 GB, free: 1.41 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.372e-05/0.3062, allocations: 24.11 kB / 0.5639 GB, free: 1.387 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.904e-05/0.3063, allocations: 44.86 kB / 0.5639 GB, free: 1.34 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.452e-06/0.3063, allocations: 0 / 0.5639 GB, free: 1.34 MB / 398.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001336/0.3064, allocations: 89.58 kB / 0.564 GB, free: 1.246 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.512e-05/0.3064, allocations: 10.94 kB / 0.564 GB, free: 1.238 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.418e-06/0.3064, allocations: 0 / 0.564 GB, free: 1.238 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.249e-05/0.3064, allocations: 0 / 0.564 GB, free: 1.238 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001007/0.3065, allocations: 19.98 kB / 0.564 GB, free: 1.219 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.075e-06/0.3065, allocations: 7.938 kB / 0.564 GB, free: 1.211 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.301e-05/0.3066, allocations: 0 / 0.564 GB, free: 1.211 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.035e-06/0.3066, allocations: 4 kB / 0.564 GB, free: 1.207 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 (10): * Single equations (assignments): 10 * 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.973e-05/0.3066, allocations: 117.8 kB / 0.5642 GB, free: 1.082 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.596e-05/0.3067, allocations: 11.89 kB / 0.5642 GB, free: 1.07 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000193/0.3069, allocations: 105.5 kB / 0.5643 GB, free: 0.957 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.439e-06/0.3069, allocations: 4 kB / 0.5643 GB, free: 0.9531 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.617e-06/0.3069, allocations: 0 / 0.5643 GB, free: 0.9531 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.524e-06/0.3069, allocations: 0 / 0.5643 GB, free: 0.9531 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001277/0.307, allocations: 140.7 kB / 0.5644 GB, free: 0.7734 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.132e-06/0.307, allocations: 0 / 0.5644 GB, free: 0.7734 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.266e-05/0.3071, allocations: 12 kB / 0.5644 GB, free: 0.7617 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.677e-06/0.3071, allocations: 7.938 kB / 0.5644 GB, free: 0.7539 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.253e-06/0.3071, allocations: 0 / 0.5644 GB, free: 0.7539 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.799e-06/0.3071, allocations: 4 kB / 0.5644 GB, free: 0.75 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.71e-07/0.3071, allocations: 0 / 0.5644 GB, free: 0.75 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001673/0.3072, allocations: 124.9 kB / 0.5645 GB, free: 0.6094 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.034e-06/0.3072, allocations: 3.938 kB / 0.5646 GB, free: 0.6055 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.515e-05/0.3073, allocations: 7.984 kB / 0.5646 GB, free: 0.5977 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.334e-05/0.3073, allocations: 0 / 0.5646 GB, free: 0.5977 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.166e-05/0.3073, allocations: 7.984 kB / 0.5646 GB, free: 0.5898 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.071e-06/0.3073, allocations: 4 kB / 0.5646 GB, free: 0.5859 MB / 398.1 MB Notification: Performance of sorting global known variables: time 3.552e-05/0.3073, allocations: 75.28 kB / 0.5646 GB, free: 0.5117 MB / 398.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3073, allocations: 4.094 kB / 0.5646 GB, free: 0.5078 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0001937/0.3075, allocations: 23.92 kB / 0.5647 GB, free: 496 kB / 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 (10): * Single equations (assignments): 10 * 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 Backend phase and start with SimCode phase: time 0.0005055/0.308, allocations: 0.6631 MB / 0.5653 GB, free: 15.79 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.000134/0.3082, allocations: 47.92 kB / 0.5654 GB, free: 15.75 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 1.643e-06/0.3082, allocations: 0 / 0.5654 GB, free: 15.75 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 4.534e-05/0.3082, allocations: 27.98 kB / 0.5654 GB, free: 15.72 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001402/0.3084, allocations: 8 kB / 0.5654 GB, free: 15.71 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004257/0.3088, allocations: 166.6 kB / 0.5656 GB, free: 15.51 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.577e-05/0.3088, allocations: 67.34 kB / 0.5656 GB, free: 15.42 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 3.373e-05/0.3089, allocations: 11.77 kB / 0.5656 GB, free: 15.41 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.427e-05/0.3089, allocations: 15.44 kB / 0.5656 GB, free: 15.39 MB / 414.1 MB Notification: Performance of SimCode: time 2.6e-07/0.3089, allocations: 0 / 0.5656 GB, free: 15.39 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01996/0.3289, allocations: 1.733 MB / 0.5673 GB, free: 13.77 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.68/11, allocations: 15.3 kB / 0.5674 GB, free: 13.76 MB / 414.1 MB " [Timeout remaining time 649] (rm -f ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.TestRegFunctions.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.TestRegFunctions.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.TestRegFunctions.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.TestRegFunctions.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.TestRegFunctions_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Fluid_TestUtilities_TestRegFunctions_fmu --startTime=0 --stopTime=1.01 --stepSize=0.000201919 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Fluid_TestUtilities_TestRegFunctions.fmu > ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.TestRegFunctions.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.TestRegFunctions_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Fluid/TestUtilities/TestRegFunctions/TestRegFunctions.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.TestRegFunctions.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: 13.850748942000791]