Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.Test02RegFun3.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 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(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00141/0.00141, allocations: 177.2 kB / 17.41 MB, free: 4.293 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.279/1.279, allocations: 225.7 MB / 243.9 MB, free: 8.488 MB / 202.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007571/0.0007571, allocations: 97.3 kB / 295.1 MB, free: 9.512 MB / 234.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.3095/0.3095, allocations: 44.31 MB / 390.5 MB, free: 38.07 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003538/0.0003538, allocations: 8 kB / 463.1 MB, free: 492 kB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3113/0.3117, allocations: 61.9 MB / 0.5127 GB, free: 37.98 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.Test02RegFun3): time 0.0004884/0.3122, allocations: 222.3 kB / 0.5129 GB, free: 37.84 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.001312/0.3135, allocations: 1.462 MB / 0.5144 GB, free: 36.77 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.175e-05/0.3136, allocations: 0 / 0.5144 GB, free: 36.77 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 1.011e-05/0.3136, allocations: 0 / 0.5144 GB, free: 36.77 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 1.982e-05/0.3136, allocations: 4 kB / 0.5144 GB, free: 36.77 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004623/0.3141, allocations: 149 kB / 0.5145 GB, free: 36.71 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 3.37e-05/0.3141, allocations: 9.969 kB / 0.5145 GB, free: 36.7 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.191e-05/0.3142, allocations: 0 / 0.5145 GB, free: 36.7 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 1.669e-05/0.3142, allocations: 6.219 kB / 0.5145 GB, free: 36.7 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 4.058e-05/0.3142, allocations: 7.875 kB / 0.5145 GB, free: 36.7 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 7.955e-06/0.3143, allocations: 2.969 kB / 0.5145 GB, free: 36.7 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003415/0.3146, allocations: 263.9 kB / 0.5148 GB, free: 36.63 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 1.225e-05/0.3146, allocations: 2.875 kB / 0.5148 GB, free: 36.63 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 2.513e-05/0.3147, allocations: 33.69 kB / 0.5148 GB, free: 36.59 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000182/0.3148, allocations: 145.5 kB / 0.515 GB, free: 36.55 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.539e-06/0.3149, allocations: 0 / 0.515 GB, free: 36.55 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.894e-06/0.3149, allocations: 3.094 kB / 0.515 GB, free: 36.55 MB / 378.7 MB Notification: Performance of Transformations before backend: time 3.877e-06/0.3149, allocations: 0 / 0.515 GB, free: 36.55 MB / 378.7 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.0002363/0.3151, allocations: 323.4 kB / 0.5153 GB, free: 36.2 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.081e-05/0.3151, allocations: 10.19 kB / 0.5153 GB, free: 36.2 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.366e-05/0.3152, allocations: 0.9375 kB / 0.5153 GB, free: 36.2 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 4.263e-05/0.3152, allocations: 160.4 kB / 0.5154 GB, free: 36.01 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.765e-06/0.3152, allocations: 3.438 kB / 0.5155 GB, free: 36.01 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.04e-05/0.3153, allocations: 4.375 kB / 0.5155 GB, free: 36 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.989e-05/0.3153, allocations: 47.12 kB / 0.5155 GB, free: 35.96 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.042e-06/0.3154, allocations: 0 / 0.5155 GB, free: 35.96 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.195e-06/0.3154, allocations: 0 / 0.5155 GB, free: 35.96 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.557e-06/0.3154, allocations: 0 / 0.5155 GB, free: 35.96 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.622e-05/0.3154, allocations: 12.98 kB / 0.5155 GB, free: 35.96 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002407/0.3157, allocations: 238 kB / 0.5157 GB, free: 35.69 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 7.366e-05/0.3157, allocations: 25.45 kB / 0.5158 GB, free: 35.66 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.322e-05/0.3158, allocations: 7.797 kB / 0.5158 GB, free: 35.65 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.817e-06/0.3158, allocations: 0 / 0.5158 GB, free: 35.65 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.045e-05/0.3158, allocations: 34.56 kB / 0.5158 GB, free: 35.61 MB / 378.7 MB Notification: Performance of pre-optimization done (n=1): time 9.72e-07/0.3158, allocations: 0 / 0.5158 GB, free: 35.61 MB / 378.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001129/0.3159, allocations: 35.44 kB / 0.5158 GB, free: 35.57 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.202e-05/0.316, allocations: 51.41 kB / 0.5159 GB, free: 35.51 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.756e-05/0.316, allocations: 96.64 kB / 0.516 GB, free: 35.41 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 8.486e-06/0.316, allocations: 32.7 kB / 0.516 GB, free: 35.38 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.368e-05/0.316, allocations: 90.14 kB / 0.5161 GB, free: 35.29 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.22e-06/0.3161, allocations: 3.906 kB / 0.5161 GB, free: 35.28 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.365e-06/0.3161, allocations: 3.938 kB / 0.5161 GB, free: 35.28 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 4.273e-05/0.3161, allocations: 320.7 kB / 0.5164 GB, free: 34.96 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.829e-06/0.3161, allocations: 0 / 0.5164 GB, free: 34.96 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.155e-05/0.3162, allocations: 27.98 kB / 0.5164 GB, free: 34.93 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.986e-05/0.3162, allocations: 20.45 kB / 0.5165 GB, free: 34.91 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.292e-06/0.3162, allocations: 3.938 kB / 0.5165 GB, free: 34.9 MB / 378.7 MB Notification: Performance of matching and sorting (n=3) (initialization): time 5.566e-05/0.3163, allocations: 48.09 kB / 0.5165 GB, free: 34.86 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.042e-05/0.3163, allocations: 9.125 kB / 0.5165 GB, free: 34.86 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.298e-06/0.3163, allocations: 2.688 kB / 0.5165 GB, free: 34.86 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.163e-05/0.3163, allocations: 7.234 kB / 0.5165 GB, free: 34.86 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.252e-05/0.3164, allocations: 13.56 kB / 0.5165 GB, free: 34.85 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.458e-06/0.3164, allocations: 0 / 0.5165 GB, free: 34.85 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.646e-05/0.3164, allocations: 2.781 kB / 0.5165 GB, free: 34.85 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.182e-06/0.3164, allocations: 3.984 kB / 0.5165 GB, free: 34.84 MB / 378.7 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 4.004e-05/0.3164, allocations: 117 kB / 0.5167 GB, free: 34.72 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.954e-05/0.3165, allocations: 0 / 0.5167 GB, free: 34.72 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.915e-05/0.3166, allocations: 56.06 kB / 0.5167 GB, free: 34.68 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.874e-06/0.3166, allocations: 0 / 0.5167 GB, free: 34.68 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.687e-06/0.3166, allocations: 2.688 kB / 0.5167 GB, free: 34.68 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.355e-06/0.3166, allocations: 0 / 0.5167 GB, free: 34.68 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.991e-05/0.3167, allocations: 151.8 kB / 0.5169 GB, free: 34.48 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.419e-06/0.3167, allocations: 3.219 kB / 0.5169 GB, free: 34.48 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.51e-07/0.3167, allocations: 0 / 0.5169 GB, free: 34.48 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.242e-06/0.3167, allocations: 0 / 0.5169 GB, free: 34.48 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.11e-06/0.3167, allocations: 3.406 kB / 0.5169 GB, free: 34.48 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.21e-07/0.3167, allocations: 4.031 kB / 0.5169 GB, free: 34.48 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.31e-07/0.3167, allocations: 0 / 0.5169 GB, free: 34.48 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 5.426e-05/0.3168, allocations: 133.7 kB / 0.517 GB, free: 34.34 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.412e-05/0.3168, allocations: 77.86 kB / 0.5171 GB, free: 34.25 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.948e-06/0.3168, allocations: 0.6562 kB / 0.5171 GB, free: 34.25 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.584e-05/0.3169, allocations: 3.469 kB / 0.5171 GB, free: 34.25 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.292e-05/0.3169, allocations: 0 / 0.5171 GB, free: 34.25 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.118e-06/0.3169, allocations: 0.5469 kB / 0.5171 GB, free: 34.25 MB / 378.7 MB Notification: Performance of sorting global known variables: time 1.59e-05/0.3169, allocations: 82.7 kB / 0.5172 GB, free: 34.17 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.11e-07/0.3169, allocations: 3.938 kB / 0.5172 GB, free: 34.16 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0002657/0.3172, allocations: 41.94 kB / 0.5172 GB, free: 34.16 MB / 378.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 () * 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.0002199/0.3174, allocations: 140.6 kB / 0.5173 GB, free: 34.07 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 6.193e-05/0.3175, allocations: 9.125 kB / 0.5173 GB, free: 34.07 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.924e-06/0.3175, allocations: 0 / 0.5173 GB, free: 34.07 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 2.13e-05/0.3175, allocations: 32.58 kB / 0.5174 GB, free: 34.03 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00018/0.3177, allocations: 11.12 kB / 0.5174 GB, free: 34.02 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001591/0.3179, allocations: 92.77 kB / 0.5175 GB, free: 33.91 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.609e-05/0.318, allocations: 0.674 MB / 0.5181 GB, free: 33.22 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 2.174e-05/0.318, allocations: 0 / 0.5181 GB, free: 33.22 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.01e-05/0.318, allocations: 10.81 kB / 0.5181 GB, free: 33.21 MB / 378.7 MB Notification: Performance of SimCode: time 2e-07/0.318, allocations: 0 / 0.5181 GB, free: 33.21 MB / 378.7 MB Notification: Performance of Templates: time 0.00274/0.3208, allocations: 1.065 MB / 0.5192 GB, free: 33.11 MB / 378.7 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Fluid/TestUtilities/Test02RegFun3/Test02RegFun3.csv","../files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.Test02RegFun3.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches