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.001403/0.001404, allocations: 96.14 kB / 15.87 MB, free: 16 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.001588/0.001588, allocations: 206.3 kB / 16.79 MB, free: 6.84 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.341/1.341, allocations: 205.1 MB / 222.6 MB, free: 5.004 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.3204/0.3204, allocations: 43.49 MB / 313.5 MB, free: 8.355 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.001419/0.001419, allocations: 67.89 kB / 382 MB, free: 8.82 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1075/0.109, allocations: 57.78 MB / 439.8 MB, free: 14.93 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.TestRegFunctions): time 0.001808/0.1108, allocations: 0.6282 MB / 440.4 MB, free: 14.3 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003829/0.1112, allocations: 133.1 kB / 440.6 MB, free: 14.17 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.571e-05/0.1113, allocations: 0 / 440.6 MB, free: 14.17 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 1.587e-05/0.1113, allocations: 4 kB / 440.6 MB, free: 14.17 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000221/0.1115, allocations: 35.89 kB / 440.6 MB, free: 14.13 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 2.856e-06/0.1115, allocations: 0 / 440.6 MB, free: 14.13 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 4.42e-05/0.1116, allocations: 19.92 kB / 440.6 MB, free: 14.11 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.237e-05/0.1116, allocations: 4 kB / 440.6 MB, free: 14.11 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.042e-05/0.1117, allocations: 7.938 kB / 440.6 MB, free: 14.1 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.25e-05/0.1117, allocations: 19.86 kB / 440.7 MB, free: 14.08 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 1.045e-05/0.1117, allocations: 0 / 440.7 MB, free: 14.08 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001048/0.1118, allocations: 51.94 kB / 440.7 MB, free: 14.03 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 1.125e-05/0.1119, allocations: 7.922 kB / 440.7 MB, free: 14.02 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 1.791e-05/0.1119, allocations: 11.94 kB / 440.7 MB, free: 14.01 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 9.717e-05/0.112, allocations: 43.88 kB / 440.8 MB, free: 13.97 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.521e-06/0.112, allocations: 0 / 440.8 MB, free: 13.97 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.242e-06/0.112, allocations: 0 / 440.8 MB, free: 13.97 MB / 382.1 MB Notification: Performance of Transformations before backend: time 4.088e-06/0.112, allocations: 0 / 440.8 MB, free: 13.97 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.0003423/0.1124, allocations: 339.7 kB / 441.1 MB, free: 13.59 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.221e-05/0.1124, allocations: 16.02 kB / 441.1 MB, free: 13.57 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.008e-05/0.1124, allocations: 0.9375 kB / 441.1 MB, free: 13.57 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001161/0.1126, allocations: 164.3 kB / 441.3 MB, free: 13.37 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.656e-05/0.1126, allocations: 12.38 kB / 441.3 MB, free: 13.36 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.692e-05/0.1126, allocations: 4.375 kB / 441.3 MB, free: 13.36 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001304/0.1127, allocations: 58.17 kB / 441.4 MB, free: 13.29 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.245e-06/0.1128, allocations: 192 / 441.4 MB, free: 13.29 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.374e-05/0.1128, allocations: 11.92 kB / 441.4 MB, free: 13.28 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.118e-06/0.1128, allocations: 4 kB / 441.4 MB, free: 13.28 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.948e-05/0.1129, allocations: 51.89 kB / 441.4 MB, free: 13.23 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001853/0.1131, allocations: 173.6 kB / 441.6 MB, free: 13.01 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001404/0.1132, allocations: 78.55 kB / 441.7 MB, free: 12.92 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.402e-05/0.1133, allocations: 36.84 kB / 441.7 MB, free: 12.88 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003356/0.1136, allocations: 247.3 kB / 441.9 MB, free: 12.59 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.416e-05/0.1137, allocations: 38.72 kB / 442 MB, free: 12.54 MB / 382.1 MB Notification: Performance of pre-optimization done (n=10): time 1.132e-06/0.1137, allocations: 0 / 442 MB, free: 12.54 MB / 382.1 MB Notification: Performance of matching and sorting (n=10): time 0.0002281/0.1139, allocations: 105.5 kB / 442.1 MB, free: 12.43 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.418e-05/0.114, allocations: 59.41 kB / 442.1 MB, free: 12.36 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.469e-05/0.114, allocations: 93.86 kB / 442.2 MB, free: 12.26 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.264e-05/0.1141, allocations: 25.7 kB / 442.3 MB, free: 12.23 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.348e-05/0.1141, allocations: 80.14 kB / 442.3 MB, free: 12.14 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.546e-05/0.1141, allocations: 35.45 kB / 442.4 MB, free: 12.11 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.758e-05/0.1142, allocations: 25.7 kB / 442.4 MB, free: 12.08 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001153/0.1143, allocations: 318.8 kB / 442.7 MB, free: 11.76 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.26e-05/0.1143, allocations: 19.98 kB / 442.7 MB, free: 11.74 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.962e-05/0.1144, allocations: 20.12 kB / 442.8 MB, free: 11.72 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.54e-05/0.1145, allocations: 65.28 kB / 442.8 MB, free: 11.65 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.733e-06/0.1145, allocations: 0 / 442.8 MB, free: 11.65 MB / 382.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001158/0.1146, allocations: 77.69 kB / 442.9 MB, free: 11.57 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.421e-05/0.1146, allocations: 8 kB / 442.9 MB, free: 11.56 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.64e-06/0.1146, allocations: 3.938 kB / 442.9 MB, free: 11.56 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.272e-05/0.1146, allocations: 0 / 442.9 MB, free: 11.56 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001115/0.1148, allocations: 19.92 kB / 442.9 MB, free: 11.54 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.29e-06/0.1148, allocations: 0 / 442.9 MB, free: 11.54 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.792e-05/0.1148, allocations: 7.938 kB / 442.9 MB, free: 11.53 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.67e-06/0.1148, allocations: 4 kB / 442.9 MB, free: 11.53 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 8.277e-05/0.1149, allocations: 117.8 kB / 443 MB, free: 11.4 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.179e-05/0.1149, allocations: 3.906 kB / 443.1 MB, free: 11.4 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001732/0.1151, allocations: 105.5 kB / 443.2 MB, free: 11.29 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.004e-06/0.1151, allocations: 0 / 443.2 MB, free: 11.29 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.606e-06/0.1151, allocations: 0 / 443.2 MB, free: 11.29 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.148e-06/0.1151, allocations: 3.984 kB / 443.2 MB, free: 11.29 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001179/0.1153, allocations: 169.7 kB / 443.3 MB, free: 11.07 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.52e-07/0.1153, allocations: 4 kB / 443.3 MB, free: 11.07 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.63e-05/0.1153, allocations: 19.92 kB / 443.3 MB, free: 11.05 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.593e-06/0.1153, allocations: 4 kB / 443.4 MB, free: 11.05 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.446e-06/0.1154, allocations: 3.938 kB / 443.4 MB, free: 11.04 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.128e-05/0.1154, allocations: 3.984 kB / 443.4 MB, free: 11.04 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.82e-07/0.1154, allocations: 0 / 443.4 MB, free: 11.04 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000138/0.1155, allocations: 118.8 kB / 443.5 MB, free: 10.91 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.874e-05/0.1156, allocations: 88.97 kB / 443.6 MB, free: 10.8 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.661e-05/0.1156, allocations: 11.94 kB / 443.6 MB, free: 10.79 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.521e-05/0.1156, allocations: 4 kB / 443.6 MB, free: 10.79 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.613e-05/0.1156, allocations: 4 kB / 443.6 MB, free: 10.78 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.731e-06/0.1157, allocations: 4 kB / 443.6 MB, free: 10.78 MB / 382.1 MB Notification: Performance of sorting global known variables: time 2.718e-05/0.1157, allocations: 79.27 kB / 443.7 MB, free: 10.7 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.1157, allocations: 4 kB / 443.7 MB, free: 10.7 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0001931/0.1159, allocations: 16 kB / 443.7 MB, free: 10.68 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.0001357/0.116, allocations: 107.3 kB / 443.8 MB, free: 10.57 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0001321/0.1162, allocations: 59.91 kB / 443.8 MB, free: 10.51 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.683e-06/0.1162, allocations: 0 / 443.8 MB, free: 10.51 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 4.201e-05/0.1162, allocations: 31.94 kB / 443.9 MB, free: 10.48 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001323/0.1164, allocations: 4 kB / 443.9 MB, free: 10.47 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003034/0.1167, allocations: 150.6 kB / 444 MB, free: 10.3 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002051/0.1169, allocations: 0.6888 MB / 444.7 MB, free: 9.582 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 3.557e-05/0.1169, allocations: 7.984 kB / 444.7 MB, free: 9.574 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.077e-05/0.117, allocations: 11.44 kB / 444.7 MB, free: 9.562 MB / 382.1 MB Notification: Performance of SimCode: time 1.753e-06/0.117, allocations: 0 / 444.7 MB, free: 9.562 MB / 382.1 MB Notification: Performance of Templates: time 0.002421/0.1194, allocations: 0.6216 MB / 445.4 MB, free: 8.941 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","../files/ModelicaTest_3.2.3_ModelicaTest.Fluid.TestUtilities.TestRegFunctions.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches