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.001079/0.001079, allocations: 109.7 kB / 17.21 MB, free: 6.285 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.001093/0.001094, allocations: 190 kB / 18.12 MB, free: 5.379 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.33/1.33, allocations: 222.9 MB / 241.8 MB, free: 15.48 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.2094/0.2094, allocations: 44.18 MB / 336.1 MB, free: 3.027 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001277/0.001277, allocations: 64.03 kB / 407.7 MB, free: 27.73 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1101/0.1114, allocations: 60.83 MB / 468.5 MB, free: 14.87 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.Test02RegFun3): time 0.001793/0.1132, allocations: 0.5595 MB / 469.1 MB, free: 14.31 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002376/0.1156, allocations: 1.403 MB / 470.5 MB, free: 12.89 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.598e-05/0.1156, allocations: 0 / 470.5 MB, free: 12.89 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 2.172e-05/0.1157, allocations: 0 / 470.5 MB, free: 12.89 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 2.949e-05/0.1157, allocations: 0 / 470.5 MB, free: 12.89 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000681/0.1164, allocations: 154.7 kB / 470.6 MB, free: 12.74 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 4.621e-05/0.1165, allocations: 8 kB / 470.6 MB, free: 12.73 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.781e-05/0.1165, allocations: 3.984 kB / 470.6 MB, free: 12.73 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.52e-05/0.1165, allocations: 7.938 kB / 470.6 MB, free: 12.72 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.7e-05/0.1166, allocations: 0 / 470.6 MB, free: 12.72 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.858e-05/0.1166, allocations: 3.984 kB / 470.6 MB, free: 12.71 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005394/0.1172, allocations: 271.6 kB / 470.9 MB, free: 12.45 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.804e-05/0.1172, allocations: 3.984 kB / 470.9 MB, free: 12.45 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.254e-05/0.1172, allocations: 4 kB / 470.9 MB, free: 12.44 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002731/0.1175, allocations: 147.6 kB / 471.1 MB, free: 12.3 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.779e-06/0.1175, allocations: 0 / 471.1 MB, free: 12.3 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.272e-06/0.1175, allocations: 4 kB / 471.1 MB, free: 12.29 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.558e-06/0.1175, allocations: 0 / 471.1 MB, free: 12.29 MB / 350.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.0004558/0.118, allocations: 331.6 kB / 471.4 MB, free: 11.92 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.938e-05/0.1181, allocations: 12.03 kB / 471.4 MB, free: 11.91 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.925e-05/0.1181, allocations: 0.9375 kB / 471.4 MB, free: 11.91 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001048/0.1182, allocations: 168.4 kB / 471.6 MB, free: 11.71 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.079e-05/0.1182, allocations: 384 / 471.6 MB, free: 11.71 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.097e-05/0.1183, allocations: 384 / 471.6 MB, free: 11.71 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001303/0.1184, allocations: 41.95 kB / 471.6 MB, free: 11.66 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.886e-06/0.1184, allocations: 4 kB / 471.6 MB, free: 11.66 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.208e-05/0.1184, allocations: 4 kB / 471.6 MB, free: 11.65 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.821e-06/0.1185, allocations: 3.938 kB / 471.6 MB, free: 11.65 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.94e-05/0.1185, allocations: 7.984 kB / 471.6 MB, free: 11.64 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004144/0.1189, allocations: 236.9 kB / 471.9 MB, free: 11.36 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 8.666e-05/0.119, allocations: 30.55 kB / 471.9 MB, free: 11.32 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.192e-05/0.119, allocations: 8.859 kB / 471.9 MB, free: 11.31 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.709e-06/0.1191, allocations: 0 / 471.9 MB, free: 11.31 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.885e-05/0.1191, allocations: 30.56 kB / 471.9 MB, free: 11.27 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 1.212e-06/0.1191, allocations: 0 / 471.9 MB, free: 11.27 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001534/0.1193, allocations: 33.77 kB / 472 MB, free: 11.23 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.003e-05/0.1193, allocations: 51.41 kB / 472 MB, free: 11.17 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001034/0.1194, allocations: 105.8 kB / 472.1 MB, free: 11.05 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.562e-05/0.1195, allocations: 25.95 kB / 472.1 MB, free: 11.02 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.525e-05/0.1195, allocations: 88.36 kB / 472.2 MB, free: 10.93 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.758e-06/0.1195, allocations: 3.906 kB / 472.2 MB, free: 10.93 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.115e-05/0.1196, allocations: 17.72 kB / 472.3 MB, free: 10.91 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002409/0.1198, allocations: 322.7 kB / 472.6 MB, free: 10.58 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.076e-05/0.1199, allocations: 3.984 kB / 472.6 MB, free: 10.58 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.05e-05/0.1199, allocations: 22.52 kB / 472.6 MB, free: 10.55 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.158e-05/0.12, allocations: 26.58 kB / 472.6 MB, free: 10.51 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.893e-06/0.12, allocations: 0 / 472.6 MB, free: 10.51 MB / 350.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 9.266e-05/0.1201, allocations: 57.62 kB / 472.7 MB, free: 10.45 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.873e-05/0.1201, allocations: 4 kB / 472.7 MB, free: 10.45 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.849e-06/0.1201, allocations: 3.938 kB / 472.7 MB, free: 10.44 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.261e-05/0.1201, allocations: 0 / 472.7 MB, free: 10.44 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.885e-05/0.1202, allocations: 12.09 kB / 472.7 MB, free: 10.43 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.711e-06/0.1202, allocations: 0 / 472.7 MB, free: 10.43 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.032e-05/0.1202, allocations: 0 / 472.7 MB, free: 10.43 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.867e-06/0.1203, allocations: 4 kB / 472.7 MB, free: 10.43 MB / 350.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 9.186e-05/0.1204, allocations: 117.8 kB / 472.8 MB, free: 10.3 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.93e-05/0.1204, allocations: 0 / 472.8 MB, free: 10.3 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001333/0.1205, allocations: 56.8 kB / 472.9 MB, free: 10.24 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.478e-06/0.1206, allocations: 4 kB / 472.9 MB, free: 10.23 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.488e-06/0.1206, allocations: 0 / 472.9 MB, free: 10.23 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.356e-06/0.1206, allocations: 0 / 472.9 MB, free: 10.23 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000205/0.1208, allocations: 149.6 kB / 473 MB, free: 10.04 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.099e-05/0.1208, allocations: 4 kB / 473 MB, free: 10.04 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.11e-07/0.1208, allocations: 0 / 473 MB, free: 10.04 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.553e-06/0.1208, allocations: 0 / 473 MB, free: 10.04 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.051e-06/0.1209, allocations: 0 / 473 MB, free: 10.04 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.213e-06/0.1209, allocations: 0 / 473 MB, free: 10.04 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.22e-07/0.1209, allocations: 0 / 473 MB, free: 10.04 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001362/0.121, allocations: 143.4 kB / 473.2 MB, free: 9.879 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.05e-05/0.1211, allocations: 81.05 kB / 473.2 MB, free: 9.781 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.547e-05/0.1211, allocations: 4 kB / 473.2 MB, free: 9.777 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.3e-05/0.1212, allocations: 0 / 473.2 MB, free: 9.777 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.474e-05/0.1212, allocations: 0 / 473.2 MB, free: 9.777 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.565e-06/0.1212, allocations: 3.984 kB / 473.2 MB, free: 9.773 MB / 350.1 MB Notification: Performance of sorting global known variables: time 4.31e-05/0.1213, allocations: 87.31 kB / 473.3 MB, free: 9.688 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.966e-06/0.1213, allocations: 0 / 473.3 MB, free: 9.688 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003975/0.1217, allocations: 35.94 kB / 473.4 MB, free: 9.652 MB / 350.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.0003148/0.122, allocations: 135.8 kB / 473.5 MB, free: 9.512 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 8.446e-05/0.1221, allocations: 12 kB / 473.5 MB, free: 9.5 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.294e-06/0.1221, allocations: 3.938 kB / 473.5 MB, free: 9.496 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 3.861e-05/0.1222, allocations: 29.7 kB / 473.5 MB, free: 9.461 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002965/0.1225, allocations: 4.281 kB / 473.6 MB, free: 9.457 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002519/0.1227, allocations: 98.69 kB / 473.6 MB, free: 9.332 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002741/0.123, allocations: 0.6692 MB / 474.3 MB, free: 8.637 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 3.047e-05/0.123, allocations: 4 kB / 474.3 MB, free: 8.633 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.348e-05/0.1231, allocations: 7.438 kB / 474.3 MB, free: 8.625 MB / 350.1 MB Notification: Performance of SimCode: time 2.71e-07/0.1231, allocations: 0 / 474.3 MB, free: 8.625 MB / 350.1 MB Notification: Performance of Templates: time 0.004174/0.1273, allocations: 1.056 MB / 475.4 MB, free: 7.57 MB / 350.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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Fluid/TestUtilities/Test02RegFun3/Test02RegFun3.csv","/var/lib/jenkins/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