Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegFunctions.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.001851/0.001851, allocations: 109.2 kB / 20.43 MB, free: 1.473 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.00231/0.00231, allocations: 213.7 kB / 23.74 MB, free: 4.688 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.502/1.502, allocations: 230.6 MB / 257.5 MB, free: 8.023 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.232/0.232, allocations: 44.92 MB / 358.8 MB, free: 6.297 MB / 286.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.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.TestRegFunctions,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Fluid_TestUtilities_TestRegFunctions",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestUtilities.TestRegFunctions,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Fluid_TestUtilities_TestRegFunctions",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: ModelicaTest requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002003/0.002003, allocations: 59.91 kB / 0.4931 GB, free: 10.74 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3085/0.3105, allocations: 65.47 MB / 0.557 GB, free: 7.531 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.TestRegFunctions): time 0.001745/0.3122, allocations: 0.5332 MB / 0.5575 GB, free: 7.129 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0004655/0.3127, allocations: 166.6 kB / 0.5577 GB, free: 7.004 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.059e-05/0.3127, allocations: 0 / 0.5577 GB, free: 7.004 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.444e-05/0.3127, allocations: 0 / 0.5577 GB, free: 7.004 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002756/0.313, allocations: 37.97 kB / 0.5577 GB, free: 6.977 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 4.037e-06/0.313, allocations: 0 / 0.5577 GB, free: 6.977 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 6.862e-05/0.3131, allocations: 21.36 kB / 0.5577 GB, free: 6.965 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.641e-05/0.3131, allocations: 4.922 kB / 0.5578 GB, free: 6.961 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.459e-05/0.3132, allocations: 19.8 kB / 0.5578 GB, free: 6.945 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.674e-05/0.3132, allocations: 16.14 kB / 0.5578 GB, free: 6.934 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 1.142e-05/0.3132, allocations: 1.156 kB / 0.5578 GB, free: 6.934 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001244/0.3134, allocations: 48.33 kB / 0.5578 GB, free: 6.91 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 1.087e-05/0.3134, allocations: 5.203 kB / 0.5578 GB, free: 6.906 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.01e-05/0.3134, allocations: 9 kB / 0.5578 GB, free: 6.898 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001213/0.3135, allocations: 51.33 kB / 0.5579 GB, free: 6.855 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.655e-06/0.3135, allocations: 0 / 0.5579 GB, free: 6.855 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.202e-06/0.3135, allocations: 0 / 0.5579 GB, free: 6.855 MB / 398.1 MB Notification: Performance of Transformations before backend: time 4.338e-06/0.3135, allocations: 0 / 0.5579 GB, free: 6.855 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.0003608/0.3139, allocations: 270.2 kB / 0.5582 GB, free: 6.559 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.079e-05/0.3139, allocations: 8.031 kB / 0.5582 GB, free: 6.551 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.42e-05/0.314, allocations: 38.75 kB / 0.5582 GB, free: 6.504 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.6e-05/0.314, allocations: 0.9375 kB / 0.5582 GB, free: 6.504 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000108/0.3141, allocations: 110.5 kB / 0.5583 GB, free: 6.371 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.518e-06/0.3141, allocations: 4.375 kB / 0.5583 GB, free: 6.367 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.382e-05/0.3141, allocations: 4.375 kB / 0.5583 GB, free: 6.363 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001441/0.3143, allocations: 58.19 kB / 0.5584 GB, free: 6.301 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.28e-05/0.3143, allocations: 3.938 kB / 0.5584 GB, free: 6.297 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.067e-06/0.3143, allocations: 3.938 kB / 0.5584 GB, free: 6.293 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.501e-06/0.3143, allocations: 4 kB / 0.5584 GB, free: 6.289 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001064/0.3144, allocations: 55.95 kB / 0.5584 GB, free: 6.234 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001962/0.3146, allocations: 144.6 kB / 0.5586 GB, free: 6.051 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001458/0.3147, allocations: 78.83 kB / 0.5586 GB, free: 5.965 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000107/0.3148, allocations: 28.8 kB / 0.5587 GB, free: 5.934 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002425/0.3151, allocations: 31.95 kB / 0.5587 GB, free: 5.902 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.042e-05/0.3151, allocations: 34.56 kB / 0.5587 GB, free: 5.859 MB / 398.1 MB Notification: Performance of pre-optimization done (n=10): time 1.142e-06/0.3151, allocations: 0 / 0.5587 GB, free: 5.859 MB / 398.1 MB Notification: Performance of matching and sorting (n=10): time 0.0002503/0.3154, allocations: 105.5 kB / 0.5588 GB, free: 5.75 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.164e-05/0.3154, allocations: 51.41 kB / 0.5589 GB, free: 5.688 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.785e-05/0.3155, allocations: 93.86 kB / 0.559 GB, free: 5.586 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.646e-05/0.3155, allocations: 29.7 kB / 0.559 GB, free: 5.551 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.152e-05/0.3156, allocations: 80.27 kB / 0.5591 GB, free: 5.469 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.544e-05/0.3156, allocations: 39.69 kB / 0.5591 GB, free: 5.43 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.709e-05/0.3156, allocations: 17.72 kB / 0.5591 GB, free: 5.406 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001618/0.3158, allocations: 322.8 kB / 0.5594 GB, free: 5.082 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.385e-05/0.3158, allocations: 15.94 kB / 0.5595 GB, free: 5.066 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.188e-05/0.3159, allocations: 19.98 kB / 0.5595 GB, free: 5.047 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.459e-05/0.316, allocations: 53.36 kB / 0.5595 GB, free: 4.992 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.813e-06/0.316, allocations: 3.938 kB / 0.5595 GB, free: 4.988 MB / 398.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001399/0.3161, allocations: 89.58 kB / 0.5596 GB, free: 4.895 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.447e-05/0.3161, allocations: 11.94 kB / 0.5596 GB, free: 4.883 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.48e-06/0.3161, allocations: 3.984 kB / 0.5596 GB, free: 4.879 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.5e-05/0.3161, allocations: 0 / 0.5596 GB, free: 4.879 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.29e-05/0.3162, allocations: 12 kB / 0.5596 GB, free: 4.867 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.208e-06/0.3162, allocations: 4 kB / 0.5597 GB, free: 4.863 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.335e-05/0.3162, allocations: 0 / 0.5597 GB, free: 4.863 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.708e-06/0.3163, allocations: 4 kB / 0.5597 GB, free: 4.859 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 8.026e-05/0.3163, allocations: 113.8 kB / 0.5598 GB, free: 4.738 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.699e-05/0.3164, allocations: 15.88 kB / 0.5598 GB, free: 4.723 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001914/0.3165, allocations: 101.5 kB / 0.5599 GB, free: 4.613 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.793e-06/0.3165, allocations: 0 / 0.5599 GB, free: 4.613 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.5e-06/0.3166, allocations: 4 kB / 0.5599 GB, free: 4.609 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.955e-06/0.3166, allocations: 0 / 0.5599 GB, free: 4.609 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001353/0.3167, allocations: 140.7 kB / 0.56 GB, free: 4.43 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.022e-06/0.3167, allocations: 7.938 kB / 0.56 GB, free: 4.422 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.833e-05/0.3168, allocations: 12 kB / 0.56 GB, free: 4.41 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.697e-06/0.3168, allocations: 3.938 kB / 0.56 GB, free: 4.406 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.241e-06/0.3168, allocations: 0 / 0.56 GB, free: 4.406 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.363e-06/0.3168, allocations: 0 / 0.56 GB, free: 4.406 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.71e-07/0.3168, allocations: 8 kB / 0.56 GB, free: 4.398 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001537/0.3169, allocations: 117.2 kB / 0.5602 GB, free: 4.266 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.382e-06/0.3169, allocations: 4 kB / 0.5602 GB, free: 4.262 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.55e-05/0.3169, allocations: 8.031 kB / 0.5602 GB, free: 4.254 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.605e-05/0.317, allocations: 7.938 kB / 0.5602 GB, free: 4.246 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.118e-05/0.317, allocations: 7.984 kB / 0.5602 GB, free: 4.238 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.951e-06/0.317, allocations: 4 kB / 0.5602 GB, free: 4.234 MB / 398.1 MB Notification: Performance of sorting global known variables: time 4.678e-05/0.317, allocations: 79.28 kB / 0.5603 GB, free: 4.156 MB / 398.1 MB Notification: Performance of sort global known variables: time 6e-08/0.317, allocations: 0 / 0.5603 GB, free: 4.156 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0001986/0.3172, allocations: 16 kB / 0.5603 GB, free: 4.141 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 (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.000487/0.3177, allocations: 0.6629 MB / 0.5609 GB, free: 3.449 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.000128/0.3179, allocations: 51.92 kB / 0.561 GB, free: 3.398 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.623e-06/0.3179, allocations: 4.094 kB / 0.561 GB, free: 3.395 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 4.551e-05/0.3179, allocations: 31.92 kB / 0.561 GB, free: 3.363 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001313/0.318, allocations: 6.234 kB / 0.561 GB, free: 3.359 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004589/0.3185, allocations: 166.6 kB / 0.5612 GB, free: 3.156 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003285/0.3188, allocations: 0.6846 MB / 0.5618 GB, free: 2.445 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 3.233e-05/0.3189, allocations: 7.781 kB / 0.5618 GB, free: 2.438 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.739e-05/0.3189, allocations: 19.42 kB / 0.5619 GB, free: 2.418 MB / 398.1 MB Notification: Performance of SimCode: time 2.91e-07/0.3189, allocations: 0 / 0.5619 GB, free: 2.418 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0296/0.3485, allocations: 1.703 MB / 0.5635 GB, free: 0.8438 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.79/11.13, allocations: 10.98 kB / 0.5635 GB, free: 0.8359 MB / 398.1 MB " [Timeout remaining time 649] (rm -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegFunctions.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegFunctions.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegFunctions.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegFunctions.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegFunctions_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Fluid_TestUtilities_TestRegFunctions_fmu --startTime=0 --stopTime=1.01 --stepSize=0.000201919 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Fluid_TestUtilities_TestRegFunctions.fmu > ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegFunctions.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegFunctions_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Fluid/TestUtilities/TestRegFunctions/TestRegFunctions.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_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: 14.04765163292177]