Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Fluid.TestUtilities.TestRegFunctions.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.000998/0.000998, allocations: 77 kB / 20.65 MB, free: 3.848 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001215/0.001215, allocations: 177 kB / 24.06 MB, free: 456 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 0.8962/0.8962, allocations: 158.6 MB / 186 MB, free: 2.402 MB / 170.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.1273/0.1273, allocations: 32.38 MB / 270.7 MB, free: 14.51 MB / 266.7 MB " [Timeout remaining time 180] Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(ModelicaTest.Fluid.TestUtilities.TestRegFunctions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|x|sqrtx|sqrtx_a|x2|x2_a|x3|x3_a|sqrtxerr|x2err|x3err",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Fluid.TestUtilities.TestRegFunctions") translateModel(ModelicaTest.Fluid.TestUtilities.TestRegFunctions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|x|sqrtx|sqrtx_a|x2|x2_a|x3|x3_a|sqrtxerr|x2err|x3err",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Fluid.TestUtilities.TestRegFunctions") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.523e-06/1.523e-06, allocations: 0 / 348.2 MB, free: 9.152 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.492e-05/1.644e-05, allocations: 2.312 kB / 348.2 MB, free: 9.148 MB / 282.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.TestRegFunctions): time 0.0009344/0.0009508, allocations: 0.5882 MB / 348.7 MB, free: 8.562 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.0002137/0.001165, allocations: 115.5 kB / 348.9 MB, free: 8.449 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.455e-05/0.001189, allocations: 0 / 348.9 MB, free: 8.449 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 1.508e-05/0.001204, allocations: 0 / 348.9 MB, free: 8.449 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001936/0.001398, allocations: 35.83 kB / 348.9 MB, free: 8.414 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 2.635e-06/0.0014, allocations: 4 kB / 348.9 MB, free: 8.41 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 3.758e-05/0.001438, allocations: 23.86 kB / 348.9 MB, free: 8.387 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.534e-05/0.001473, allocations: 4 kB / 348.9 MB, free: 8.383 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 3.059e-05/0.001504, allocations: 11.98 kB / 348.9 MB, free: 8.371 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 5.145e-05/0.001555, allocations: 11.92 kB / 348.9 MB, free: 8.359 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 1.107e-05/0.001566, allocations: 0 / 348.9 MB, free: 8.359 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00011/0.001676, allocations: 51.88 kB / 349 MB, free: 8.309 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 1.296e-05/0.001689, allocations: 11.92 kB / 349 MB, free: 8.297 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 9.849e-06/0.001699, allocations: 4 kB / 349 MB, free: 8.293 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 8.583e-05/0.001785, allocations: 47.75 kB / 349.1 MB, free: 8.246 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.375e-06/0.001787, allocations: 3.984 kB / 349.1 MB, free: 8.242 MB / 282.7 MB Notification: Performance of FrontEnd: time 5.41e-07/0.001788, allocations: 4 kB / 349.1 MB, free: 8.238 MB / 282.7 MB Notification: Performance of Transformations before backend: time 2.865e-06/0.001791, allocations: 0 / 349.1 MB, free: 8.238 MB / 282.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 10 * Number of variables: 10 Notification: Performance of Generate backend data structure: time 0.0001604/0.001951, allocations: 360.6 kB / 349.4 MB, free: 7.848 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.57e-05/0.001987, allocations: 12.03 kB / 349.4 MB, free: 7.836 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.394e-05/0.002011, allocations: 12.89 kB / 349.4 MB, free: 7.824 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 3.919e-05/0.00205, allocations: 104.6 kB / 349.5 MB, free: 7.695 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.474e-06/0.002058, allocations: 4.375 kB / 349.6 MB, free: 7.691 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.13e-06/0.002063, allocations: 384 / 349.6 MB, free: 7.691 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 5.739e-05/0.00212, allocations: 54.17 kB / 349.6 MB, free: 7.633 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.33e-06/0.002125, allocations: 4.188 kB / 349.6 MB, free: 7.629 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.36e-06/0.002131, allocations: 8.375 kB / 349.6 MB, free: 7.621 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.707e-06/0.002134, allocations: 384 / 349.6 MB, free: 7.621 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.437e-05/0.002179, allocations: 35.89 kB / 349.7 MB, free: 7.586 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 7.319e-05/0.002252, allocations: 113.2 kB / 349.8 MB, free: 7.449 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 6.331e-05/0.002315, allocations: 71.06 kB / 349.8 MB, free: 7.367 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.561e-05/0.002341, allocations: 27.67 kB / 349.9 MB, free: 7.336 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001336/0.002474, allocations: 19.98 kB / 349.9 MB, free: 7.316 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.816e-05/0.002493, allocations: 33.39 kB / 349.9 MB, free: 7.273 MB / 282.7 MB Notification: Performance of pre-optimization done (n=10): time 1.162e-06/0.002494, allocations: 7.938 kB / 349.9 MB, free: 7.266 MB / 282.7 MB Notification: Performance of matching and sorting (n=10): time 0.0001536/0.002647, allocations: 90.03 kB / 350 MB, free: 7.172 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.81e-05/0.002665, allocations: 55.41 kB / 350.1 MB, free: 7.105 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.795e-05/0.002703, allocations: 153.9 kB / 350.2 MB, free: 6.938 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 6.312e-06/0.00271, allocations: 29.7 kB / 350.2 MB, free: 6.902 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 1.194e-05/0.002722, allocations: 126.9 kB / 350.4 MB, free: 6.773 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.628e-05/0.002748, allocations: 31.69 kB / 350.4 MB, free: 6.742 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.317e-05/0.002771, allocations: 31.36 kB / 350.4 MB, free: 6.703 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 4.077e-05/0.002812, allocations: 0.4922 MB / 350.9 MB, free: 6.199 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.143e-05/0.002823, allocations: 12.12 kB / 350.9 MB, free: 6.188 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.272e-05/0.002836, allocations: 23.95 kB / 351 MB, free: 6.164 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.965e-05/0.002866, allocations: 39.67 kB / 351 MB, free: 6.121 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.482e-06/0.002867, allocations: 0 / 351 MB, free: 6.121 MB / 282.7 MB Notification: Performance of matching and sorting (n=10) (initialization): time 5.445e-05/0.002922, allocations: 81.59 kB / 351.1 MB, free: 6.035 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.819e-06/0.002931, allocations: 4 kB / 351.1 MB, free: 6.031 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.178e-06/0.002936, allocations: 0 / 351.1 MB, free: 6.031 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.085e-05/0.002946, allocations: 4 kB / 351.1 MB, free: 6.027 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.213e-05/0.002999, allocations: 12 kB / 351.1 MB, free: 6.016 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.224e-06/0.003001, allocations: 0 / 351.1 MB, free: 6.016 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.294e-05/0.003014, allocations: 3.953 kB / 351.1 MB, free: 6.012 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.95e-06/0.003019, allocations: 15.92 kB / 351.1 MB, free: 5.996 MB / 282.7 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 (10): * Single equations (assignments): 10 * 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 3.621e-05/0.003055, allocations: 160.5 kB / 351.3 MB, free: 5.828 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.952e-06/0.003061, allocations: 4 kB / 351.3 MB, free: 5.824 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.27e-05/0.003144, allocations: 85.64 kB / 351.4 MB, free: 5.738 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.162e-06/0.003145, allocations: 3.938 kB / 351.4 MB, free: 5.734 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.613e-06/0.003146, allocations: 0 / 351.4 MB, free: 5.734 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.557e-06/0.00315, allocations: 0 / 351.4 MB, free: 5.734 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 5.07e-05/0.003201, allocations: 121.1 kB / 351.5 MB, free: 5.59 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.62e-07/0.003202, allocations: 4 kB / 351.5 MB, free: 5.586 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.596e-05/0.003228, allocations: 12 kB / 351.5 MB, free: 5.574 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.42e-07/0.003228, allocations: 4 kB / 351.5 MB, free: 5.57 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.619e-06/0.003233, allocations: 4 kB / 351.5 MB, free: 5.566 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.031e-06/0.003234, allocations: 3.984 kB / 351.5 MB, free: 5.562 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.61e-07/0.003234, allocations: 4 kB / 351.5 MB, free: 5.559 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 5.68e-05/0.003291, allocations: 112.3 kB / 351.6 MB, free: 5.426 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.409e-06/0.003296, allocations: 7.953 kB / 351.6 MB, free: 5.418 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.284e-06/0.003303, allocations: 3.938 kB / 351.6 MB, free: 5.414 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.215e-06/0.003311, allocations: 0 / 351.6 MB, free: 5.414 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.188e-05/0.003323, allocations: 7.984 kB / 351.6 MB, free: 5.406 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.055e-06/0.003326, allocations: 8 kB / 351.6 MB, free: 5.398 MB / 282.7 MB Notification: Performance of sorting global known variables: time 1.366e-05/0.00334, allocations: 123.2 kB / 351.8 MB, free: 5.277 MB / 282.7 MB Notification: Performance of sort global known variables: time 5e-08/0.00334, allocations: 0 / 351.8 MB, free: 5.277 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0001171/0.003457, allocations: 12 kB / 351.8 MB, free: 5.266 MB / 282.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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (10): * Single equations (assignments): 10 * 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 Backend phase and start with SimCode phase: time 8.315e-05/0.00354, allocations: 119.1 kB / 351.9 MB, free: 5.141 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 6.338e-05/0.003603, allocations: 47.66 kB / 351.9 MB, free: 5.09 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 9.42e-07/0.003604, allocations: 0 / 351.9 MB, free: 5.09 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 1.597e-05/0.00362, allocations: 32.27 kB / 352 MB, free: 5.055 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 9.209e-05/0.003712, allocations: 7.938 kB / 352 MB, free: 5.047 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001697/0.003882, allocations: 138.5 kB / 352.1 MB, free: 4.883 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 1.774e-05/0.0039, allocations: 59.3 kB / 352.2 MB, free: 4.805 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 1.948e-05/0.003919, allocations: 4 kB / 352.2 MB, free: 4.801 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.786e-05/0.003947, allocations: 82.19 kB / 352.3 MB, free: 4.719 MB / 282.7 MB Notification: Performance of SimCode: time 3.9e-07/0.003948, allocations: 0 / 352.3 MB, free: 4.719 MB / 282.7 MB Notification: Performance of Templates: time 0.001864/0.005812, allocations: 0.7126 MB / 353 MB, free: 4.008 MB / 282.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_3.2.3_ModelicaTest.Fluid.TestUtilities.TestRegFunctions.makefile [Timeout 660] (rm -f ModelicaTest_3.2.3_ModelicaTest.Fluid.TestUtilities.TestRegFunctions.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Fluid.TestUtilities.TestRegFunctions.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Fluid.TestUtilities.TestRegFunctions.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Fluid.TestUtilities.TestRegFunctions.sim & ./ModelicaTest_3.2.3_ModelicaTest.Fluid.TestUtilities.TestRegFunctions -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.Fluid.TestUtilities.TestRegFunctions.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Fluid.TestUtilities.TestRegFunctions_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Fluid/TestUtilities/TestRegFunctions/TestRegFunctions.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.690635018981993]