Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Fluid.TestUtilities.Test02RegFun3.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.Test02RegFun3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|x|a|b",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Fluid.TestUtilities.Test02RegFun3") translateModel(ModelicaTest.Fluid.TestUtilities.Test02RegFun3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|x|a|b",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Fluid.TestUtilities.Test02RegFun3") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001466/0.001466, allocations: 109.2 kB / 17.04 MB, free: 5.809 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.001673/0.001673, allocations: 195 kB / 17.98 MB, free: 5.027 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.297/1.297, allocations: 205.1 MB / 223.8 MB, free: 12.26 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.2002/0.2002, allocations: 43.51 MB / 314.7 MB, free: 492 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.001467/0.001467, allocations: 63.44 kB / 384.2 MB, free: 56.38 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1097/0.1112, allocations: 57.79 MB / 442 MB, free: 6.164 MB / 318.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.Test02RegFun3): time 0.001499/0.1127, allocations: 0.4888 MB / 442.5 MB, free: 5.676 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001773/0.1145, allocations: 1.383 MB / 443.8 MB, free: 4.273 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.92e-05/0.1145, allocations: 0 / 443.8 MB, free: 4.273 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 1.353e-05/0.1146, allocations: 0 / 443.8 MB, free: 4.273 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 3.434e-05/0.1146, allocations: 0 / 443.8 MB, free: 4.273 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000854/0.1155, allocations: 223.1 kB / 444.1 MB, free: 4.059 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 5.371e-05/0.1155, allocations: 11.98 kB / 444.1 MB, free: 4.047 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.801e-05/0.1156, allocations: 4 kB / 444.1 MB, free: 4.043 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.029e-05/0.1156, allocations: 4 kB / 444.1 MB, free: 4.039 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.12e-05/0.1157, allocations: 11.91 kB / 444.1 MB, free: 4.027 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 1.24e-05/0.1157, allocations: 4 kB / 444.1 MB, free: 4.023 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004707/0.1162, allocations: 271.6 kB / 444.4 MB, free: 3.758 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 1.292e-05/0.1162, allocations: 0 / 444.4 MB, free: 3.758 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 2.033e-05/0.1162, allocations: 3.984 kB / 444.4 MB, free: 3.754 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002279/0.1165, allocations: 139.7 kB / 444.5 MB, free: 3.617 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.547e-06/0.1165, allocations: 7.938 kB / 444.5 MB, free: 3.609 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.362e-06/0.1165, allocations: 0 / 444.5 MB, free: 3.609 MB / 318.1 MB Notification: Performance of Transformations before backend: time 5.541e-06/0.1165, allocations: 0 / 444.5 MB, free: 3.609 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3 * Number of variables: 3 Notification: Performance of Generate backend data structure: time 0.0003065/0.1168, allocations: 339.5 kB / 444.8 MB, free: 3.23 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.574e-05/0.1169, allocations: 15.83 kB / 444.9 MB, free: 3.215 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.783e-05/0.1169, allocations: 0.9375 kB / 444.9 MB, free: 3.215 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 5.707e-05/0.117, allocations: 168.3 kB / 445 MB, free: 3.012 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.095e-05/0.117, allocations: 4.375 kB / 445 MB, free: 3.008 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.024e-05/0.117, allocations: 4.375 kB / 445 MB, free: 3.004 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00011/0.1171, allocations: 42 kB / 445.1 MB, free: 2.957 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.076e-06/0.1172, allocations: 0 / 445.1 MB, free: 2.957 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.107e-05/0.1172, allocations: 8 kB / 445.1 MB, free: 2.949 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.71e-06/0.1172, allocations: 0 / 445.1 MB, free: 2.949 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.494e-05/0.1172, allocations: 11.94 kB / 445.1 MB, free: 2.938 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003538/0.1176, allocations: 240.9 kB / 445.3 MB, free: 2.652 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.217e-05/0.1177, allocations: 14.58 kB / 445.3 MB, free: 2.629 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.668e-05/0.1177, allocations: 12.92 kB / 445.4 MB, free: 2.613 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.187e-06/0.1177, allocations: 0 / 445.4 MB, free: 2.613 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.798e-05/0.1177, allocations: 34.56 kB / 445.4 MB, free: 2.57 MB / 318.1 MB Notification: Performance of pre-optimization done (n=1): time 2.665e-06/0.1177, allocations: 3.984 kB / 445.4 MB, free: 2.566 MB / 318.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001489/0.1179, allocations: 37.64 kB / 445.4 MB, free: 2.523 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.273e-05/0.1179, allocations: 51.41 kB / 445.5 MB, free: 2.461 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.911e-05/0.118, allocations: 102 kB / 445.6 MB, free: 2.352 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 9.357e-06/0.118, allocations: 29.7 kB / 445.6 MB, free: 2.316 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.744e-05/0.118, allocations: 84.05 kB / 445.7 MB, free: 2.23 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.501e-06/0.118, allocations: 0 / 445.7 MB, free: 2.23 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.417e-05/0.1181, allocations: 17.62 kB / 445.7 MB, free: 2.207 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 4.71e-05/0.1181, allocations: 322.8 kB / 446 MB, free: 1.883 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.39e-05/0.1182, allocations: 4 kB / 446 MB, free: 1.879 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.037e-05/0.1182, allocations: 14.7 kB / 446 MB, free: 1.855 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.3e-05/0.1182, allocations: 34.52 kB / 446.1 MB, free: 1.812 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.804e-06/0.1182, allocations: 0 / 446.1 MB, free: 1.812 MB / 318.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 7.423e-05/0.1183, allocations: 49.62 kB / 446.1 MB, free: 1.758 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.845e-05/0.1183, allocations: 9.25 kB / 446.1 MB, free: 1.75 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.162e-06/0.1184, allocations: 0 / 446.1 MB, free: 1.75 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.383e-05/0.1184, allocations: 8.031 kB / 446.1 MB, free: 1.742 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.376e-05/0.1184, allocations: 4 kB / 446.1 MB, free: 1.738 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.063e-06/0.1184, allocations: 4 kB / 446.1 MB, free: 1.734 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.25e-05/0.1185, allocations: 3.938 kB / 446.1 MB, free: 1.73 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.505e-06/0.1185, allocations: 3.984 kB / 446.2 MB, free: 1.727 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * 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 (3): * Single equations (assignments): 3 * 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 4.597e-05/0.1185, allocations: 117.7 kB / 446.3 MB, free: 1.602 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.147e-05/0.1186, allocations: 0 / 446.3 MB, free: 1.602 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001062/0.1187, allocations: 44.83 kB / 446.3 MB, free: 1.551 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.447e-06/0.1187, allocations: 3.984 kB / 446.3 MB, free: 1.547 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.208e-06/0.1187, allocations: 0 / 446.3 MB, free: 1.547 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.184e-06/0.1187, allocations: 0 / 446.3 MB, free: 1.547 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001297/0.1189, allocations: 153.6 kB / 446.5 MB, free: 1.348 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.989e-06/0.1189, allocations: 0 / 446.5 MB, free: 1.348 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.81e-07/0.1189, allocations: 0 / 446.5 MB, free: 1.348 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.673e-06/0.1189, allocations: 0 / 446.5 MB, free: 1.348 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.522e-06/0.1189, allocations: 4 kB / 446.5 MB, free: 1.344 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.703e-06/0.1189, allocations: 3.984 kB / 446.5 MB, free: 1.34 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.373e-06/0.1189, allocations: 7.969 kB / 446.5 MB, free: 1.332 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.366e-05/0.119, allocations: 135.5 kB / 446.6 MB, free: 1.184 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.56e-05/0.119, allocations: 77.11 kB / 446.7 MB, free: 1.09 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.343e-05/0.119, allocations: 0 / 446.7 MB, free: 1.09 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.326e-05/0.1191, allocations: 3.984 kB / 446.7 MB, free: 1.086 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.235e-05/0.1191, allocations: 4 kB / 446.7 MB, free: 1.082 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.699e-06/0.1192, allocations: 0 / 446.7 MB, free: 1.082 MB / 318.1 MB Notification: Performance of sorting global known variables: time 1.921e-05/0.1192, allocations: 79.31 kB / 446.8 MB, free: 1.004 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.1192, allocations: 0 / 446.8 MB, free: 1.004 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0003267/0.1195, allocations: 40 kB / 446.8 MB, free: 0.9648 MB / 318.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.0002408/0.1198, allocations: 139.2 kB / 446.9 MB, free: 0.8203 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 8.901e-05/0.1199, allocations: 11.94 kB / 447 MB, free: 0.8086 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.134e-06/0.1199, allocations: 4 kB / 447 MB, free: 0.8047 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 2.485e-05/0.1199, allocations: 25.98 kB / 447 MB, free: 0.7734 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002499/0.1202, allocations: 15.94 kB / 447 MB, free: 0.7578 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001922/0.1204, allocations: 84.97 kB / 447.1 MB, free: 0.6484 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001462/0.1205, allocations: 0.6729 MB / 447.8 MB, free: 15.95 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 2.307e-05/0.1206, allocations: 3.938 kB / 447.8 MB, free: 15.95 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.406e-05/0.1206, allocations: 15.44 kB / 447.8 MB, free: 15.93 MB / 334.1 MB Notification: Performance of SimCode: time 2.7e-07/0.1206, allocations: 0 / 447.8 MB, free: 15.93 MB / 334.1 MB Notification: Performance of Templates: time 0.003778/0.1244, allocations: 1.074 MB / 448.9 MB, free: 14.86 MB / 334.1 MB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.Fluid.TestUtilities.Test02RegFun3.makefile (rm -f ModelicaTest_3.2.3_ModelicaTest.Fluid.TestUtilities.Test02RegFun3.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Fluid.TestUtilities.Test02RegFun3.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Fluid.TestUtilities.Test02RegFun3.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Fluid.TestUtilities.Test02RegFun3.sim & ./ModelicaTest_3.2.3_ModelicaTest.Fluid.TestUtilities.Test02RegFun3 -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.Fluid.TestUtilities.Test02RegFun3.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Fluid.TestUtilities.Test02RegFun3_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Fluid/TestUtilities/Test02RegFun3/Test02RegFun3.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_ModelicaTest.Fluid.TestUtilities.Test02RegFun3.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches