Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegFunctions.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.TestRegFunctions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|x|sqrtx|sqrtx_a|x2|x2_a|x3|x3_a|sqrtxerr|x2err|x3err",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegFunctions") translateModel(ModelicaTest.Fluid.TestUtilities.TestRegFunctions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|x|sqrtx|sqrtx_a|x2|x2_a|x3|x3_a|sqrtxerr|x2err|x3err",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegFunctions") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001051/0.001051, allocations: 94.19 kB / 16.99 MB, free: 5.949 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.001488/0.001488, allocations: 187.5 kB / 17.89 MB, free: 5.566 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.402/1.402, allocations: 223.3 MB / 241.9 MB, free: 312 kB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2067/0.2067, allocations: 44.25 MB / 337.3 MB, free: 2.781 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003062/0.0003062, allocations: 8 kB / 409.7 MB, free: 27.68 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1224/0.1227, allocations: 61.92 MB / 471.6 MB, free: 13.72 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.TestRegFunctions): time 0.0006136/0.1233, allocations: 254.8 kB / 471.8 MB, free: 13.47 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003673/0.1237, allocations: 143.6 kB / 472 MB, free: 13.33 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.527e-05/0.1238, allocations: 0 / 472 MB, free: 13.33 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.614e-05/0.1238, allocations: 0 / 472 MB, free: 13.33 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002196/0.124, allocations: 35.89 kB / 472 MB, free: 13.3 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 3.496e-06/0.124, allocations: 4 kB / 472 MB, free: 13.29 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 5.477e-05/0.1241, allocations: 19.92 kB / 472 MB, free: 13.27 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.608e-05/0.1242, allocations: 0 / 472 MB, free: 13.27 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.271e-05/0.1242, allocations: 11.92 kB / 472 MB, free: 13.26 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.99e-05/0.1243, allocations: 15.92 kB / 472.1 MB, free: 13.25 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.359e-05/0.1243, allocations: 3.984 kB / 472.1 MB, free: 13.24 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001123/0.1244, allocations: 43.95 kB / 472.1 MB, free: 13.2 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 9.488e-06/0.1244, allocations: 7.938 kB / 472.1 MB, free: 13.19 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.042e-05/0.1244, allocations: 29.7 kB / 472.1 MB, free: 13.16 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 8.508e-05/0.1245, allocations: 23.91 kB / 472.2 MB, free: 13.13 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.301e-06/0.1245, allocations: 3.984 kB / 472.2 MB, free: 13.13 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.074e-06/0.1246, allocations: 4 kB / 472.2 MB, free: 13.12 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.276e-06/0.1246, allocations: 4 kB / 472.2 MB, free: 13.12 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: 10 * Number of variables: 10 Notification: Performance of Generate backend data structure: time 0.0003024/0.1249, allocations: 323.7 kB / 472.5 MB, free: 12.76 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.281e-05/0.1249, allocations: 12.03 kB / 472.5 MB, free: 12.75 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.089e-05/0.125, allocations: 3.906 kB / 472.5 MB, free: 12.74 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001313/0.1251, allocations: 174.9 kB / 472.7 MB, free: 12.53 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.645e-05/0.1251, allocations: 4 kB / 472.7 MB, free: 12.53 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.243e-05/0.1251, allocations: 4 kB / 472.7 MB, free: 12.52 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001504/0.1253, allocations: 61.62 kB / 472.7 MB, free: 12.46 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.886e-06/0.1253, allocations: 0 / 472.7 MB, free: 12.46 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.272e-05/0.1253, allocations: 4 kB / 472.8 MB, free: 12.45 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.36e-06/0.1253, allocations: 0 / 472.8 MB, free: 12.45 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001289/0.1255, allocations: 55.89 kB / 472.8 MB, free: 12.4 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000221/0.1257, allocations: 169.7 kB / 473 MB, free: 12.18 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001472/0.1259, allocations: 82.55 kB / 473.1 MB, free: 12.09 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.354e-05/0.1259, allocations: 32.78 kB / 473.1 MB, free: 12.06 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003867/0.1263, allocations: 259.6 kB / 473.3 MB, free: 11.75 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.281e-05/0.1264, allocations: 38.45 kB / 473.4 MB, free: 11.7 MB / 350.1 MB Notification: Performance of pre-optimization done (n=10): time 1.232e-06/0.1264, allocations: 0 / 473.4 MB, free: 11.7 MB / 350.1 MB Notification: Performance of matching and sorting (n=10): time 0.0002473/0.1266, allocations: 105.5 kB / 473.5 MB, free: 11.59 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.612e-05/0.1267, allocations: 51.41 kB / 473.5 MB, free: 11.53 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.378e-05/0.1267, allocations: 101.8 kB / 473.6 MB, free: 11.42 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.446e-05/0.1268, allocations: 29.7 kB / 473.7 MB, free: 11.39 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.815e-05/0.1268, allocations: 80.14 kB / 473.7 MB, free: 11.3 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.643e-05/0.1268, allocations: 27.56 kB / 473.8 MB, free: 11.28 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.298e-06/0.1269, allocations: 0 / 473.8 MB, free: 11.28 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001344/0.127, allocations: 322.8 kB / 474.1 MB, free: 10.95 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.406e-05/0.127, allocations: 12 kB / 474.1 MB, free: 10.94 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.955e-05/0.1271, allocations: 23.92 kB / 474.1 MB, free: 10.92 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.205e-05/0.1271, allocations: 16 kB / 474.1 MB, free: 10.9 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.764e-06/0.1271, allocations: 128 / 474.1 MB, free: 10.9 MB / 350.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001233/0.1273, allocations: 90.19 kB / 474.2 MB, free: 10.81 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.696e-05/0.1273, allocations: 7.953 kB / 474.2 MB, free: 10.8 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.31e-06/0.1273, allocations: 0 / 474.2 MB, free: 10.8 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.221e-05/0.1273, allocations: 0 / 474.2 MB, free: 10.8 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00012/0.1274, allocations: 23.92 kB / 474.2 MB, free: 10.78 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.552e-06/0.1274, allocations: 0 / 474.2 MB, free: 10.78 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.697e-05/0.1275, allocations: 11.94 kB / 474.3 MB, free: 10.77 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.456e-06/0.1275, allocations: 7.938 kB / 474.3 MB, free: 10.76 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 (10): * Single equations (assignments): 10 * 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 8.705e-05/0.1276, allocations: 110.4 kB / 474.4 MB, free: 10.64 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.116e-05/0.1276, allocations: 8 kB / 474.4 MB, free: 10.63 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000221/0.1278, allocations: 105.5 kB / 474.5 MB, free: 10.52 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.993e-06/0.1278, allocations: 0 / 474.5 MB, free: 10.52 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.35e-06/0.1278, allocations: 0 / 474.5 MB, free: 10.52 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.397e-06/0.1279, allocations: 4 kB / 474.5 MB, free: 10.52 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001419/0.128, allocations: 169.6 kB / 474.7 MB, free: 10.3 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.032e-06/0.128, allocations: 0 / 474.7 MB, free: 10.3 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.31e-05/0.1281, allocations: 23.98 kB / 474.7 MB, free: 10.28 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.944e-06/0.1281, allocations: 0 / 474.7 MB, free: 10.28 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.254e-06/0.1281, allocations: 4 kB / 474.7 MB, free: 10.28 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.376e-06/0.1281, allocations: 3.953 kB / 474.7 MB, free: 10.27 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.82e-07/0.1281, allocations: 0 / 474.7 MB, free: 10.27 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001426/0.1283, allocations: 109 kB / 474.8 MB, free: 10.15 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.123e-05/0.1283, allocations: 85.02 kB / 474.9 MB, free: 10.05 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.328e-05/0.1284, allocations: 4 kB / 474.9 MB, free: 10.04 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.259e-05/0.1284, allocations: 0 / 474.9 MB, free: 10.04 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.621e-05/0.1284, allocations: 11.94 kB / 474.9 MB, free: 10.03 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.893e-06/0.1284, allocations: 11.94 kB / 474.9 MB, free: 10.02 MB / 350.1 MB Notification: Performance of sorting global known variables: time 3.783e-05/0.1285, allocations: 79.28 kB / 475 MB, free: 9.941 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1285, allocations: 0 / 475 MB, free: 9.941 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000204/0.1287, allocations: 8 kB / 475 MB, free: 9.934 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 (10): * Single equations (assignments): 10 * 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 Backend phase and start with SimCode phase: time 0.0001606/0.1289, allocations: 115.1 kB / 475.1 MB, free: 9.809 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0001401/0.129, allocations: 60.05 kB / 475.2 MB, free: 9.75 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.234e-06/0.129, allocations: 0 / 475.2 MB, free: 9.75 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 4.413e-05/0.1291, allocations: 28.08 kB / 475.2 MB, free: 9.723 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001526/0.1292, allocations: 14.28 kB / 475.2 MB, free: 9.711 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003446/0.1296, allocations: 142.7 kB / 475.3 MB, free: 9.543 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002515/0.1298, allocations: 0.6809 MB / 476 MB, free: 8.836 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 3.656e-05/0.1299, allocations: 4 kB / 476 MB, free: 8.832 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.25e-05/0.1299, allocations: 15.44 kB / 476 MB, free: 8.816 MB / 350.1 MB Notification: Performance of SimCode: time 2.4e-07/0.1299, allocations: 0 / 476 MB, free: 8.816 MB / 350.1 MB Notification: Performance of Templates: time 0.002708/0.1326, allocations: 0.6149 MB / 476.7 MB, free: 8.203 MB / 350.1 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegFunctions.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegFunctions.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegFunctions.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegFunctions.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegFunctions.sim & ./ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegFunctions -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegFunctions.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegFunctions_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Fluid/TestUtilities/TestRegFunctions/TestRegFunctions.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegFunctions.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches