Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_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 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.Test02RegFun3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|x|a|b",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.Test02RegFun3") translateModel(ModelicaTest.Fluid.TestUtilities.Test02RegFun3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|x|a|b",fileNamePrefix="ModelicaTest_4.0.0_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.0008951/0.0008953, allocations: 95.16 kB / 17.35 MB, free: 6.371 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.0008292/0.0008292, allocations: 179.3 kB / 18.26 MB, free: 5.52 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.304/1.304, allocations: 223.2 MB / 242.3 MB, free: 204 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.1942/0.1942, allocations: 44.25 MB / 337.7 MB, free: 2.637 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003054/0.0003055, allocations: 8 kB / 410.3 MB, free: 27.29 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1066/0.107, allocations: 61.92 MB / 472.2 MB, free: 13.34 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.Test02RegFun3): time 0.0005483/0.1075, allocations: 226.8 kB / 472.5 MB, free: 13.12 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001739/0.1093, allocations: 1.395 MB / 473.9 MB, free: 11.7 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.191e-05/0.1093, allocations: 0 / 473.9 MB, free: 11.7 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.022e-05/0.1093, allocations: 0 / 473.9 MB, free: 11.7 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 2.039e-05/0.1094, allocations: 4 kB / 473.9 MB, free: 11.7 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005042/0.1099, allocations: 155.4 kB / 474 MB, free: 11.55 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 3.571e-05/0.1099, allocations: 8 kB / 474 MB, free: 11.54 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.962e-05/0.11, allocations: 0 / 474 MB, free: 11.54 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.575e-05/0.11, allocations: 7.938 kB / 474 MB, free: 11.54 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.094e-05/0.11, allocations: 7.984 kB / 474 MB, free: 11.53 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 9.649e-06/0.1101, allocations: 0 / 474 MB, free: 11.53 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003828/0.1104, allocations: 271.6 kB / 474.3 MB, free: 11.26 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.417e-05/0.1105, allocations: 7.969 kB / 474.3 MB, free: 11.25 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.685e-05/0.1105, allocations: 25.7 kB / 474.3 MB, free: 11.22 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001972/0.1107, allocations: 147.7 kB / 474.5 MB, free: 11.08 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.105e-06/0.1107, allocations: 0 / 474.5 MB, free: 11.08 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.413e-06/0.1107, allocations: 0 / 474.5 MB, free: 11.08 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.429e-06/0.1107, allocations: 0 / 474.5 MB, free: 11.08 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: 3 * Number of variables: 3 Notification: Performance of Generate backend data structure: time 0.0003526/0.1111, allocations: 329.8 kB / 474.8 MB, free: 10.71 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.432e-05/0.1111, allocations: 8.031 kB / 474.8 MB, free: 10.7 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.215e-05/0.1112, allocations: 4.938 kB / 474.8 MB, free: 10.7 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.837e-05/0.1113, allocations: 160.4 kB / 475 MB, free: 10.5 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.227e-06/0.1113, allocations: 384 / 475 MB, free: 10.5 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.284e-06/0.1113, allocations: 384 / 475 MB, free: 10.5 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001128/0.1114, allocations: 53.94 kB / 475 MB, free: 10.45 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.823e-06/0.1114, allocations: 0 / 475 MB, free: 10.45 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.977e-06/0.1114, allocations: 0 / 475 MB, free: 10.45 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.018e-06/0.1114, allocations: 0 / 475 MB, free: 10.45 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.687e-05/0.1115, allocations: 4 kB / 475 MB, free: 10.44 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003138/0.1118, allocations: 248.9 kB / 475.3 MB, free: 10.15 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.502e-05/0.1118, allocations: 18.58 kB / 475.3 MB, free: 10.12 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.551e-05/0.1119, allocations: 12.8 kB / 475.3 MB, free: 10.11 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.96e-06/0.1119, allocations: 0 / 475.3 MB, free: 10.11 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.922e-05/0.1119, allocations: 30.56 kB / 475.3 MB, free: 10.07 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 7.92e-07/0.1119, allocations: 0 / 475.3 MB, free: 10.07 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001237/0.112, allocations: 37.75 kB / 475.4 MB, free: 10.02 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.538e-05/0.1121, allocations: 51.41 kB / 475.4 MB, free: 9.961 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.228e-05/0.1121, allocations: 105.9 kB / 475.5 MB, free: 9.848 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.175e-05/0.1122, allocations: 25.7 kB / 475.5 MB, free: 9.816 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.236e-05/0.1122, allocations: 84.36 kB / 475.6 MB, free: 9.73 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.631e-06/0.1122, allocations: 3.906 kB / 475.6 MB, free: 9.727 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.541e-05/0.1123, allocations: 21.7 kB / 475.7 MB, free: 9.699 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 9.041e-05/0.1124, allocations: 314.8 kB / 476 MB, free: 9.383 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.109e-05/0.1124, allocations: 3.938 kB / 476 MB, free: 9.379 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.451e-05/0.1124, allocations: 18.58 kB / 476 MB, free: 9.352 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.386e-05/0.1124, allocations: 34.64 kB / 476 MB, free: 9.309 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.553e-06/0.1124, allocations: 0 / 476 MB, free: 9.309 MB / 350.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 7.282e-05/0.1125, allocations: 53.56 kB / 476.1 MB, free: 9.25 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.157e-05/0.1125, allocations: 4 kB / 476.1 MB, free: 9.246 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.817e-06/0.1126, allocations: 0 / 476.1 MB, free: 9.246 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.03e-05/0.1126, allocations: 4.094 kB / 476.1 MB, free: 9.242 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.449e-05/0.1126, allocations: 15.92 kB / 476.1 MB, free: 9.227 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.548e-06/0.1126, allocations: 0 / 476.1 MB, free: 9.227 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.556e-05/0.1126, allocations: 0 / 476.1 MB, free: 9.227 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.109e-06/0.1127, allocations: 4 kB / 476.1 MB, free: 9.223 MB / 350.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 5.797e-05/0.1127, allocations: 109.8 kB / 476.2 MB, free: 9.105 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.336e-05/0.1128, allocations: 4 kB / 476.2 MB, free: 9.102 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001048/0.1129, allocations: 60.84 kB / 476.3 MB, free: 9.035 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.034e-06/0.1129, allocations: 0 / 476.3 MB, free: 9.035 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.639e-06/0.1129, allocations: 0 / 476.3 MB, free: 9.035 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.934e-06/0.1129, allocations: 3.938 kB / 476.3 MB, free: 9.031 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001338/0.113, allocations: 149.6 kB / 476.4 MB, free: 8.836 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.128e-06/0.113, allocations: 0 / 476.4 MB, free: 8.836 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.084e-06/0.113, allocations: 3.984 kB / 476.4 MB, free: 8.832 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.312e-06/0.113, allocations: 0 / 476.4 MB, free: 8.832 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.568e-06/0.1131, allocations: 0 / 476.4 MB, free: 8.832 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.11e-07/0.1131, allocations: 0 / 476.4 MB, free: 8.832 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.51e-07/0.1131, allocations: 0 / 476.4 MB, free: 8.832 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.946e-05/0.1132, allocations: 139.4 kB / 476.6 MB, free: 8.68 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.125e-05/0.1132, allocations: 81.11 kB / 476.6 MB, free: 8.582 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.159e-05/0.1132, allocations: 3.984 kB / 476.6 MB, free: 8.578 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.415e-05/0.1133, allocations: 0 / 476.6 MB, free: 8.578 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.239e-05/0.1133, allocations: 0 / 476.6 MB, free: 8.578 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.821e-06/0.1133, allocations: 4 kB / 476.6 MB, free: 8.574 MB / 350.1 MB Notification: Performance of sorting global known variables: time 3.792e-05/0.1133, allocations: 83.31 kB / 476.7 MB, free: 8.492 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1134, allocations: 0 / 476.7 MB, free: 8.492 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002748/0.1136, allocations: 40 kB / 476.8 MB, free: 8.453 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 (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.0002523/0.1139, allocations: 135.7 kB / 476.9 MB, free: 8.312 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 6.515e-05/0.114, allocations: 12 kB / 476.9 MB, free: 8.301 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.777e-06/0.114, allocations: 0 / 476.9 MB, free: 8.301 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 3.001e-05/0.114, allocations: 33.64 kB / 476.9 MB, free: 8.262 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002705/0.1143, allocations: 4.281 kB / 476.9 MB, free: 8.258 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002283/0.1145, allocations: 94.75 kB / 477 MB, free: 8.137 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002871/0.1148, allocations: 0.6731 MB / 477.7 MB, free: 7.438 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 4.02e-05/0.1149, allocations: 7.984 kB / 477.7 MB, free: 7.43 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.41e-05/0.1149, allocations: 7.438 kB / 477.7 MB, free: 7.422 MB / 350.1 MB Notification: Performance of SimCode: time 4.3e-07/0.1149, allocations: 0 / 477.7 MB, free: 7.422 MB / 350.1 MB Notification: Performance of Templates: time 0.004334/0.1193, allocations: 1.052 MB / 478.8 MB, free: 6.371 MB / 350.1 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.Test02RegFun3.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.Test02RegFun3.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.Test02RegFun3.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.Test02RegFun3.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.Test02RegFun3.sim & ./ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.Test02RegFun3 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.Test02RegFun3.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.Test02RegFun3_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Fluid/TestUtilities/Test02RegFun3/Test02RegFun3.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.Test02RegFun3.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches