Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.Test01RegFun3.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) 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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: translateModel(ModelicaTest.Fluid.TestUtilities.Test01RegFun3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|x",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.Test01RegFun3") translateModel(ModelicaTest.Fluid.TestUtilities.Test01RegFun3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|x",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.Test01RegFun3") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009048/0.0009046, allocations: 180.5 kB / 14.15 MB, free: 1.176 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.331/1.331, allocations: 221.3 MB / 236 MB, free: 2.973 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008225/0.0008226, allocations: 91.17 kB / 287 MB, free: 260 kB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.1719/0.1719, allocations: 44.15 MB / 382 MB, free: 14.69 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 2.243e-05/2.246e-05, allocations: 224 / 451.8 MB, free: 9.461 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1402/0.1402, allocations: 61.92 MB / 0.5017 GB, free: 11.48 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3492/0.4895, allocations: 86.36 MB / 0.586 GB, free: 2.984 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000185/0.4897, allocations: 63.97 kB / 0.5861 GB, free: 2.922 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02603/0.5157, allocations: 8.303 MB / 0.5942 GB, free: 10.62 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.823e-06/0.5158, allocations: 4 kB / 0.5942 GB, free: 10.62 MB / 410.7 MB Notification: Performance of Transformations before backend: time 8.466e-06/0.5158, allocations: 4 kB / 0.5942 GB, free: 10.61 MB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1 * Number of variables: 1 Notification: Performance of Generate backend data structure: time 0.0004601/0.5163, allocations: 350.3 kB / 0.5945 GB, free: 10.23 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.117e-05/0.5163, allocations: 8.031 kB / 0.5946 GB, free: 10.22 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.576e-05/0.5164, allocations: 0 / 0.5946 GB, free: 10.22 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001587/0.5165, allocations: 159.1 kB / 0.5947 GB, free: 10.02 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.696e-05/0.5166, allocations: 0 / 0.5947 GB, free: 10.02 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.52e-05/0.5166, allocations: 7.953 kB / 0.5947 GB, free: 10.02 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000127/0.5167, allocations: 37.58 kB / 0.5947 GB, free: 9.973 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.097e-06/0.5168, allocations: 4 kB / 0.5948 GB, free: 9.969 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.371e-05/0.5168, allocations: 0 / 0.5948 GB, free: 9.969 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.761e-06/0.5168, allocations: 0 / 0.5948 GB, free: 9.969 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.683e-05/0.5168, allocations: 3.984 kB / 0.5948 GB, free: 9.965 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001935/0.517, allocations: 149.7 kB / 0.5949 GB, free: 9.77 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.08e-05/0.5171, allocations: 14.58 kB / 0.5949 GB, free: 9.746 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.022e-05/0.5171, allocations: 12.94 kB / 0.5949 GB, free: 9.73 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.697e-05/0.5171, allocations: 3.953 kB / 0.5949 GB, free: 9.727 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.412e-05/0.5172, allocations: 38.5 kB / 0.595 GB, free: 9.68 MB / 410.7 MB Notification: Performance of pre-optimization done (n=1): time 9.72e-07/0.5172, allocations: 0 / 0.595 GB, free: 9.68 MB / 410.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001267/0.5173, allocations: 37.69 kB / 0.595 GB, free: 9.637 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.695e-05/0.5174, allocations: 55.41 kB / 0.5951 GB, free: 9.57 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.744e-05/0.5174, allocations: 89 kB / 0.5951 GB, free: 9.477 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 1.566e-05/0.5175, allocations: 25.7 kB / 0.5952 GB, free: 9.445 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.419e-05/0.5175, allocations: 80.3 kB / 0.5952 GB, free: 9.363 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.458e-05/0.5175, allocations: 4 kB / 0.5952 GB, free: 9.359 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.394e-06/0.5176, allocations: 0 / 0.5952 GB, free: 9.359 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001135/0.5177, allocations: 310.8 kB / 0.5955 GB, free: 9.047 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.219e-05/0.5177, allocations: 4 kB / 0.5955 GB, free: 9.043 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.518e-06/0.5177, allocations: 4 kB / 0.5955 GB, free: 9.039 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 1.871e-05/0.5177, allocations: 7.984 kB / 0.5956 GB, free: 9.031 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.33e-06/0.5177, allocations: 3.938 kB / 0.5956 GB, free: 9.027 MB / 410.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.029e-05/0.5178, allocations: 41.61 kB / 0.5956 GB, free: 8.98 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.714e-05/0.5178, allocations: 13.55 kB / 0.5956 GB, free: 8.969 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.248e-05/0.5178, allocations: 0 / 0.5956 GB, free: 8.969 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.206e-05/0.5179, allocations: 0 / 0.5956 GB, free: 8.969 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.182e-06/0.5179, allocations: 0 / 0.5956 GB, free: 8.969 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.622e-06/0.5179, allocations: 0 / 0.5956 GB, free: 8.969 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.961e-05/0.5179, allocations: 4 kB / 0.5956 GB, free: 8.965 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.984e-06/0.5179, allocations: 0 / 0.5956 GB, free: 8.965 MB / 410.7 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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 6.489e-05/0.518, allocations: 101 kB / 0.5957 GB, free: 8.859 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.011e-05/0.518, allocations: 3.984 kB / 0.5957 GB, free: 8.855 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001229/0.5182, allocations: 56.67 kB / 0.5958 GB, free: 8.789 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.145e-06/0.5182, allocations: 0 / 0.5958 GB, free: 8.789 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.508e-06/0.5182, allocations: 4 kB / 0.5958 GB, free: 8.785 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.753e-06/0.5182, allocations: 0 / 0.5958 GB, free: 8.785 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.715e-05/0.5183, allocations: 145.7 kB / 0.5959 GB, free: 8.594 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.867e-06/0.5183, allocations: 0 / 0.5959 GB, free: 8.594 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.91e-07/0.5183, allocations: 4 kB / 0.5959 GB, free: 8.59 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.026e-06/0.5183, allocations: 4 kB / 0.5959 GB, free: 8.586 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.35e-06/0.5183, allocations: 4.031 kB / 0.5959 GB, free: 8.582 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.866e-06/0.5183, allocations: 7.891 kB / 0.5959 GB, free: 8.574 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.42e-07/0.5183, allocations: 0 / 0.5959 GB, free: 8.574 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.105e-05/0.5184, allocations: 61.12 kB / 0.596 GB, free: 8.496 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.926e-05/0.5185, allocations: 77.11 kB / 0.5961 GB, free: 8.402 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.228e-05/0.5185, allocations: 4 kB / 0.5961 GB, free: 8.398 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.512e-05/0.5185, allocations: 3.984 kB / 0.5961 GB, free: 8.395 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.461e-05/0.5185, allocations: 11.92 kB / 0.5961 GB, free: 8.383 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.58e-06/0.5186, allocations: 4 kB / 0.5961 GB, free: 8.379 MB / 410.7 MB Notification: Performance of sorting global known variables: time 4.129e-05/0.5186, allocations: 75.28 kB / 0.5962 GB, free: 8.305 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.5186, allocations: 0 / 0.5962 GB, free: 8.305 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0002782/0.5189, allocations: 51.94 kB / 0.5962 GB, free: 8.254 MB / 410.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 () * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003265/0.5192, allocations: 147.1 kB / 0.5963 GB, free: 8.102 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 8.043e-05/0.5193, allocations: 29.7 kB / 0.5964 GB, free: 8.066 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 4.017e-06/0.5193, allocations: 4.156 kB / 0.5964 GB, free: 8.062 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 2.266e-05/0.5194, allocations: 33.64 kB / 0.5964 GB, free: 8.023 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001019/0.5195, allocations: 4 kB / 0.5964 GB, free: 8.02 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002062/0.5197, allocations: 53.48 kB / 0.5965 GB, free: 7.945 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002243/0.5199, allocations: 0.6731 MB / 0.5971 GB, free: 7.246 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 1.613e-05/0.5199, allocations: 0 / 0.5971 GB, free: 7.246 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.086e-05/0.52, allocations: 11.38 kB / 0.5971 GB, free: 7.234 MB / 410.7 MB Notification: Performance of SimCode: time 2.6e-07/0.52, allocations: 0 / 0.5971 GB, free: 7.234 MB / 410.7 MB Notification: Performance of Templates: time 0.002922/0.5229, allocations: 0.8465 MB / 0.598 GB, free: 6.395 MB / 410.7 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.Test01RegFun3.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.Test01RegFun3.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.Test01RegFun3.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.Test01RegFun3.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.Test01RegFun3.sim & ./ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.Test01RegFun3 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.Test01RegFun3.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.Test01RegFun3_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Fluid/TestUtilities/Test01RegFun3/Test01RegFun3.csv","../files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.Test01RegFun3.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches