Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.Test02RegFun3.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.Test02RegFun3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|x|a|b",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.Test02RegFun3") translateModel(ModelicaTest.Fluid.TestUtilities.Test02RegFun3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|x|a|b",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.Test02RegFun3") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009754/0.0009751, allocations: 96.92 kB / 16.98 MB, free: 6.398 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.000969/0.000969, allocations: 198.1 kB / 17.89 MB, free: 5.945 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.342/1.342, allocations: 227.2 MB / 245.9 MB, free: 10.34 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2016/0.2016, allocations: 45.91 MB / 344 MB, free: 12.16 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002611/0.0002611, allocations: 7.984 kB / 417.9 MB, free: 20.91 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1119/0.1121, allocations: 63.46 MB / 481.4 MB, free: 5.441 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.Test02RegFun3): time 0.0006473/0.1128, allocations: 214.9 kB / 481.6 MB, free: 5.23 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00174/0.1146, allocations: 1.368 MB / 483 MB, free: 3.848 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.941e-05/0.1146, allocations: 0 / 483 MB, free: 3.848 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.08e-05/0.1146, allocations: 0 / 483 MB, free: 3.848 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 3.868e-05/0.1147, allocations: 0 / 483 MB, free: 3.848 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005288/0.1152, allocations: 147.3 kB / 483.1 MB, free: 3.707 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 3.503e-05/0.1153, allocations: 7.984 kB / 483.1 MB, free: 3.699 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.054e-05/0.1153, allocations: 0 / 483.1 MB, free: 3.699 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.819e-05/0.1153, allocations: 12 kB / 483.1 MB, free: 3.688 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.493e-05/0.1154, allocations: 0 / 483.1 MB, free: 3.688 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 9.188e-06/0.1154, allocations: 0 / 483.1 MB, free: 3.688 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00038/0.1158, allocations: 267.6 kB / 483.4 MB, free: 3.426 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 8.175e-06/0.1158, allocations: 0 / 483.4 MB, free: 3.426 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.29e-05/0.1158, allocations: 25.7 kB / 483.4 MB, free: 3.395 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001365/0.116, allocations: 91.75 kB / 483.5 MB, free: 3.305 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.567e-06/0.116, allocations: 0 / 483.5 MB, free: 3.305 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.144e-06/0.116, allocations: 0 / 483.5 MB, free: 3.305 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.845e-06/0.116, allocations: 0 / 483.5 MB, free: 3.305 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.0003706/0.1164, allocations: 331.4 kB / 483.8 MB, free: 2.934 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.909e-05/0.1164, allocations: 12.03 kB / 483.8 MB, free: 2.922 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.811e-05/0.1165, allocations: 0 / 483.8 MB, free: 2.922 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.592e-05/0.1166, allocations: 163 kB / 484 MB, free: 2.723 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.191e-05/0.1166, allocations: 4 kB / 484 MB, free: 2.719 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.328e-06/0.1166, allocations: 0 / 484 MB, free: 2.719 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001043/0.1167, allocations: 41.62 kB / 484 MB, free: 2.672 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.831e-06/0.1167, allocations: 0 / 484 MB, free: 2.672 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.838e-06/0.1167, allocations: 3.938 kB / 484 MB, free: 2.668 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.837e-06/0.1167, allocations: 0 / 484 MB, free: 2.668 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.067e-05/0.1168, allocations: 15.98 kB / 484.1 MB, free: 2.652 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003293/0.1171, allocations: 240.9 kB / 484.3 MB, free: 2.367 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.474e-05/0.1172, allocations: 18.58 kB / 484.3 MB, free: 2.34 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.562e-06/0.1172, allocations: 0 / 484.3 MB, free: 2.34 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.733e-05/0.1172, allocations: 42.53 kB / 484.3 MB, free: 2.289 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 8.32e-07/0.1172, allocations: 4 kB / 484.4 MB, free: 2.285 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001211/0.1173, allocations: 33.77 kB / 484.4 MB, free: 2.246 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.686e-05/0.1174, allocations: 51.41 kB / 484.4 MB, free: 2.184 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.179e-05/0.1175, allocations: 101.7 kB / 484.5 MB, free: 2.074 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.303e-05/0.1175, allocations: 29.7 kB / 484.6 MB, free: 2.039 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.069e-05/0.1175, allocations: 88.34 kB / 484.7 MB, free: 1.949 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.44e-06/0.1175, allocations: 3.906 kB / 484.7 MB, free: 1.945 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.265e-06/0.1175, allocations: 0 / 484.7 MB, free: 1.945 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001042/0.1176, allocations: 315.1 kB / 485 MB, free: 1.629 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.824e-05/0.1177, allocations: 4 kB / 485 MB, free: 1.625 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.537e-05/0.1177, allocations: 30.5 kB / 485 MB, free: 1.586 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 1.354e-05/0.1177, allocations: 0 / 485 MB, free: 1.586 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.725e-06/0.1177, allocations: 4 kB / 485 MB, free: 1.582 MB / 350.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 6.821e-05/0.1178, allocations: 53.69 kB / 485.1 MB, free: 1.523 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.474e-05/0.1178, allocations: 4 kB / 485.1 MB, free: 1.52 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.499e-06/0.1178, allocations: 3.938 kB / 485.1 MB, free: 1.516 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.303e-05/0.1178, allocations: 4 kB / 485.1 MB, free: 1.512 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.655e-05/0.1179, allocations: 7.984 kB / 485.1 MB, free: 1.504 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.222e-06/0.1179, allocations: 0 / 485.1 MB, free: 1.504 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.523e-05/0.1179, allocations: 0 / 485.1 MB, free: 1.504 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.084e-05/0.118, allocations: 7.953 kB / 485.1 MB, free: 1.496 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001148/0.1181, allocations: 105.8 kB / 485.2 MB, free: 1.383 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.082e-05/0.1181, allocations: 8.031 kB / 485.2 MB, free: 1.375 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001063/0.1182, allocations: 44.75 kB / 485.2 MB, free: 1.328 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.974e-06/0.1182, allocations: 4 kB / 485.2 MB, free: 1.324 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.466e-06/0.1182, allocations: 0 / 485.2 MB, free: 1.324 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.114e-06/0.1182, allocations: 0 / 485.2 MB, free: 1.324 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001482/0.1184, allocations: 145.6 kB / 485.4 MB, free: 1.133 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.683e-06/0.1184, allocations: 7.984 kB / 485.4 MB, free: 1.125 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.11e-07/0.1184, allocations: 0 / 485.4 MB, free: 1.125 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.453e-06/0.1184, allocations: 4.031 kB / 485.4 MB, free: 1.121 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.47e-06/0.1184, allocations: 0 / 485.4 MB, free: 1.121 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.154e-06/0.1184, allocations: 4 kB / 485.4 MB, free: 1.117 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.72e-07/0.1184, allocations: 0 / 485.4 MB, free: 1.117 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.911e-05/0.1185, allocations: 139.4 kB / 485.5 MB, free: 0.9648 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.986e-05/0.1186, allocations: 85.03 kB / 485.6 MB, free: 0.8633 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.278e-05/0.1186, allocations: 4 kB / 485.6 MB, free: 0.8594 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.515e-05/0.1187, allocations: 4.031 kB / 485.6 MB, free: 0.8555 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.538e-06/0.1187, allocations: 0 / 485.6 MB, free: 0.8555 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.466e-06/0.1187, allocations: 0 / 485.6 MB, free: 0.8555 MB / 350.1 MB Notification: Performance of sorting global known variables: time 3.747e-05/0.1187, allocations: 83.28 kB / 485.7 MB, free: 0.7734 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1187, allocations: 0 / 485.7 MB, free: 0.7734 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002859/0.119, allocations: 40 kB / 485.7 MB, free: 0.7344 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.0002619/0.1193, allocations: 131.8 kB / 485.9 MB, free: 0.5938 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 7.105e-05/0.1194, allocations: 16.16 kB / 485.9 MB, free: 0.5781 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.004e-06/0.1194, allocations: 0 / 485.9 MB, free: 0.5781 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 3.065e-05/0.1194, allocations: 33.64 kB / 485.9 MB, free: 0.5391 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001306/0.1196, allocations: 7.938 kB / 485.9 MB, free: 0.5312 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002169/0.1198, allocations: 86.7 kB / 486 MB, free: 428 kB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003247/0.1201, allocations: 0.677 MB / 486.7 MB, free: 15.71 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 2.511e-05/0.1202, allocations: 4.188 kB / 486.7 MB, free: 15.71 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.41e-05/0.1202, allocations: 11.44 kB / 486.7 MB, free: 15.7 MB / 366.1 MB Notification: Performance of SimCode: time 2.1e-07/0.1202, allocations: 0 / 486.7 MB, free: 15.7 MB / 366.1 MB Notification: Performance of Templates: time 0.01109/0.1313, allocations: 1.053 MB / 487.8 MB, free: 14.64 MB / 366.1 MB make -j1 -f ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.Test02RegFun3.makefile (rm -f ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.Test02RegFun3.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.Test02RegFun3.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.Test02RegFun3.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.Test02RegFun3.sim & ./ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.Test02RegFun3 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.Test02RegFun3.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_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","../files/ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.Test02RegFun3.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches