Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestUtilities.Test02RegFun3.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/ModelicaServices 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 ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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_cpp_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_cpp_ModelicaTest.Fluid.TestUtilities.Test02RegFun3") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001164/0.001164, allocations: 179.5 kB / 16.41 MB, free: 5.707 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.382/1.382, allocations: 205.4 MB / 222.5 MB, free: 9.109 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007609/0.0007609, allocations: 94.3 kB / 270.9 MB, free: 8.352 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.314/0.314, allocations: 43.56 MB / 362.7 MB, free: 52.16 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004044/0.0004046, allocations: 16 kB / 431.4 MB, free: 6.145 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1077/0.1081, allocations: 58.86 MB / 490.2 MB, free: 11.21 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.Test02RegFun3): time 0.0005661/0.1087, allocations: 216.5 kB / 490.5 MB, free: 11 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.001664/0.1104, allocations: 1.354 MB / 491.8 MB, free: 9.625 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.901e-05/0.1104, allocations: 0 / 491.8 MB, free: 9.625 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 1.037e-05/0.1105, allocations: 4 kB / 491.8 MB, free: 9.621 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 2.867e-05/0.1105, allocations: 4 kB / 491.8 MB, free: 9.617 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005372/0.111, allocations: 155.7 kB / 492 MB, free: 9.465 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 3.481e-05/0.1111, allocations: 4 kB / 492 MB, free: 9.461 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.46e-05/0.1111, allocations: 0 / 492 MB, free: 9.461 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 1.775e-05/0.1112, allocations: 7.938 kB / 492 MB, free: 9.453 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 4.322e-05/0.1112, allocations: 7.984 kB / 492 MB, free: 9.445 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 1.06e-05/0.1112, allocations: 0 / 492 MB, free: 9.445 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003945/0.1116, allocations: 255.7 kB / 492.2 MB, free: 9.195 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 9.518e-06/0.1116, allocations: 7.938 kB / 492.2 MB, free: 9.188 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 2.591e-05/0.1117, allocations: 29.7 kB / 492.3 MB, free: 9.152 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001434/0.1118, allocations: 79.83 kB / 492.3 MB, free: 9.074 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.218e-06/0.1118, allocations: 0 / 492.3 MB, free: 9.074 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.432e-06/0.1118, allocations: 0 / 492.3 MB, free: 9.074 MB / 378.7 MB Notification: Performance of Transformations before backend: time 4.108e-06/0.1119, allocations: 0 / 492.3 MB, free: 9.074 MB / 378.7 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.0003163/0.1122, allocations: 327.4 kB / 492.7 MB, free: 8.707 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.594e-05/0.1122, allocations: 11.97 kB / 492.7 MB, free: 8.695 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.364e-05/0.1123, allocations: 15.84 kB / 492.7 MB, free: 8.68 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001093/0.1124, allocations: 159.1 kB / 492.9 MB, free: 8.484 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.343e-05/0.1124, allocations: 4 kB / 492.9 MB, free: 8.48 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.425e-06/0.1124, allocations: 0 / 492.9 MB, free: 8.48 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001018/0.1125, allocations: 41.69 kB / 492.9 MB, free: 8.434 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.843e-06/0.1126, allocations: 3.938 kB / 492.9 MB, free: 8.43 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.029e-05/0.1126, allocations: 0 / 492.9 MB, free: 8.43 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.482e-06/0.1126, allocations: 0 / 492.9 MB, free: 8.43 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.705e-05/0.1126, allocations: 15.89 kB / 492.9 MB, free: 8.414 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000343/0.113, allocations: 241 kB / 493.2 MB, free: 8.129 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.11e-05/0.113, allocations: 26.56 kB / 493.2 MB, free: 8.094 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.527e-05/0.1131, allocations: 8.922 kB / 493.2 MB, free: 8.082 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.366e-06/0.1131, allocations: 0 / 493.2 MB, free: 8.082 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.415e-05/0.1131, allocations: 34.56 kB / 493.2 MB, free: 8.039 MB / 378.7 MB Notification: Performance of pre-optimization done (n=1): time 1.042e-06/0.1131, allocations: 0 / 493.2 MB, free: 8.039 MB / 378.7 MB Notification: Performance of matching and sorting (n=1): time 0.000139/0.1133, allocations: 41.59 kB / 493.3 MB, free: 7.992 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.28e-05/0.1133, allocations: 55.52 kB / 493.3 MB, free: 7.926 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.655e-05/0.1134, allocations: 97.86 kB / 493.4 MB, free: 7.82 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 1.48e-05/0.1134, allocations: 25.7 kB / 493.4 MB, free: 7.789 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.052e-05/0.1134, allocations: 92.27 kB / 493.5 MB, free: 7.695 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.989e-06/0.1134, allocations: 0 / 493.5 MB, free: 7.695 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.364e-06/0.1135, allocations: 0 / 493.5 MB, free: 7.695 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001186/0.1136, allocations: 310.8 kB / 493.8 MB, free: 7.383 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.191e-05/0.1136, allocations: 7.984 kB / 493.8 MB, free: 7.375 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.375e-05/0.1136, allocations: 26.7 kB / 493.9 MB, free: 7.34 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.289e-05/0.1137, allocations: 7.938 kB / 493.9 MB, free: 7.332 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.613e-06/0.1137, allocations: 0 / 493.9 MB, free: 7.332 MB / 378.7 MB Notification: Performance of matching and sorting (n=3) (initialization): time 6.963e-05/0.1137, allocations: 49.62 kB / 493.9 MB, free: 7.277 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.31e-05/0.1138, allocations: 4 kB / 493.9 MB, free: 7.273 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.701e-06/0.1138, allocations: 3.984 kB / 493.9 MB, free: 7.27 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.598e-05/0.1138, allocations: 8.047 kB / 493.9 MB, free: 7.262 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.913e-05/0.1138, allocations: 8 kB / 493.9 MB, free: 7.254 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.079e-06/0.1139, allocations: 0 / 493.9 MB, free: 7.254 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.024e-05/0.1139, allocations: 7.906 kB / 493.9 MB, free: 7.246 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.43e-06/0.1139, allocations: 0 / 493.9 MB, free: 7.246 MB / 378.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 7.326e-05/0.114, allocations: 109.8 kB / 494.1 MB, free: 7.129 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.261e-05/0.114, allocations: 7.984 kB / 494.1 MB, free: 7.121 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000106/0.1141, allocations: 48.77 kB / 494.1 MB, free: 7.066 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.516e-06/0.1141, allocations: 3.953 kB / 494.1 MB, free: 7.062 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.248e-06/0.1141, allocations: 0 / 494.1 MB, free: 7.062 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.296e-06/0.1141, allocations: 0 / 494.1 MB, free: 7.062 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001367/0.1143, allocations: 157.5 kB / 494.3 MB, free: 6.859 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.937e-06/0.1143, allocations: 0 / 494.3 MB, free: 6.859 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.113e-06/0.1143, allocations: 4 kB / 494.3 MB, free: 6.855 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.493e-06/0.1143, allocations: 0 / 494.3 MB, free: 6.855 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.9e-06/0.1143, allocations: 0 / 494.3 MB, free: 6.855 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.82e-07/0.1143, allocations: 0 / 494.3 MB, free: 6.855 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.325e-06/0.1143, allocations: 3.953 kB / 494.3 MB, free: 6.852 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.785e-05/0.1144, allocations: 135.6 kB / 494.4 MB, free: 6.703 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.352e-05/0.1145, allocations: 81.11 kB / 494.5 MB, free: 6.605 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.756e-06/0.1145, allocations: 0 / 494.5 MB, free: 6.605 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.221e-05/0.1145, allocations: 0 / 494.5 MB, free: 6.605 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.23e-05/0.1146, allocations: 0 / 494.5 MB, free: 6.605 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.362e-06/0.1146, allocations: 11.89 kB / 494.5 MB, free: 6.594 MB / 378.7 MB Notification: Performance of sorting global known variables: time 3.426e-05/0.1146, allocations: 87.3 kB / 494.6 MB, free: 6.508 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1146, allocations: 0 / 494.6 MB, free: 6.508 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0002697/0.1149, allocations: 40 kB / 494.6 MB, free: 6.469 MB / 378.7 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.0002422/0.1151, allocations: 131.2 kB / 494.8 MB, free: 6.332 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 6.452e-05/0.1152, allocations: 12 kB / 494.8 MB, free: 6.32 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.134e-06/0.1152, allocations: 0 / 494.8 MB, free: 6.32 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 2.803e-05/0.1152, allocations: 29.7 kB / 494.8 MB, free: 6.285 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001961/0.1155, allocations: 4.344 kB / 494.8 MB, free: 6.281 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002135/0.1157, allocations: 116.4 kB / 494.9 MB, free: 6.137 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000233/0.1159, allocations: 0.6692 MB / 495.6 MB, free: 5.441 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.247e-05/0.1159, allocations: 7.438 kB / 495.6 MB, free: 5.434 MB / 378.7 MB Notification: Performance of SimCode: time 2.01e-07/0.1159, allocations: 7.938 kB / 495.6 MB, free: 5.426 MB / 378.7 MB Notification: Performance of Templates: time 0.002113/0.1181, allocations: 0.913 MB / 496.5 MB, free: 4.512 MB / 378.7 MB make -j1 -f ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestUtilities.Test02RegFun3.makefile (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestUtilities.Test02RegFun3.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestUtilities.Test02RegFun3.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestUtilities.Test02RegFun3.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestUtilities.Test02RegFun3.sim & ./ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestUtilities.Test02RegFun3 --alarm=480 -emit_protected > ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestUtilities.Test02RegFun3.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestUtilities.Test02RegFun3_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Fluid/TestUtilities/Test02RegFun3/Test02RegFun3.csv","../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestUtilities.Test02RegFun3.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches