Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3.2.3_ModelicaTest.Fluid.TestUtilities.Test01RegFun3") translateModel(ModelicaTest.Fluid.TestUtilities.Test01RegFun3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|x",fileNamePrefix="ModelicaTest_3.2.3_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.0008227/0.0008223, allocations: 96.7 kB / 15.7 MB, free: 468 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.000827/0.000827, allocations: 175.7 kB / 16.58 MB, free: 6.062 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.418/1.418, allocations: 205.4 MB / 222.7 MB, free: 5.645 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.3596/0.3596, allocations: 43.58 MB / 314.6 MB, free: 8.691 MB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0005133/0.0005133, allocations: 14.97 kB / 384 MB, free: 7.988 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1214/0.1219, allocations: 58.86 MB / 442.8 MB, free: 13.02 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.Test01RegFun3): time 0.0006315/0.1225, allocations: 224.4 kB / 443 MB, free: 12.8 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001679/0.1242, allocations: 1.351 MB / 444.4 MB, free: 11.43 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.085e-05/0.1243, allocations: 0 / 444.4 MB, free: 11.43 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 1.204e-05/0.1243, allocations: 0 / 444.4 MB, free: 11.43 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 2.524e-05/0.1243, allocations: 0 / 444.4 MB, free: 11.43 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005836/0.1249, allocations: 155.7 kB / 444.5 MB, free: 11.28 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 4.525e-05/0.125, allocations: 3.938 kB / 444.5 MB, free: 11.27 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.583e-05/0.1251, allocations: 4 kB / 444.5 MB, free: 11.27 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.957e-05/0.1251, allocations: 4 kB / 444.5 MB, free: 11.27 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.017e-05/0.1251, allocations: 11.92 kB / 444.6 MB, free: 11.25 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 1.29e-05/0.1252, allocations: 0 / 444.6 MB, free: 11.25 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004494/0.1256, allocations: 259.7 kB / 444.8 MB, free: 11 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 1.177e-05/0.1256, allocations: 3.984 kB / 444.8 MB, free: 11 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 2.825e-05/0.1257, allocations: 25.7 kB / 444.8 MB, free: 10.96 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001578/0.1258, allocations: 87.77 kB / 444.9 MB, free: 10.88 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.841e-06/0.1259, allocations: 0 / 444.9 MB, free: 10.88 MB / 382.1 MB Notification: Performance of FrontEnd: time 4.589e-06/0.1259, allocations: 0 / 444.9 MB, free: 10.88 MB / 382.1 MB Notification: Performance of Transformations before backend: time 4.739e-06/0.1259, allocations: 3.938 kB / 444.9 MB, free: 10.88 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: 1 * Number of variables: 1 Notification: Performance of Generate backend data structure: time 0.0003706/0.1263, allocations: 335.3 kB / 445.3 MB, free: 10.5 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.333e-05/0.1263, allocations: 12.03 kB / 445.3 MB, free: 10.49 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.992e-05/0.1264, allocations: 3.953 kB / 445.3 MB, free: 10.48 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001129/0.1265, allocations: 163.3 kB / 445.4 MB, free: 10.29 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.226e-05/0.1265, allocations: 0 / 445.4 MB, free: 10.29 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.051e-05/0.1265, allocations: 0 / 445.4 MB, free: 10.29 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.83e-05/0.1266, allocations: 29.7 kB / 445.5 MB, free: 10.25 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.542e-06/0.1266, allocations: 0 / 445.5 MB, free: 10.25 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.748e-06/0.1266, allocations: 4 kB / 445.5 MB, free: 10.25 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.89e-06/0.1267, allocations: 4 kB / 445.5 MB, free: 10.24 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.408e-05/0.1267, allocations: 3.953 kB / 445.5 MB, free: 10.24 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000163/0.1268, allocations: 157.6 kB / 445.6 MB, free: 10.04 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.695e-05/0.1269, allocations: 14.58 kB / 445.6 MB, free: 10.01 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.24e-05/0.1269, allocations: 12.92 kB / 445.7 MB, free: 9.996 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.113e-05/0.1269, allocations: 0 / 445.7 MB, free: 9.996 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.066e-05/0.127, allocations: 38.56 kB / 445.7 MB, free: 9.949 MB / 382.1 MB Notification: Performance of pre-optimization done (n=1): time 9.01e-07/0.127, allocations: 0 / 445.7 MB, free: 9.949 MB / 382.1 MB Notification: Performance of matching and sorting (n=1): time 0.000145/0.1271, allocations: 41.62 kB / 445.7 MB, free: 9.902 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.12e-05/0.1272, allocations: 51.41 kB / 445.8 MB, free: 9.84 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.628e-05/0.1272, allocations: 93.81 kB / 445.9 MB, free: 9.738 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.716e-05/0.1273, allocations: 29.7 kB / 445.9 MB, free: 9.703 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.414e-05/0.1273, allocations: 84.14 kB / 446 MB, free: 9.617 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.514e-05/0.1273, allocations: 4.188 kB / 446 MB, free: 9.613 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.455e-06/0.1273, allocations: 4 kB / 446 MB, free: 9.609 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001133/0.1275, allocations: 314.8 kB / 446.3 MB, free: 9.293 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.758e-06/0.1275, allocations: 0 / 446.3 MB, free: 9.293 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.711e-06/0.1275, allocations: 4 kB / 446.3 MB, free: 9.289 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 1.512e-05/0.1275, allocations: 0 / 446.3 MB, free: 9.289 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.202e-06/0.1275, allocations: 0 / 446.3 MB, free: 9.289 MB / 382.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 5.637e-05/0.1276, allocations: 37.61 kB / 446.3 MB, free: 9.246 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.632e-05/0.1276, allocations: 7.938 kB / 446.3 MB, free: 9.238 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.004e-06/0.1276, allocations: 12.02 kB / 446.4 MB, free: 9.227 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.385e-05/0.1276, allocations: 4 kB / 446.4 MB, free: 9.223 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.256e-05/0.1277, allocations: 3.984 kB / 446.4 MB, free: 9.219 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.581e-06/0.1277, allocations: 3.938 kB / 446.4 MB, free: 9.215 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.333e-05/0.1277, allocations: 0 / 446.4 MB, free: 9.215 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.109e-05/0.1278, allocations: 3.953 kB / 446.4 MB, free: 9.211 MB / 382.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 7.361e-05/0.1278, allocations: 117.8 kB / 446.5 MB, free: 9.086 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.264e-06/0.1279, allocations: 0 / 446.5 MB, free: 9.086 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001185/0.128, allocations: 48.81 kB / 446.5 MB, free: 9.031 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.444e-06/0.128, allocations: 0 / 446.5 MB, free: 9.031 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.727e-06/0.128, allocations: 0 / 446.5 MB, free: 9.031 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.234e-06/0.128, allocations: 0 / 446.5 MB, free: 9.031 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001029/0.1281, allocations: 157.6 kB / 446.7 MB, free: 8.828 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.074e-06/0.1281, allocations: 0 / 446.7 MB, free: 8.828 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.487e-06/0.1281, allocations: 3.984 kB / 446.7 MB, free: 8.824 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.296e-06/0.1281, allocations: 4 kB / 446.7 MB, free: 8.82 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.167e-06/0.1282, allocations: 4.031 kB / 446.7 MB, free: 8.816 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.232e-06/0.1282, allocations: 3.938 kB / 446.7 MB, free: 8.812 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.11e-07/0.1282, allocations: 0 / 446.7 MB, free: 8.812 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.095e-05/0.1283, allocations: 61.09 kB / 446.8 MB, free: 8.734 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.761e-05/0.1283, allocations: 81.09 kB / 446.8 MB, free: 8.637 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.135e-05/0.1283, allocations: 0 / 446.8 MB, free: 8.637 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.1e-05/0.1284, allocations: 4 kB / 446.9 MB, free: 8.633 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.6e-05/0.1284, allocations: 4.031 kB / 446.9 MB, free: 8.629 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.536e-06/0.1284, allocations: 0 / 446.9 MB, free: 8.629 MB / 382.1 MB Notification: Performance of sorting global known variables: time 3.356e-05/0.1285, allocations: 79.28 kB / 446.9 MB, free: 8.551 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1285, allocations: 0 / 446.9 MB, free: 8.551 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002578/0.1287, allocations: 39.98 kB / 447 MB, free: 8.512 MB / 382.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 (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.0002443/0.129, allocations: 139.2 kB / 447.1 MB, free: 8.367 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 7.503e-05/0.1291, allocations: 7.938 kB / 447.1 MB, free: 8.359 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.843e-06/0.1291, allocations: 160 / 447.1 MB, free: 8.359 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 3.695e-05/0.1291, allocations: 37.69 kB / 447.2 MB, free: 8.316 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001509/0.1293, allocations: 3.953 kB / 447.2 MB, free: 8.312 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002363/0.1295, allocations: 90.7 kB / 447.2 MB, free: 8.199 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000226/0.1298, allocations: 0.6731 MB / 447.9 MB, free: 7.5 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 1.642e-05/0.1298, allocations: 0 / 447.9 MB, free: 7.5 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.488e-05/0.1298, allocations: 11.44 kB / 447.9 MB, free: 7.492 MB / 382.1 MB Notification: Performance of SimCode: time 2.4e-07/0.1298, allocations: 64 / 447.9 MB, free: 7.492 MB / 382.1 MB Notification: Performance of Templates: time 0.003241/0.1331, allocations: 1.041 MB / 449 MB, free: 6.449 MB / 382.1 MB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.Fluid.TestUtilities.Test01RegFun3.makefile (rm -f ModelicaTest_3.2.3_ModelicaTest.Fluid.TestUtilities.Test01RegFun3.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Fluid.TestUtilities.Test01RegFun3.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Fluid.TestUtilities.Test01RegFun3.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Fluid.TestUtilities.Test01RegFun3.sim & ./ModelicaTest_3.2.3_ModelicaTest.Fluid.TestUtilities.Test01RegFun3 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.Fluid.TestUtilities.Test01RegFun3.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Fluid.TestUtilities.Test01RegFun3_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Fluid/TestUtilities/Test01RegFun3/Test01RegFun3.csv","../files/ModelicaTest_3.2.3_ModelicaTest.Fluid.TestUtilities.Test01RegFun3.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches