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.0016/0.0016, allocations: 111.1 kB / 20.44 MB, free: 1.062 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.00186/0.00186, allocations: 220.5 kB / 23.73 MB, free: 4.16 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.449/1.449, allocations: 230.6 MB / 257.5 MB, free: 7.793 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.2266/0.2266, allocations: 44.94 MB / 358.8 MB, free: 6.031 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.002119/0.002119, allocations: 71.91 kB / 0.493 GB, free: 10.52 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.31/0.3121, allocations: 65.47 MB / 0.5569 GB, free: 7.324 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.TestRegFunctions): time 0.0018/0.3139, allocations: 0.5314 MB / 0.5575 GB, free: 6.926 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0004357/0.3144, allocations: 149.1 kB / 0.5576 GB, free: 6.82 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.481e-05/0.3144, allocations: 0 / 0.5576 GB, free: 6.82 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.227e-05/0.3144, allocations: 1.094 kB / 0.5576 GB, free: 6.82 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002497/0.3146, allocations: 48.84 kB / 0.5577 GB, free: 6.781 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 4.378e-06/0.3147, allocations: 0 / 0.5577 GB, free: 6.781 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 5.617e-05/0.3147, allocations: 17.67 kB / 0.5577 GB, free: 6.773 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.278e-05/0.3148, allocations: 5.312 kB / 0.5577 GB, free: 6.77 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.119e-05/0.3148, allocations: 8.188 kB / 0.5577 GB, free: 6.766 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.686e-05/0.3148, allocations: 14.95 kB / 0.5577 GB, free: 6.754 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 1.093e-05/0.3148, allocations: 1.5 kB / 0.5577 GB, free: 6.754 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001236/0.315, allocations: 47.94 kB / 0.5577 GB, free: 6.707 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 1.919e-05/0.315, allocations: 15.92 kB / 0.5578 GB, free: 6.691 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 1.591e-05/0.315, allocations: 0 / 0.5578 GB, free: 6.691 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000121/0.3151, allocations: 53.58 kB / 0.5578 GB, free: 6.641 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.268e-06/0.3151, allocations: 0 / 0.5578 GB, free: 6.641 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.004e-06/0.3151, allocations: 0 / 0.5578 GB, free: 6.641 MB / 398.1 MB Notification: Performance of Transformations before backend: time 5.41e-06/0.3151, allocations: 0 / 0.5578 GB, free: 6.641 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.0003831/0.3155, allocations: 266.2 kB / 0.5581 GB, free: 6.348 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.859e-05/0.3156, allocations: 12.03 kB / 0.5581 GB, free: 6.336 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.875e-05/0.3156, allocations: 42.67 kB / 0.5581 GB, free: 6.285 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.866e-05/0.3156, allocations: 4.938 kB / 0.5581 GB, free: 6.281 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001161/0.3158, allocations: 106.5 kB / 0.5582 GB, free: 6.152 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.337e-05/0.3158, allocations: 4.375 kB / 0.5582 GB, free: 6.148 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.327e-06/0.3158, allocations: 384 / 0.5582 GB, free: 6.148 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001463/0.3159, allocations: 66.23 kB / 0.5583 GB, free: 6.078 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.228e-05/0.3159, allocations: 3.938 kB / 0.5583 GB, free: 6.074 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.477e-06/0.3159, allocations: 3.938 kB / 0.5583 GB, free: 6.07 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.518e-06/0.316, allocations: 8 kB / 0.5583 GB, free: 6.062 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001205/0.3161, allocations: 47.95 kB / 0.5584 GB, free: 6.016 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000197/0.3163, allocations: 140.7 kB / 0.5585 GB, free: 5.836 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001676/0.3164, allocations: 70.55 kB / 0.5586 GB, free: 5.758 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.582e-05/0.3165, allocations: 29.12 kB / 0.5586 GB, free: 5.727 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002478/0.3167, allocations: 27.92 kB / 0.5586 GB, free: 5.699 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.45e-05/0.3168, allocations: 38.56 kB / 0.5586 GB, free: 5.652 MB / 398.1 MB Notification: Performance of pre-optimization done (n=10): time 1.293e-06/0.3168, allocations: 0 / 0.5586 GB, free: 5.652 MB / 398.1 MB Notification: Performance of matching and sorting (n=10): time 0.0002577/0.317, allocations: 105.5 kB / 0.5588 GB, free: 5.543 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.957e-05/0.3171, allocations: 51.41 kB / 0.5588 GB, free: 5.48 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.429e-05/0.3172, allocations: 97.84 kB / 0.5589 GB, free: 5.375 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.245e-05/0.3172, allocations: 29.7 kB / 0.5589 GB, free: 5.34 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.812e-05/0.3173, allocations: 80.14 kB / 0.559 GB, free: 5.258 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.324e-05/0.3173, allocations: 31.7 kB / 0.559 GB, free: 5.227 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.274e-05/0.3173, allocations: 25.7 kB / 0.5591 GB, free: 5.195 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001428/0.3175, allocations: 319 kB / 0.5594 GB, free: 4.875 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.434e-05/0.3175, allocations: 19.98 kB / 0.5594 GB, free: 4.855 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.427e-05/0.3176, allocations: 20.25 kB / 0.5594 GB, free: 4.836 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.781e-05/0.3176, allocations: 56.78 kB / 0.5594 GB, free: 4.777 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.572e-06/0.3177, allocations: 0 / 0.5594 GB, free: 4.777 MB / 398.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001325/0.3178, allocations: 85.58 kB / 0.5595 GB, free: 4.688 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.618e-05/0.3178, allocations: 7.938 kB / 0.5595 GB, free: 4.68 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.847e-06/0.3178, allocations: 0 / 0.5595 GB, free: 4.68 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.109e-05/0.3178, allocations: 4 kB / 0.5595 GB, free: 4.676 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.764e-05/0.3179, allocations: 15.98 kB / 0.5596 GB, free: 4.66 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.239e-06/0.3179, allocations: 0 / 0.5596 GB, free: 4.66 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.587e-05/0.3179, allocations: 8 kB / 0.5596 GB, free: 4.652 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.691e-06/0.3179, allocations: 4 kB / 0.5596 GB, free: 4.648 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 9.367e-05/0.318, allocations: 113.8 kB / 0.5597 GB, free: 4.527 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.418e-05/0.3181, allocations: 7.891 kB / 0.5597 GB, free: 4.52 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001954/0.3183, allocations: 97.52 kB / 0.5598 GB, free: 4.414 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.037e-06/0.3183, allocations: 3.984 kB / 0.5598 GB, free: 4.41 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.258e-06/0.3183, allocations: 0 / 0.5598 GB, free: 4.41 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.915e-06/0.3183, allocations: 0 / 0.5598 GB, free: 4.41 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001511/0.3184, allocations: 144.7 kB / 0.5599 GB, free: 4.227 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.496e-06/0.3184, allocations: 3.984 kB / 0.5599 GB, free: 4.223 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.366e-05/0.3185, allocations: 27.92 kB / 0.5599 GB, free: 4.195 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.348e-06/0.3185, allocations: 4.312 kB / 0.56 GB, free: 4.191 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.488e-06/0.3185, allocations: 4 kB / 0.56 GB, free: 4.188 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.422e-06/0.3185, allocations: 0 / 0.56 GB, free: 4.188 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.91e-07/0.3185, allocations: 0 / 0.56 GB, free: 4.188 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001779/0.3187, allocations: 120.9 kB / 0.5601 GB, free: 4.051 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.334e-06/0.3187, allocations: 4 kB / 0.5601 GB, free: 4.047 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.61e-05/0.3187, allocations: 3.938 kB / 0.5601 GB, free: 4.043 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.34e-05/0.3187, allocations: 0 / 0.5601 GB, free: 4.043 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.961e-05/0.3188, allocations: 11.98 kB / 0.5601 GB, free: 4.031 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.921e-06/0.3188, allocations: 8 kB / 0.5601 GB, free: 4.023 MB / 398.1 MB Notification: Performance of sorting global known variables: time 4.178e-05/0.3188, allocations: 75.28 kB / 0.5602 GB, free: 3.949 MB / 398.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3188, allocations: 0 / 0.5602 GB, free: 3.949 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002212/0.319, allocations: 16 kB / 0.5602 GB, free: 3.934 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.0005307/0.3196, allocations: 0.6591 MB / 0.5608 GB, free: 3.246 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0001464/0.3197, allocations: 51.91 kB / 0.5609 GB, free: 3.195 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.653e-06/0.3197, allocations: 0 / 0.5609 GB, free: 3.195 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 4.773e-05/0.3197, allocations: 31.92 kB / 0.5609 GB, free: 3.164 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001455/0.3199, allocations: 6.188 kB / 0.5609 GB, free: 3.16 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000443/0.3203, allocations: 171.3 kB / 0.5611 GB, free: 2.953 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.877e-05/0.3204, allocations: 63.34 kB / 0.5611 GB, free: 2.871 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 3.651e-05/0.3204, allocations: 7.781 kB / 0.5611 GB, free: 2.863 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.991e-05/0.3205, allocations: 23.36 kB / 0.5612 GB, free: 2.84 MB / 398.1 MB Notification: Performance of SimCode: time 2.81e-07/0.3205, allocations: 0 / 0.5612 GB, free: 2.84 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02731/0.3478, allocations: 2.047 MB / 0.5632 GB, free: 0.918 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.84/11.18, allocations: 18.98 kB / 0.5632 GB, free: 0.9023 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.064696333836764]