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/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.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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001319/0.001319, allocations: 107.7 kB / 17.21 MB, free: 6.27 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.001448/0.001448, allocations: 194 kB / 18.12 MB, free: 5.363 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.329/1.329, allocations: 222.9 MB / 241.8 MB, free: 15.52 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.2171/0.2171, allocations: 44.18 MB / 336.1 MB, free: 2.988 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001404/0.001404, allocations: 69.3 kB / 407.7 MB, free: 27.7 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1078/0.1093, allocations: 60.82 MB / 468.5 MB, free: 14.84 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.Test01RegFun3): time 0.001827/0.1111, allocations: 0.5487 MB / 469.1 MB, free: 14.29 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001997/0.1132, allocations: 1.415 MB / 470.5 MB, free: 12.85 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.421e-05/0.1132, allocations: 0 / 470.5 MB, free: 12.85 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.379e-05/0.1132, allocations: 0 / 470.5 MB, free: 12.85 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 2.614e-05/0.1133, allocations: 0 / 470.5 MB, free: 12.85 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005768/0.1138, allocations: 150.6 kB / 470.6 MB, free: 12.71 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 3.909e-05/0.1139, allocations: 7.938 kB / 470.6 MB, free: 12.7 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.863e-05/0.1139, allocations: 0 / 470.6 MB, free: 12.7 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2e-05/0.114, allocations: 7.984 kB / 470.6 MB, free: 12.69 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.435e-05/0.114, allocations: 0 / 470.6 MB, free: 12.69 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.308e-05/0.114, allocations: 0 / 470.6 MB, free: 12.69 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000458/0.1145, allocations: 279.6 kB / 470.9 MB, free: 12.42 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.348e-05/0.1145, allocations: 4 kB / 470.9 MB, free: 12.41 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.82e-05/0.1146, allocations: 7.938 kB / 470.9 MB, free: 12.41 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000243/0.1148, allocations: 139.7 kB / 471.1 MB, free: 12.27 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.547e-06/0.1148, allocations: 0 / 471.1 MB, free: 12.27 MB / 350.1 MB Notification: Performance of FrontEnd: time 8.01e-07/0.1148, allocations: 4 kB / 471.1 MB, free: 12.27 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.201e-06/0.1148, allocations: 0 / 471.1 MB, free: 12.27 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: 1 * Number of variables: 1 Notification: Performance of Generate backend data structure: time 0.0003617/0.1152, allocations: 327.6 kB / 471.4 MB, free: 11.9 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.703e-05/0.1153, allocations: 12.03 kB / 471.4 MB, free: 11.89 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.306e-05/0.1153, allocations: 4.938 kB / 471.4 MB, free: 11.88 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001107/0.1154, allocations: 160.4 kB / 471.6 MB, free: 11.69 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.022e-05/0.1154, allocations: 384 / 471.6 MB, free: 11.69 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.006e-05/0.1154, allocations: 4.375 kB / 471.6 MB, free: 11.68 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.213e-05/0.1155, allocations: 38 kB / 471.6 MB, free: 11.64 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.923e-06/0.1156, allocations: 0 / 471.6 MB, free: 11.64 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.869e-06/0.1156, allocations: 0 / 471.6 MB, free: 11.64 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.147e-06/0.1156, allocations: 4 kB / 471.6 MB, free: 11.64 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.511e-05/0.1156, allocations: 3.938 kB / 471.6 MB, free: 11.63 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001429/0.1158, allocations: 161.5 kB / 471.8 MB, free: 11.43 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.033e-05/0.1158, allocations: 18.58 kB / 471.8 MB, free: 11.4 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.996e-05/0.1158, allocations: 8.922 kB / 471.8 MB, free: 11.39 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.015e-06/0.1158, allocations: 0 / 471.8 MB, free: 11.39 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.064e-05/0.1159, allocations: 34.5 kB / 471.8 MB, free: 11.34 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 1.052e-06/0.1159, allocations: 3.938 kB / 471.8 MB, free: 11.34 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001268/0.116, allocations: 41.64 kB / 471.9 MB, free: 11.29 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.868e-05/0.1161, allocations: 51.41 kB / 471.9 MB, free: 11.23 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.877e-05/0.1161, allocations: 101.8 kB / 472 MB, free: 11.12 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.477e-05/0.1162, allocations: 25.7 kB / 472 MB, free: 11.09 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.718e-05/0.1162, allocations: 80.14 kB / 472.1 MB, free: 11.01 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.245e-05/0.1162, allocations: 0 / 472.1 MB, free: 11.01 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.587e-05/0.1163, allocations: 13.72 kB / 472.1 MB, free: 10.99 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001083/0.1164, allocations: 319.1 kB / 472.4 MB, free: 10.67 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.188e-05/0.1164, allocations: 0 / 472.4 MB, free: 10.67 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.135e-06/0.1164, allocations: 0 / 472.4 MB, free: 10.67 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.826e-05/0.1164, allocations: 12.84 kB / 472.5 MB, free: 10.65 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.204e-06/0.1165, allocations: 0 / 472.5 MB, free: 10.65 MB / 350.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 8.867e-05/0.1166, allocations: 37.64 kB / 472.5 MB, free: 10.61 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.9e-05/0.1166, allocations: 7.938 kB / 472.5 MB, free: 10.6 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.61e-06/0.1166, allocations: 0 / 472.5 MB, free: 10.6 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.454e-05/0.1166, allocations: 4 kB / 472.5 MB, free: 10.6 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.99e-05/0.1167, allocations: 8.094 kB / 472.5 MB, free: 10.59 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.31e-06/0.1167, allocations: 0 / 472.5 MB, free: 10.59 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.344e-05/0.1167, allocations: 0 / 472.5 MB, free: 10.59 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.204e-06/0.1167, allocations: 0 / 472.5 MB, free: 10.59 MB / 350.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 (1): * Single equations (assignments): 1 * 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 7.478e-05/0.1168, allocations: 118.1 kB / 472.6 MB, free: 10.46 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.129e-05/0.1168, allocations: 3.938 kB / 472.6 MB, free: 10.46 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001435/0.117, allocations: 52.7 kB / 472.7 MB, free: 10.4 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.325e-06/0.117, allocations: 0 / 472.7 MB, free: 10.4 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.879e-06/0.117, allocations: 0 / 472.7 MB, free: 10.4 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.837e-06/0.117, allocations: 3.984 kB / 472.7 MB, free: 10.4 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.298e-05/0.1171, allocations: 153.6 kB / 472.8 MB, free: 10.2 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.722e-06/0.1171, allocations: 0 / 472.8 MB, free: 10.2 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.62e-07/0.1171, allocations: 0 / 472.8 MB, free: 10.2 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.07e-06/0.1171, allocations: 7.938 kB / 472.9 MB, free: 10.19 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.192e-06/0.1171, allocations: 0 / 472.9 MB, free: 10.19 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.695e-06/0.1171, allocations: 3.984 kB / 472.9 MB, free: 10.19 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.232e-06/0.1172, allocations: 4.031 kB / 472.9 MB, free: 10.18 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.065e-05/0.1172, allocations: 61.05 kB / 472.9 MB, free: 10.11 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.574e-05/0.1173, allocations: 81.05 kB / 473 MB, free: 10.01 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.146e-05/0.1173, allocations: 3.938 kB / 473 MB, free: 10 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.685e-05/0.1174, allocations: 11.92 kB / 473 MB, free: 9.992 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.383e-05/0.1174, allocations: 0 / 473 MB, free: 9.992 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.519e-06/0.1174, allocations: 0 / 473 MB, free: 9.992 MB / 350.1 MB Notification: Performance of sorting global known variables: time 4.835e-05/0.1175, allocations: 87.25 kB / 473.1 MB, free: 9.906 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1175, allocations: 0 / 473.1 MB, free: 9.906 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002581/0.1177, allocations: 32 kB / 473.1 MB, free: 9.875 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.0002788/0.118, allocations: 143.7 kB / 473.3 MB, free: 9.727 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 6.786e-05/0.1181, allocations: 4 kB / 473.3 MB, free: 9.723 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.843e-06/0.1181, allocations: 0 / 473.3 MB, free: 9.723 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 3.623e-05/0.1182, allocations: 29.7 kB / 473.3 MB, free: 9.688 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001584/0.1183, allocations: 4.219 kB / 473.3 MB, free: 9.684 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002133/0.1185, allocations: 90.94 kB / 473.4 MB, free: 9.566 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002251/0.1188, allocations: 0.6692 MB / 474.1 MB, free: 8.871 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 1.838e-05/0.1188, allocations: 4 kB / 474.1 MB, free: 8.867 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.308e-05/0.1188, allocations: 7.438 kB / 474.1 MB, free: 8.859 MB / 350.1 MB Notification: Performance of SimCode: time 2.4e-07/0.1188, allocations: 0 / 474.1 MB, free: 8.859 MB / 350.1 MB Notification: Performance of Templates: time 0.003363/0.1222, allocations: 1.069 MB / 475.1 MB, free: 7.789 MB / 350.1 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.Test01RegFun3.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches