Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.Test02RegFun3.conf.json 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/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/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 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) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(ModelicaTest.Fluid.TestUtilities.Test02RegFun3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|x|a|b",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.Test02RegFun3") translateModel(ModelicaTest.Fluid.TestUtilities.Test02RegFun3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|x|a|b",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.Test02RegFun3") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00123/0.00123, allocations: 113.3 kB / 18.45 MB, free: 4.602 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001214/0.001214, allocations: 181.1 kB / 19.38 MB, free: 3.684 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.288/1.288, allocations: 222.9 MB / 243.1 MB, free: 15.05 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.208/0.208, allocations: 44.18 MB / 337.4 MB, free: 2.672 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001225/0.001225, allocations: 59.91 kB / 471.2 MB, free: 13.18 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3145/0.3157, allocations: 60.83 MB / 0.5195 GB, free: 3.605 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.Test02RegFun3): time 0.001488/0.3172, allocations: 498.5 kB / 0.52 GB, free: 3.312 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001467/0.3187, allocations: 1.349 MB / 0.5213 GB, free: 2.344 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.572e-05/0.3187, allocations: 0 / 0.5213 GB, free: 2.344 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 1.152e-05/0.3188, allocations: 0 / 0.5213 GB, free: 2.344 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 2.416e-05/0.3188, allocations: 0 / 0.5213 GB, free: 2.344 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006355/0.3194, allocations: 222.4 kB / 0.5216 GB, free: 2.27 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 4.832e-05/0.3195, allocations: 10.09 kB / 0.5216 GB, free: 2.266 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.741e-05/0.3195, allocations: 5.984 kB / 0.5216 GB, free: 2.262 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.879e-05/0.3196, allocations: 8.422 kB / 0.5216 GB, free: 2.258 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.565e-05/0.3196, allocations: 3.328 kB / 0.5216 GB, free: 2.258 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 1.193e-05/0.3196, allocations: 0 / 0.5216 GB, free: 2.258 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000469/0.3201, allocations: 274.9 kB / 0.5218 GB, free: 2.191 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 1.189e-05/0.3201, allocations: 4.781 kB / 0.5218 GB, free: 2.188 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 1.705e-05/0.3201, allocations: 2.047 kB / 0.5218 GB, free: 2.188 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002265/0.3204, allocations: 139.5 kB / 0.522 GB, free: 2.152 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.829e-06/0.3204, allocations: 1.844 kB / 0.522 GB, free: 2.152 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.703e-06/0.3204, allocations: 3.938 kB / 0.522 GB, free: 2.148 MB / 382.1 MB Notification: Performance of Transformations before backend: time 4.839e-06/0.3204, allocations: 4 kB / 0.522 GB, free: 2.145 MB / 382.1 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.0002821/0.3207, allocations: 335.1 kB / 0.5223 GB, free: 1.785 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.278e-05/0.3207, allocations: 9.188 kB / 0.5223 GB, free: 1.785 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.607e-05/0.3208, allocations: 2.75 kB / 0.5223 GB, free: 1.785 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 5.916e-05/0.3208, allocations: 161.1 kB / 0.5225 GB, free: 1.59 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.02e-05/0.3208, allocations: 1.625 kB / 0.5225 GB, free: 1.59 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.215e-06/0.3209, allocations: 1.469 kB / 0.5225 GB, free: 1.59 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.286e-05/0.321, allocations: 47 kB / 0.5225 GB, free: 1.547 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.895e-06/0.321, allocations: 4 kB / 0.5225 GB, free: 1.543 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.051e-05/0.321, allocations: 1.766 kB / 0.5225 GB, free: 1.543 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.646e-06/0.321, allocations: 0 / 0.5225 GB, free: 1.543 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.057e-05/0.321, allocations: 9.922 kB / 0.5225 GB, free: 1.539 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002652/0.3213, allocations: 243.1 kB / 0.5228 GB, free: 1.266 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.258e-05/0.3213, allocations: 17.67 kB / 0.5228 GB, free: 1.242 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.488e-05/0.3214, allocations: 5.953 kB / 0.5228 GB, free: 1.234 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.047e-05/0.3214, allocations: 8.781 kB / 0.5228 GB, free: 1.227 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.871e-05/0.3214, allocations: 35.69 kB / 0.5228 GB, free: 1.184 MB / 382.1 MB Notification: Performance of pre-optimization done (n=1): time 1.123e-06/0.3214, allocations: 0 / 0.5228 GB, free: 1.184 MB / 382.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001263/0.3215, allocations: 34 kB / 0.5229 GB, free: 1.152 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.161e-05/0.3216, allocations: 51.92 kB / 0.5229 GB, free: 1.09 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.532e-05/0.3216, allocations: 95.22 kB / 0.523 GB, free: 0.9922 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 7.334e-06/0.3216, allocations: 29.7 kB / 0.523 GB, free: 0.957 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.534e-05/0.3217, allocations: 94.08 kB / 0.5231 GB, free: 0.8672 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.511e-06/0.3217, allocations: 8.5 kB / 0.5231 GB, free: 0.8594 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.428e-05/0.3217, allocations: 14.08 kB / 0.5231 GB, free: 0.8438 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 3.865e-05/0.3217, allocations: 320.8 kB / 0.5235 GB, free: 0.5234 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.282e-05/0.3218, allocations: 1.828 kB / 0.5235 GB, free: 0.5234 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.731e-05/0.3218, allocations: 23.14 kB / 0.5235 GB, free: 0.4961 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.994e-05/0.3218, allocations: 34 kB / 0.5235 GB, free: 472 kB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.094e-06/0.3218, allocations: 0 / 0.5235 GB, free: 472 kB / 382.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 6.139e-05/0.3219, allocations: 45.75 kB / 0.5236 GB, free: 436 kB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.234e-05/0.3219, allocations: 7.969 kB / 0.5236 GB, free: 436 kB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.957e-06/0.3219, allocations: 1.188 kB / 0.5236 GB, free: 436 kB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.302e-05/0.3219, allocations: 1.094 kB / 0.5236 GB, free: 436 kB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.737e-05/0.322, allocations: 14.59 kB / 0.5236 GB, free: 428 kB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.89e-06/0.322, allocations: 5.375 kB / 0.5236 GB, free: 424 kB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.777e-05/0.322, allocations: 1.531 kB / 0.5236 GB, free: 424 kB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.82e-06/0.322, allocations: 2.094 kB / 0.5236 GB, free: 424 kB / 382.1 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 3.834e-05/0.3221, allocations: 111.6 kB / 0.5237 GB, free: 304 kB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.153e-05/0.3221, allocations: 1.062 kB / 0.5237 GB, free: 304 kB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.776e-05/0.3222, allocations: 52.11 kB / 0.5237 GB, free: 256 kB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.395e-06/0.3222, allocations: 8.578 kB / 0.5237 GB, free: 248 kB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.346e-06/0.3222, allocations: 1.406 kB / 0.5238 GB, free: 248 kB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.485e-06/0.3222, allocations: 0 / 0.5238 GB, free: 248 kB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.661e-05/0.3223, allocations: 154.5 kB / 0.5239 GB, free: 48 kB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.119e-06/0.3223, allocations: 1.094 kB / 0.5239 GB, free: 48 kB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.82e-07/0.3223, allocations: 0.9375 kB / 0.5239 GB, free: 48 kB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.703e-06/0.3223, allocations: 1.062 kB / 0.5239 GB, free: 48 kB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.649e-06/0.3223, allocations: 0 / 0.5239 GB, free: 48 kB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.81e-07/0.3224, allocations: 1.031 kB / 0.5239 GB, free: 48 kB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.62e-07/0.3224, allocations: 0 / 0.5239 GB, free: 48 kB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.724e-05/0.3225, allocations: 138.1 kB / 0.524 GB, free: 15.91 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.906e-05/0.3225, allocations: 82.73 kB / 0.5241 GB, free: 15.81 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.01e-05/0.3225, allocations: 0.7969 kB / 0.5241 GB, free: 15.81 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.652e-05/0.3226, allocations: 1.125 kB / 0.5241 GB, free: 15.81 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.243e-05/0.3226, allocations: 1.969 kB / 0.5241 GB, free: 15.81 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.128e-06/0.3226, allocations: 1.031 kB / 0.5241 GB, free: 15.81 MB / 398.1 MB Notification: Performance of sorting global known variables: time 3.329e-05/0.3226, allocations: 82.19 kB / 0.5242 GB, free: 15.73 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.984e-06/0.3227, allocations: 0 / 0.5242 GB, free: 15.73 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0003042/0.323, allocations: 47.75 kB / 0.5242 GB, free: 15.72 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 (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.0002502/0.3232, allocations: 131.9 kB / 0.5244 GB, free: 15.62 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 7.616e-05/0.3233, allocations: 16.78 kB / 0.5244 GB, free: 15.62 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.824e-06/0.3233, allocations: 0 / 0.5244 GB, free: 15.62 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 3.017e-05/0.3233, allocations: 30.08 kB / 0.5244 GB, free: 15.59 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000201/0.3236, allocations: 9.656 kB / 0.5244 GB, free: 15.58 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002134/0.3238, allocations: 107.2 kB / 0.5245 GB, free: 15.45 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000229/0.324, allocations: 0.6809 MB / 0.5252 GB, free: 14.75 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.353e-05/0.324, allocations: 8.5 kB / 0.5252 GB, free: 14.74 MB / 398.1 MB Notification: Performance of SimCode: time 2.3e-07/0.324, allocations: 0 / 0.5252 GB, free: 14.74 MB / 398.1 MB Notification: Performance of Templates: time 0.002518/0.3266, allocations: 0.9299 MB / 0.5261 GB, free: 14.68 MB / 398.1 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.Test02RegFun3.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.Test02RegFun3.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.Test02RegFun3.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.Test02RegFun3.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.Test02RegFun3.sim & ./ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.Test02RegFun3 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.Test02RegFun3.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.Test02RegFun3_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Fluid/TestUtilities/Test02RegFun3/Test02RegFun3.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.Test02RegFun3.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches