Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.Test01RegFun3.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(ModelicaTest.Fluid.TestUtilities.Test01RegFun3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|x",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.Test01RegFun3") translateModel(ModelicaTest.Fluid.TestUtilities.Test01RegFun3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|x",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.Test01RegFun3") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001214/0.001214, allocations: 94.75 kB / 16.99 MB, free: 5.941 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001541/0.001541, allocations: 207.4 kB / 17.9 MB, free: 5.594 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.437/1.437, allocations: 227.2 MB / 245.9 MB, free: 10.36 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2143/0.2143, allocations: 45.91 MB / 344 MB, free: 12.16 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002455/0.0002456, allocations: 8 kB / 417.9 MB, free: 20.91 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1106/0.1109, allocations: 63.47 MB / 481.4 MB, free: 5.434 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.Test01RegFun3): time 0.0004989/0.1114, allocations: 214.9 kB / 481.6 MB, free: 5.223 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00171/0.1131, allocations: 1.361 MB / 483 MB, free: 3.844 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.031e-05/0.1132, allocations: 4 kB / 483 MB, free: 3.84 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 9.939e-06/0.1132, allocations: 0 / 483 MB, free: 3.84 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 3.193e-05/0.1132, allocations: 0 / 483 MB, free: 3.84 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005097/0.1137, allocations: 155.3 kB / 483.1 MB, free: 3.691 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 3.01e-05/0.1138, allocations: 3.984 kB / 483.1 MB, free: 3.688 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.963e-05/0.1138, allocations: 4 kB / 483.1 MB, free: 3.684 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.441e-05/0.1138, allocations: 0 / 483.1 MB, free: 3.684 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.341e-05/0.1139, allocations: 7.984 kB / 483.1 MB, free: 3.676 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.104e-05/0.1139, allocations: 0 / 483.1 MB, free: 3.676 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003939/0.1143, allocations: 259.6 kB / 483.4 MB, free: 3.422 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 8.496e-06/0.1143, allocations: 4 kB / 483.4 MB, free: 3.418 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 9.397e-05/0.1144, allocations: 29.69 kB / 483.4 MB, free: 3.383 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001283/0.1146, allocations: 87.77 kB / 483.5 MB, free: 3.297 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.164e-06/0.1146, allocations: 0 / 483.5 MB, free: 3.297 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.573e-06/0.1146, allocations: 0 / 483.5 MB, free: 3.297 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.297e-06/0.1146, allocations: 0 / 483.5 MB, free: 3.297 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: 1 * Number of variables: 1 Notification: Performance of Generate backend data structure: time 0.0003202/0.1149, allocations: 335.4 kB / 483.8 MB, free: 2.922 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.59e-05/0.1149, allocations: 8.031 kB / 483.8 MB, free: 2.914 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.046e-05/0.115, allocations: 0 / 483.8 MB, free: 2.914 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.901e-05/0.1151, allocations: 167 kB / 484 MB, free: 2.711 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.417e-05/0.1151, allocations: 8 kB / 484 MB, free: 2.703 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.855e-06/0.1151, allocations: 0 / 484 MB, free: 2.703 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001152/0.1152, allocations: 29.64 kB / 484 MB, free: 2.668 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.11e-06/0.1152, allocations: 4 kB / 484 MB, free: 2.664 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.548e-06/0.1153, allocations: 0 / 484 MB, free: 2.664 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.667e-06/0.1153, allocations: 0 / 484 MB, free: 2.664 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.628e-05/0.1153, allocations: 0 / 484 MB, free: 2.664 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001377/0.1154, allocations: 161.6 kB / 484.2 MB, free: 2.457 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.324e-05/0.1155, allocations: 22.52 kB / 484.2 MB, free: 2.426 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.791e-06/0.1155, allocations: 0 / 484.2 MB, free: 2.426 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.673e-05/0.1155, allocations: 34.66 kB / 484.3 MB, free: 2.383 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 6.41e-07/0.1155, allocations: 0 / 484.3 MB, free: 2.383 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001145/0.1156, allocations: 41.62 kB / 484.3 MB, free: 2.336 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.877e-05/0.1157, allocations: 55.41 kB / 484.3 MB, free: 2.27 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.637e-05/0.1157, allocations: 93.98 kB / 484.4 MB, free: 2.168 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.273e-05/0.1158, allocations: 25.7 kB / 484.5 MB, free: 2.137 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.052e-05/0.1158, allocations: 84.14 kB / 484.5 MB, free: 2.051 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.404e-05/0.1158, allocations: 3.906 kB / 484.5 MB, free: 2.047 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.244e-06/0.1158, allocations: 0 / 484.5 MB, free: 2.047 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001194/0.116, allocations: 314.8 kB / 484.9 MB, free: 1.73 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.064e-05/0.116, allocations: 3.984 kB / 484.9 MB, free: 1.727 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.234e-06/0.116, allocations: 4 kB / 484.9 MB, free: 1.723 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 1.378e-05/0.116, allocations: 4.141 kB / 484.9 MB, free: 1.719 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.663e-06/0.116, allocations: 4 kB / 484.9 MB, free: 1.715 MB / 350.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 5.23e-05/0.1161, allocations: 37.64 kB / 484.9 MB, free: 1.672 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.343e-05/0.1161, allocations: 4 kB / 484.9 MB, free: 1.668 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.366e-06/0.1161, allocations: 3.938 kB / 484.9 MB, free: 1.664 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.636e-06/0.1161, allocations: 0 / 484.9 MB, free: 1.664 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.984e-05/0.1162, allocations: 4 kB / 484.9 MB, free: 1.66 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.807e-06/0.1162, allocations: 0 / 484.9 MB, free: 1.66 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.418e-05/0.1162, allocations: 3.984 kB / 484.9 MB, free: 1.656 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.111e-06/0.1162, allocations: 0 / 484.9 MB, free: 1.656 MB / 350.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 (1): * Single equations (assignments): 1 * 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 6.031e-05/0.1163, allocations: 118.1 kB / 485 MB, free: 1.531 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.486e-06/0.1163, allocations: 4 kB / 485 MB, free: 1.527 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001063/0.1164, allocations: 44.75 kB / 485.1 MB, free: 1.48 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.024e-06/0.1164, allocations: 0 / 485.1 MB, free: 1.48 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.146e-06/0.1164, allocations: 0 / 485.1 MB, free: 1.48 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.653e-06/0.1164, allocations: 0 / 485.1 MB, free: 1.48 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.28e-05/0.1165, allocations: 153.6 kB / 485.2 MB, free: 1.281 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.984e-06/0.1165, allocations: 11.98 kB / 485.2 MB, free: 1.27 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.386e-06/0.1165, allocations: 3.984 kB / 485.3 MB, free: 1.266 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.493e-06/0.1165, allocations: 0 / 485.3 MB, free: 1.266 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.152e-06/0.1166, allocations: 4 kB / 485.3 MB, free: 1.262 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.012e-06/0.1166, allocations: 0 / 485.3 MB, free: 1.262 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.31e-07/0.1166, allocations: 0 / 485.3 MB, free: 1.262 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.012e-05/0.1166, allocations: 53.14 kB / 485.3 MB, free: 1.191 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.033e-05/0.1167, allocations: 89 kB / 485.4 MB, free: 1.086 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.229e-05/0.1167, allocations: 7.984 kB / 485.4 MB, free: 1.078 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.039e-05/0.1168, allocations: 4 kB / 485.4 MB, free: 1.074 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.296e-05/0.1168, allocations: 0 / 485.4 MB, free: 1.074 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.857e-06/0.1168, allocations: 7.875 kB / 485.4 MB, free: 1.066 MB / 350.1 MB Notification: Performance of sorting global known variables: time 5.151e-05/0.1168, allocations: 79.28 kB / 485.5 MB, free: 0.9883 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.4e-07/0.1169, allocations: 0 / 485.5 MB, free: 0.9883 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002518/0.1171, allocations: 43.98 kB / 485.5 MB, free: 0.9453 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 (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.0002236/0.1173, allocations: 135.9 kB / 485.7 MB, free: 0.8008 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 5.1e-05/0.1174, allocations: 4 kB / 485.7 MB, free: 0.7969 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.573e-06/0.1174, allocations: 0 / 485.7 MB, free: 0.7969 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 3.611e-05/0.1174, allocations: 29.7 kB / 485.7 MB, free: 0.7617 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 8.755e-05/0.1175, allocations: 0 / 485.7 MB, free: 0.7617 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001677/0.1177, allocations: 82.94 kB / 485.8 MB, free: 0.6523 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000322/0.118, allocations: 0.6809 MB / 486.5 MB, free: 15.95 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 1.678e-05/0.1181, allocations: 8.125 kB / 486.5 MB, free: 15.94 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.232e-05/0.1181, allocations: 11.44 kB / 486.5 MB, free: 15.93 MB / 366.1 MB Notification: Performance of SimCode: time 2.3e-07/0.1181, allocations: 0 / 486.5 MB, free: 15.93 MB / 366.1 MB Notification: Performance of Templates: time 0.002777/0.1209, allocations: 1.06 MB / 487.5 MB, free: 14.87 MB / 366.1 MB make -j1 -f ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.Test01RegFun3.makefile (rm -f ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.Test01RegFun3.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.Test01RegFun3.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.Test01RegFun3.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.Test01RegFun3.sim & ./ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.Test01RegFun3 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.Test01RegFun3.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.Test01RegFun3_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Fluid/TestUtilities/Test01RegFun3/Test01RegFun3.csv","../files/ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.Test01RegFun3.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches