Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_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 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.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_3.2.3_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_3.2.3_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.001213/0.001213, allocations: 109.5 kB / 16.41 MB, free: 6.488 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.00119/0.001191, allocations: 185.5 kB / 17.34 MB, free: 5.766 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.455/1.455, allocations: 205.1 MB / 223.2 MB, free: 12.24 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2223/0.2223, allocations: 43.53 MB / 314.1 MB, free: 460 kB / 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.001671/0.001671, allocations: 67.91 kB / 441.8 MB, free: 5.637 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1224/0.124, allocations: 57.78 MB / 499.6 MB, free: 11.78 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.TestRegFunctions): time 0.002039/0.1261, allocations: 0.5726 MB / 0.4885 GB, free: 11.21 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0004247/0.1266, allocations: 124.1 kB / 0.4886 GB, free: 11.09 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.868e-05/0.1266, allocations: 3.938 kB / 0.4886 GB, free: 11.09 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 2.075e-05/0.1267, allocations: 0 / 0.4886 GB, free: 11.09 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003053/0.127, allocations: 35.83 kB / 0.4886 GB, free: 11.05 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 4.268e-06/0.127, allocations: 4 kB / 0.4886 GB, free: 11.05 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 6.222e-05/0.1271, allocations: 23.92 kB / 0.4887 GB, free: 11.03 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.065e-05/0.1272, allocations: 0 / 0.4887 GB, free: 11.03 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.94e-05/0.1272, allocations: 15.92 kB / 0.4887 GB, free: 11.01 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.13e-05/0.1273, allocations: 15.86 kB / 0.4887 GB, free: 11 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 1.137e-05/0.1273, allocations: 0 / 0.4887 GB, free: 11 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001258/0.1274, allocations: 59.94 kB / 0.4887 GB, free: 10.94 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 1.16e-05/0.1274, allocations: 3.938 kB / 0.4887 GB, free: 10.93 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 2.173e-05/0.1275, allocations: 11.92 kB / 0.4888 GB, free: 10.92 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001225/0.1276, allocations: 43.86 kB / 0.4888 GB, free: 10.88 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.879e-06/0.1276, allocations: 0 / 0.4888 GB, free: 10.88 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.184e-06/0.1276, allocations: 4 kB / 0.4888 GB, free: 10.88 MB / 382.1 MB Notification: Performance of Transformations before backend: time 5.951e-06/0.1276, allocations: 0 / 0.4888 GB, 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: 10 * Number of variables: 10 Notification: Performance of Generate backend data structure: time 0.0003602/0.128, allocations: 346.9 kB / 0.4891 GB, free: 10.49 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.703e-05/0.128, allocations: 8.031 kB / 0.4891 GB, free: 10.48 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.223e-05/0.1281, allocations: 4.938 kB / 0.4891 GB, free: 10.48 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001401/0.1282, allocations: 164.3 kB / 0.4893 GB, free: 10.28 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.433e-05/0.1283, allocations: 4.375 kB / 0.4893 GB, free: 10.27 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.203e-05/0.1283, allocations: 4.375 kB / 0.4893 GB, free: 10.27 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001401/0.1284, allocations: 70.16 kB / 0.4894 GB, free: 10.2 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.426e-06/0.1284, allocations: 192 / 0.4894 GB, free: 10.2 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.509e-05/0.1285, allocations: 3.938 kB / 0.4894 GB, free: 10.19 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.575e-06/0.1285, allocations: 7.938 kB / 0.4894 GB, free: 10.18 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001096/0.1286, allocations: 55.89 kB / 0.4894 GB, free: 10.13 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002043/0.1288, allocations: 171.8 kB / 0.4896 GB, free: 9.914 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001588/0.129, allocations: 82.55 kB / 0.4897 GB, free: 9.824 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.319e-05/0.129, allocations: 28.84 kB / 0.4897 GB, free: 9.793 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003513/0.1294, allocations: 259.3 kB / 0.49 GB, free: 9.484 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.963e-05/0.1294, allocations: 38.78 kB / 0.49 GB, free: 9.438 MB / 382.1 MB Notification: Performance of pre-optimization done (n=10): time 1.302e-06/0.1294, allocations: 0 / 0.49 GB, free: 9.438 MB / 382.1 MB Notification: Performance of matching and sorting (n=10): time 0.0002392/0.1297, allocations: 101.6 kB / 0.4901 GB, free: 9.332 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.76e-05/0.1297, allocations: 59.39 kB / 0.4901 GB, free: 9.262 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.146e-05/0.1298, allocations: 89.86 kB / 0.4902 GB, free: 9.164 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.354e-05/0.1298, allocations: 29.83 kB / 0.4903 GB, free: 9.129 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.648e-05/0.1298, allocations: 84.14 kB / 0.4903 GB, free: 9.043 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.409e-05/0.1299, allocations: 35.45 kB / 0.4904 GB, free: 9.008 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.802e-05/0.1299, allocations: 21.72 kB / 0.4904 GB, free: 8.98 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001111/0.1301, allocations: 310.8 kB / 0.4907 GB, free: 8.668 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.907e-05/0.1301, allocations: 23.98 kB / 0.4907 GB, free: 8.645 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.903e-05/0.1301, allocations: 16.36 kB / 0.4907 GB, free: 8.629 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.665e-05/0.1302, allocations: 56.92 kB / 0.4908 GB, free: 8.57 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.814e-06/0.1302, allocations: 4 kB / 0.4908 GB, free: 8.566 MB / 382.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001398/0.1304, allocations: 77.69 kB / 0.4909 GB, free: 8.484 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.575e-05/0.1304, allocations: 4 kB / 0.4909 GB, free: 8.48 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.941e-06/0.1304, allocations: 7.875 kB / 0.4909 GB, free: 8.473 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.58e-05/0.1305, allocations: 4 kB / 0.4909 GB, free: 8.469 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000106/0.1306, allocations: 15.98 kB / 0.4909 GB, free: 8.453 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.765e-06/0.1306, allocations: 4 kB / 0.4909 GB, free: 8.449 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.728e-05/0.1306, allocations: 7.906 kB / 0.4909 GB, free: 8.441 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.251e-06/0.1306, allocations: 4 kB / 0.4909 GB, free: 8.438 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 (10): * Single equations (assignments): 10 * 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 0.0001056/0.1307, allocations: 121.8 kB / 0.491 GB, free: 8.309 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.08e-05/0.1307, allocations: 0 / 0.491 GB, free: 8.309 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001959/0.131, allocations: 105.5 kB / 0.4911 GB, free: 8.191 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.415e-06/0.131, allocations: 0 / 0.4911 GB, free: 8.191 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.118e-06/0.131, allocations: 0 / 0.4911 GB, free: 8.191 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.567e-06/0.131, allocations: 0 / 0.4911 GB, free: 8.191 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001365/0.1311, allocations: 173.6 kB / 0.4913 GB, free: 7.973 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.196e-06/0.1311, allocations: 0 / 0.4913 GB, free: 7.973 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.211e-05/0.1312, allocations: 27.86 kB / 0.4913 GB, free: 7.945 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.415e-06/0.1312, allocations: 0 / 0.4913 GB, free: 7.945 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.157e-06/0.1312, allocations: 11.94 kB / 0.4913 GB, free: 7.934 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.894e-06/0.1312, allocations: 0 / 0.4913 GB, free: 7.934 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.072e-06/0.1313, allocations: 0 / 0.4913 GB, free: 7.934 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000148/0.1314, allocations: 121.1 kB / 0.4914 GB, free: 7.797 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.056e-05/0.1315, allocations: 77.11 kB / 0.4915 GB, free: 7.703 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.529e-05/0.1315, allocations: 3.938 kB / 0.4915 GB, free: 7.699 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.315e-05/0.1315, allocations: 4 kB / 0.4915 GB, free: 7.695 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.829e-05/0.1315, allocations: 3.984 kB / 0.4915 GB, free: 7.691 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.831e-06/0.1315, allocations: 12 kB / 0.4915 GB, free: 7.68 MB / 382.1 MB Notification: Performance of sorting global known variables: time 2.985e-05/0.1316, allocations: 75.28 kB / 0.4916 GB, free: 7.605 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1316, allocations: 0 / 0.4916 GB, free: 7.605 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002019/0.1318, allocations: 12 kB / 0.4916 GB, free: 7.594 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 (10): * Single equations (assignments): 10 * 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 Backend phase and start with SimCode phase: time 0.0001597/0.132, allocations: 107.2 kB / 0.4917 GB, free: 7.48 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0001615/0.1321, allocations: 59.91 kB / 0.4918 GB, free: 7.422 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.983e-06/0.1321, allocations: 0 / 0.4918 GB, free: 7.422 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 4.721e-05/0.1322, allocations: 40.02 kB / 0.4918 GB, free: 7.383 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001488/0.1323, allocations: 0 / 0.4918 GB, free: 7.383 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003514/0.1327, allocations: 144.8 kB / 0.492 GB, free: 7.215 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002563/0.133, allocations: 0.6807 MB / 0.4926 GB, free: 6.508 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 3.906e-05/0.133, allocations: 11.98 kB / 0.4926 GB, free: 6.496 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.573e-05/0.133, allocations: 11.44 kB / 0.4926 GB, free: 6.484 MB / 382.1 MB Notification: Performance of SimCode: time 2.4e-07/0.133, allocations: 4 kB / 0.4926 GB, free: 6.48 MB / 382.1 MB Notification: Performance of Templates: time 0.003107/0.1362, allocations: 0.645 MB / 0.4933 GB, free: 5.836 MB / 382.1 MB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.Fluid.TestUtilities.TestRegFunctions.makefile (rm -f ModelicaTest_3.2.3_ModelicaTest.Fluid.TestUtilities.TestRegFunctions.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Fluid.TestUtilities.TestRegFunctions.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Fluid.TestUtilities.TestRegFunctions.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Fluid.TestUtilities.TestRegFunctions.sim & ./ModelicaTest_3.2.3_ModelicaTest.Fluid.TestUtilities.TestRegFunctions -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.Fluid.TestUtilities.TestRegFunctions.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Fluid.TestUtilities.TestRegFunctions_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Fluid/TestUtilities/TestRegFunctions/TestRegFunctions.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_ModelicaTest.Fluid.TestUtilities.TestRegFunctions.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches