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/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/ModelicaServices 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 ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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) 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/Complex trunk/package.mo): time 0.0009641/0.0009641, allocations: 198.8 kB / 8.768 MB, free: 320 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.251/1.251, allocations: 225.6 MB / 234.8 MB, free: 3.285 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008403/0.0008406, allocations: 105.7 kB / 286.7 MB, free: 5.25 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1714/0.1714, allocations: 45.15 MB / 383.8 MB, free: 288 kB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 1.417e-05/1.419e-05, allocations: 4 kB / 453.2 MB, free: 75.84 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1021/0.1021, allocations: 63.25 MB / 0.5044 GB, free: 12.64 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3589/0.461, allocations: 86.77 MB / 0.5891 GB, free: 15.85 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002473/0.4613, allocations: 66.34 kB / 0.5892 GB, free: 15.82 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0252/0.4865, allocations: 8.338 MB / 0.5973 GB, free: 8.746 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.743e-06/0.4866, allocations: 0 / 0.5973 GB, free: 8.746 MB / 394.7 MB Notification: Performance of Transformations before backend: time 6.011e-06/0.4866, allocations: 0 / 0.5973 GB, free: 8.746 MB / 394.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.0003689/0.4869, allocations: 338 kB / 0.5976 GB, free: 8.375 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.923e-05/0.487, allocations: 12.03 kB / 0.5976 GB, free: 8.363 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.166e-05/0.4871, allocations: 4 kB / 0.5976 GB, free: 8.359 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001128/0.4872, allocations: 163 kB / 0.5978 GB, free: 8.16 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.669e-05/0.4872, allocations: 3.984 kB / 0.5978 GB, free: 8.156 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.141e-05/0.4872, allocations: 3.938 kB / 0.5978 GB, free: 8.152 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 6.434e-05/0.4873, allocations: 4 kB / 0.5978 GB, free: 8.148 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.493e-05/0.4874, allocations: 32.7 kB / 0.5978 GB, free: 8.113 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.877e-06/0.4874, allocations: 0 / 0.5978 GB, free: 8.113 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.698e-06/0.4874, allocations: 0 / 0.5978 GB, free: 8.113 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.985e-06/0.4874, allocations: 4 kB / 0.5978 GB, free: 8.109 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003222/0.4877, allocations: 224.9 kB / 0.598 GB, free: 7.855 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 3.895e-05/0.4878, allocations: 18.56 kB / 0.5981 GB, free: 7.828 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.427e-05/0.4878, allocations: 12.55 kB / 0.5981 GB, free: 7.816 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.452e-05/0.4878, allocations: 4.062 kB / 0.5981 GB, free: 7.812 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.568e-05/0.4879, allocations: 30.56 kB / 0.5981 GB, free: 7.773 MB / 394.7 MB Notification: Performance of pre-optimization done (n=1): time 1.152e-06/0.4879, allocations: 4 kB / 0.5981 GB, free: 7.77 MB / 394.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001681/0.4881, allocations: 29.7 kB / 0.5981 GB, free: 7.734 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.648e-05/0.4881, allocations: 59.39 kB / 0.5982 GB, free: 7.664 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.678e-05/0.4882, allocations: 85 kB / 0.5983 GB, free: 7.574 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 1.545e-05/0.4882, allocations: 25.7 kB / 0.5983 GB, free: 7.543 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.391e-05/0.4882, allocations: 95.55 kB / 0.5984 GB, free: 7.449 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.154e-06/0.4883, allocations: 7.844 kB / 0.5984 GB, free: 7.441 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.424e-06/0.4883, allocations: 0 / 0.5984 GB, free: 7.441 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 8.34e-05/0.4884, allocations: 319 kB / 0.5987 GB, free: 7.121 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.635e-06/0.4884, allocations: 0 / 0.5987 GB, free: 7.121 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.748e-05/0.4884, allocations: 22.02 kB / 0.5987 GB, free: 7.094 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.624e-05/0.4884, allocations: 11.92 kB / 0.5987 GB, free: 7.082 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.272e-06/0.4884, allocations: 0 / 0.5987 GB, free: 7.082 MB / 394.7 MB Notification: Performance of matching and sorting (n=3) (initialization): time 7.106e-05/0.4885, allocations: 45.77 kB / 0.5988 GB, free: 7.031 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.331e-05/0.4885, allocations: 4 kB / 0.5988 GB, free: 7.027 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.189e-05/0.4886, allocations: 7.922 kB / 0.5988 GB, free: 7.02 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.33e-05/0.4886, allocations: 4 kB / 0.5988 GB, free: 7.016 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.933e-05/0.4886, allocations: 4 kB / 0.5988 GB, free: 7.012 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.5e-06/0.4886, allocations: 4 kB / 0.5988 GB, free: 7.008 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.54e-05/0.4886, allocations: 0 / 0.5988 GB, free: 7.008 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.075e-06/0.4887, allocations: 7.938 kB / 0.5988 GB, free: 7 MB / 394.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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (3): * Single equations (assignments): 2 * 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 prepare postOptimizeDAE: time 5.357e-05/0.4887, allocations: 108.2 kB / 0.5989 GB, free: 6.891 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2e-05/0.4887, allocations: 32 / 0.5989 GB, free: 6.891 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001151/0.4889, allocations: 49.39 kB / 0.599 GB, free: 6.84 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.124e-06/0.4889, allocations: 0 / 0.599 GB, free: 6.84 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.557e-06/0.4889, allocations: 0 / 0.599 GB, free: 6.84 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.378e-06/0.4889, allocations: 0 / 0.599 GB, free: 6.84 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001072/0.489, allocations: 134.1 kB / 0.5991 GB, free: 6.672 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.394e-06/0.489, allocations: 7.234 kB / 0.5991 GB, free: 6.668 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.71e-07/0.489, allocations: 0 / 0.5991 GB, free: 6.668 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.343e-06/0.489, allocations: 0 / 0.5991 GB, free: 6.668 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.841e-06/0.489, allocations: 8.031 kB / 0.5991 GB, free: 6.66 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.21e-07/0.489, allocations: 0 / 0.5991 GB, free: 6.66 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.904e-06/0.4891, allocations: 0 / 0.5991 GB, free: 6.66 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001008/0.4892, allocations: 127.5 kB / 0.5992 GB, free: 6.52 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.288e-05/0.4892, allocations: 77.11 kB / 0.5993 GB, free: 6.426 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.191e-05/0.4892, allocations: 3.984 kB / 0.5993 GB, free: 6.422 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.228e-05/0.4893, allocations: 4 kB / 0.5993 GB, free: 6.418 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.091e-05/0.4893, allocations: 4.031 kB / 0.5993 GB, free: 6.414 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.797e-06/0.4893, allocations: 3.812 kB / 0.5993 GB, free: 6.414 MB / 394.7 MB Notification: Performance of sorting global known variables: time 3.694e-05/0.4893, allocations: 75.28 kB / 0.5994 GB, free: 6.34 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.61e-07/0.4894, allocations: 3.938 kB / 0.5994 GB, free: 6.336 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0002906/0.4896, allocations: 47.94 kB / 0.5994 GB, free: 6.289 MB / 394.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 () * 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.0002823/0.4899, allocations: 147.1 kB / 0.5996 GB, free: 6.133 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0001001/0.4901, allocations: 41.08 kB / 0.5996 GB, free: 6.09 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 2.605e-06/0.4901, allocations: 288 / 0.5996 GB, free: 6.09 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 3.125e-05/0.4901, allocations: 33.7 kB / 0.5997 GB, free: 6.051 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001251/0.4902, allocations: 0 / 0.5997 GB, free: 6.051 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002169/0.4905, allocations: 55.95 kB / 0.5997 GB, free: 5.973 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002925/0.4908, allocations: 0.6768 MB / 0.6004 GB, free: 5.27 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 1.787e-05/0.4908, allocations: 0 / 0.6004 GB, free: 5.27 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.638e-06/0.4908, allocations: 7.438 kB / 0.6004 GB, free: 5.262 MB / 394.7 MB Notification: Performance of SimCode: time 2.41e-07/0.4908, allocations: 0 / 0.6004 GB, free: 5.262 MB / 394.7 MB Notification: Performance of Templates: time 0.002726/0.4935, allocations: 0.8431 MB / 0.6012 GB, free: 4.434 MB / 394.7 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