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.001236/0.001236, allocations: 117 kB / 18.41 MB, free: 4.559 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001309/0.001309, allocations: 204.5 kB / 19.36 MB, free: 3.617 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.258/1.258, allocations: 227.4 MB / 247.5 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.1944/0.1944, allocations: 46.1 MB / 344.9 MB, free: 11.5 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001259/0.001259, allocations: 67.88 kB / 419 MB, free: 19.02 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09526/0.09653, allocations: 62.45 MB / 481.5 MB, free: 4.527 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.Test01RegFun3): time 0.0015/0.09806, allocations: 494.8 kB / 481.9 MB, free: 4.043 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001497/0.09957, allocations: 1.403 MB / 483.3 MB, free: 2.625 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.839e-05/0.0996, allocations: 0 / 483.3 MB, free: 2.625 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.249e-05/0.09963, allocations: 0 / 483.3 MB, free: 2.625 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 1.757e-05/0.09965, allocations: 0 / 483.3 MB, free: 2.625 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005963/0.1002, allocations: 227.3 kB / 483.6 MB, free: 2.406 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 3.87e-05/0.1003, allocations: 15.98 kB / 483.6 MB, free: 2.391 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.502e-05/0.1003, allocations: 4 kB / 483.6 MB, free: 2.387 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.418e-05/0.1004, allocations: 4 kB / 483.6 MB, free: 2.383 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.902e-05/0.1004, allocations: 7.984 kB / 483.6 MB, free: 2.375 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.062e-05/0.1004, allocations: 0 / 483.6 MB, free: 2.375 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003833/0.1008, allocations: 283.5 kB / 483.9 MB, free: 2.098 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.159e-05/0.1008, allocations: 3.938 kB / 483.9 MB, free: 2.094 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 1.701e-05/0.1008, allocations: 4 kB / 483.9 MB, free: 2.09 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001853/0.101, allocations: 143.7 kB / 484 MB, free: 1.949 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.286e-06/0.101, allocations: 0 / 484 MB, free: 1.949 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.313e-06/0.1011, allocations: 4 kB / 484 MB, free: 1.945 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.018e-06/0.1011, allocations: 4 kB / 484 MB, free: 1.941 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.0003003/0.1014, allocations: 331.6 kB / 484.4 MB, free: 1.57 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.916e-05/0.1014, allocations: 12.03 kB / 484.4 MB, free: 1.559 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.43e-05/0.1014, allocations: 4.875 kB / 484.4 MB, free: 1.555 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.181e-05/0.1015, allocations: 164.4 kB / 484.5 MB, free: 1.355 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.684e-06/0.1015, allocations: 384 / 484.5 MB, free: 1.355 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.054e-05/0.1016, allocations: 4.375 kB / 484.5 MB, free: 1.352 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.535e-05/0.1016, allocations: 41.89 kB / 484.6 MB, free: 1.305 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.741e-06/0.1017, allocations: 0 / 484.6 MB, free: 1.305 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.384e-06/0.1017, allocations: 0 / 484.6 MB, free: 1.305 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.637e-06/0.1017, allocations: 4 kB / 484.6 MB, free: 1.301 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.65e-05/0.1017, allocations: 0 / 484.6 MB, free: 1.301 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001195/0.1018, allocations: 153.7 kB / 484.7 MB, free: 1.102 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.267e-05/0.1019, allocations: 14.58 kB / 484.7 MB, free: 1.078 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.408e-05/0.1019, allocations: 8.922 kB / 484.8 MB, free: 1.066 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.837e-06/0.1019, allocations: 4 kB / 484.8 MB, free: 1.062 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.084e-05/0.1019, allocations: 38.44 kB / 484.8 MB, free: 1.016 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 8.82e-07/0.1019, allocations: 0 / 484.8 MB, free: 1.016 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001044/0.102, allocations: 45.59 kB / 484.8 MB, free: 0.9648 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.101e-05/0.1021, allocations: 51.41 kB / 484.9 MB, free: 0.9023 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.351e-05/0.1021, allocations: 93.86 kB / 485 MB, free: 0.8008 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.161e-05/0.1021, allocations: 25.7 kB / 485 MB, free: 0.7695 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.04e-05/0.1022, allocations: 84.39 kB / 485.1 MB, free: 0.6836 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.613e-05/0.1022, allocations: 0 / 485.1 MB, free: 0.6836 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.721e-05/0.1022, allocations: 21.7 kB / 485.1 MB, free: 0.6562 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 8.51e-05/0.1023, allocations: 310.8 kB / 485.4 MB, free: 352 kB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.168e-06/0.1023, allocations: 0 / 485.4 MB, free: 352 kB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.544e-06/0.1023, allocations: 0 / 485.4 MB, free: 352 kB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.078e-05/0.1024, allocations: 12.8 kB / 485.4 MB, free: 336 kB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.523e-06/0.1024, allocations: 0 / 485.4 MB, free: 336 kB / 350.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 5.102e-05/0.1024, allocations: 41.75 kB / 485.5 MB, free: 288 kB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.084e-05/0.1024, allocations: 7.938 kB / 485.5 MB, free: 280 kB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.045e-05/0.1025, allocations: 0 / 485.5 MB, free: 280 kB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.074e-05/0.1025, allocations: 4 kB / 485.5 MB, free: 276 kB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.439e-05/0.1025, allocations: 0 / 485.5 MB, free: 276 kB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.437e-06/0.1025, allocations: 0 / 485.5 MB, free: 276 kB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.357e-05/0.1026, allocations: 4 kB / 485.5 MB, free: 272 kB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.56e-06/0.1026, allocations: 0 / 485.5 MB, free: 272 kB / 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 5.823e-05/0.1026, allocations: 109.8 kB / 485.6 MB, free: 152 kB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.057e-06/0.1026, allocations: 7.969 kB / 485.6 MB, free: 144 kB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.935e-05/0.1027, allocations: 56.67 kB / 485.7 MB, free: 84 kB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.753e-06/0.1028, allocations: 0 / 485.7 MB, free: 84 kB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.308e-06/0.1028, allocations: 0 / 485.7 MB, free: 84 kB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.136e-06/0.1028, allocations: 7.938 kB / 485.7 MB, free: 76 kB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.07e-05/0.1029, allocations: 149.7 kB / 485.8 MB, free: 15.88 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.498e-06/0.1029, allocations: 3.938 kB / 485.8 MB, free: 15.88 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.01e-07/0.1029, allocations: 4.031 kB / 485.8 MB, free: 15.87 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.464e-06/0.1029, allocations: 7.938 kB / 485.8 MB, free: 15.86 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.689e-06/0.1029, allocations: 0 / 485.8 MB, free: 15.86 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.12e-07/0.1029, allocations: 0 / 485.8 MB, free: 15.86 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.51e-07/0.1029, allocations: 0 / 485.8 MB, free: 15.86 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.389e-05/0.103, allocations: 68.97 kB / 485.9 MB, free: 15.78 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.34e-05/0.103, allocations: 81.05 kB / 486 MB, free: 15.68 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.506e-06/0.103, allocations: 0 / 486 MB, free: 15.68 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.594e-05/0.1031, allocations: 8.031 kB / 486 MB, free: 15.67 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.298e-05/0.1031, allocations: 0 / 486 MB, free: 15.67 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.696e-06/0.1031, allocations: 0 / 486 MB, free: 15.67 MB / 366.1 MB Notification: Performance of sorting global known variables: time 3.119e-05/0.1032, allocations: 83.27 kB / 486.1 MB, free: 15.59 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1032, allocations: 0 / 486.1 MB, free: 15.59 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0002164/0.1034, allocations: 36 kB / 486.1 MB, free: 15.55 MB / 366.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.0002278/0.1036, allocations: 139.2 kB / 486.2 MB, free: 15.41 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 5.431e-05/0.1037, allocations: 8.094 kB / 486.2 MB, free: 15.4 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.543e-06/0.1037, allocations: 0 / 486.2 MB, free: 15.4 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 2.855e-05/0.1037, allocations: 33.64 kB / 486.3 MB, free: 15.36 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001263/0.1039, allocations: 4 kB / 486.3 MB, free: 15.36 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001655/0.104, allocations: 84.94 kB / 486.4 MB, free: 15.25 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001927/0.1042, allocations: 0.6768 MB / 487 MB, free: 14.54 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 1.209e-05/0.1043, allocations: 0 / 487 MB, free: 14.54 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.063e-05/0.1043, allocations: 11.56 kB / 487 MB, free: 14.53 MB / 366.1 MB Notification: Performance of SimCode: time 2.11e-07/0.1043, allocations: 0 / 487 MB, free: 14.53 MB / 366.1 MB Notification: Performance of Templates: time 0.002652/0.1069, allocations: 1.096 MB / 488.1 MB, free: 13.44 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 -s gbode -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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Fluid/TestUtilities/Test01RegFun3/Test01RegFun3.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.Test01RegFun3.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches