Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_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.001962/0.001962, allocations: 92.31 kB / 20.96 MB, free: 3.473 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.002341/0.002341, allocations: 161.7 kB / 24.27 MB, free: 172 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.506/1.506, allocations: 177.1 MB / 204.6 MB, free: 5.605 MB / 186.7 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.3255/0.3255, allocations: 32.8 MB / 293.9 MB, free: 1.191 MB / 266.7 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+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_4.0.0_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_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegFunctions") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 4.338e-06/4.338e-06, allocations: 4 kB / 375.2 MB, free: 5.012 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.167e-05/3.601e-05, allocations: 9.203 kB / 375.2 MB, free: 5.004 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.TestRegFunctions): time 0.001669/0.001705, allocations: 0.5244 MB / 375.8 MB, free: 4.477 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.0004505/0.002155, allocations: 147.4 kB / 375.9 MB, free: 4.332 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.909e-05/0.002184, allocations: 4 kB / 375.9 MB, free: 4.328 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 1.523e-05/0.002199, allocations: 7.938 kB / 375.9 MB, free: 4.32 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002868/0.002486, allocations: 35.77 kB / 376 MB, free: 4.285 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 4.047e-06/0.00249, allocations: 0 / 376 MB, free: 4.285 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 6.57e-05/0.002556, allocations: 19.92 kB / 376 MB, free: 4.266 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 5.141e-05/0.002607, allocations: 7.938 kB / 376 MB, free: 4.258 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 3.783e-05/0.002645, allocations: 11.98 kB / 376 MB, free: 4.246 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 6.666e-05/0.002712, allocations: 11.92 kB / 376 MB, free: 4.234 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 1.288e-05/0.002725, allocations: 0 / 376 MB, free: 4.234 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001354/0.00286, allocations: 47.94 kB / 376.1 MB, free: 4.188 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 1.959e-05/0.00288, allocations: 15.92 kB / 376.1 MB, free: 4.172 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 2.226e-05/0.002902, allocations: 4 kB / 376.1 MB, free: 4.168 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001398/0.003042, allocations: 47.81 kB / 376.1 MB, free: 4.121 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.783e-06/0.003044, allocations: 0 / 376.1 MB, free: 4.121 MB / 346.7 MB Notification: Performance of FrontEnd: time 4.61e-07/0.003044, allocations: 0 / 376.1 MB, free: 4.121 MB / 346.7 MB Notification: Performance of Transformations before backend: time 3.567e-06/0.003048, allocations: 0 / 376.1 MB, free: 4.121 MB / 346.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.0003659/0.003413, allocations: 266.2 kB / 376.4 MB, free: 3.828 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.613e-05/0.00345, allocations: 8.031 kB / 376.4 MB, free: 3.82 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.354e-05/0.003503, allocations: 12.89 kB / 376.4 MB, free: 3.809 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001207/0.003624, allocations: 109.7 kB / 376.5 MB, free: 3.676 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.224e-05/0.003636, allocations: 384 / 376.5 MB, free: 3.676 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.154e-05/0.003648, allocations: 8.375 kB / 376.5 MB, free: 3.668 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001441/0.003792, allocations: 62.23 kB / 376.6 MB, free: 3.602 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.566e-06/0.0038, allocations: 192 / 376.6 MB, free: 3.602 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.104e-05/0.003811, allocations: 384 / 376.6 MB, free: 3.602 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.268e-06/0.003816, allocations: 384 / 376.6 MB, free: 3.602 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001234/0.003939, allocations: 59.83 kB / 376.6 MB, free: 3.543 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001903/0.004129, allocations: 113.3 kB / 376.8 MB, free: 3.402 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001613/0.004291, allocations: 74.55 kB / 376.8 MB, free: 3.32 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.071e-05/0.004351, allocations: 28.84 kB / 376.9 MB, free: 3.289 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002487/0.0046, allocations: 23.98 kB / 376.9 MB, free: 3.266 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.79e-05/0.004638, allocations: 30.56 kB / 376.9 MB, free: 3.227 MB / 346.7 MB Notification: Performance of pre-optimization done (n=10): time 9.92e-07/0.004639, allocations: 0 / 376.9 MB, free: 3.227 MB / 346.7 MB Notification: Performance of matching and sorting (n=10): time 0.0002884/0.004927, allocations: 113.8 kB / 377 MB, free: 3.109 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.829e-05/0.004976, allocations: 55.34 kB / 377.1 MB, free: 3.043 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001012/0.005077, allocations: 101.7 kB / 377.2 MB, free: 2.934 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 2.242e-05/0.005099, allocations: 25.7 kB / 377.2 MB, free: 2.902 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.949e-05/0.005149, allocations: 80.14 kB / 377.3 MB, free: 2.82 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.622e-05/0.005205, allocations: 39.69 kB / 377.3 MB, free: 2.781 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.329e-05/0.005248, allocations: 21.84 kB / 377.3 MB, free: 2.754 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001863/0.005435, allocations: 318.8 kB / 377.6 MB, free: 2.434 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.341e-05/0.005478, allocations: 20 kB / 377.7 MB, free: 2.414 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.804e-05/0.005516, allocations: 15.98 kB / 377.7 MB, free: 2.398 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.11e-05/0.005607, allocations: 48.86 kB / 377.7 MB, free: 2.348 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.513e-06/0.005609, allocations: 3.938 kB / 377.7 MB, free: 2.344 MB / 346.7 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001527/0.005761, allocations: 85.67 kB / 377.8 MB, free: 2.254 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.349e-05/0.005775, allocations: 4 kB / 377.8 MB, free: 2.25 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.919e-06/0.00578, allocations: 0 / 377.8 MB, free: 2.25 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.796e-05/0.005798, allocations: 0 / 377.8 MB, free: 2.25 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001111/0.005909, allocations: 23.94 kB / 377.8 MB, free: 2.227 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.629e-06/0.005913, allocations: 4 kB / 377.9 MB, free: 2.223 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.209e-05/0.005945, allocations: 11.83 kB / 377.9 MB, free: 2.211 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.304e-05/0.005959, allocations: 7.984 kB / 377.9 MB, free: 2.203 MB / 346.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 9.985e-05/0.006058, allocations: 109.8 kB / 378 MB, free: 2.086 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.668e-05/0.006075, allocations: 4 kB / 378 MB, free: 2.082 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002107/0.006286, allocations: 102.2 kB / 378.1 MB, free: 1.98 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.295e-06/0.006288, allocations: 0 / 378.1 MB, free: 1.98 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.868e-06/0.006292, allocations: 0 / 378.1 MB, free: 1.98 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.43e-06/0.006297, allocations: 3.938 kB / 378.1 MB, free: 1.977 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001458/0.006443, allocations: 129.2 kB / 378.2 MB, free: 1.82 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.092e-06/0.006444, allocations: 4 kB / 378.2 MB, free: 1.816 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.988e-05/0.006514, allocations: 12 kB / 378.2 MB, free: 1.805 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.643e-06/0.006516, allocations: 0 / 378.2 MB, free: 1.805 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.017e-05/0.006526, allocations: 4 kB / 378.2 MB, free: 1.801 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.192e-06/0.006527, allocations: 0 / 378.2 MB, free: 1.801 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.002e-06/0.006533, allocations: 7.922 kB / 378.2 MB, free: 1.793 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001844/0.006718, allocations: 117.1 kB / 378.4 MB, free: 1.66 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.256e-05/0.00673, allocations: 11.89 kB / 378.4 MB, free: 1.648 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.196e-05/0.006742, allocations: 0 / 378.4 MB, free: 1.648 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.877e-05/0.006771, allocations: 4 kB / 378.4 MB, free: 1.645 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.91e-05/0.00679, allocations: 11.92 kB / 378.4 MB, free: 1.633 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.766e-06/0.006799, allocations: 11.94 kB / 378.4 MB, free: 1.621 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0002554/0.007054, allocations: 75.28 kB / 378.5 MB, free: 1.547 MB / 346.7 MB Notification: Performance of sort global known variables: time 8e-08/0.007054, allocations: 0 / 378.5 MB, free: 1.547 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0002156/0.00727, allocations: 23.92 kB / 378.5 MB, free: 1.523 MB / 346.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 0.0001679/0.007438, allocations: 107.2 kB / 378.6 MB, free: 1.406 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0001424/0.00758, allocations: 55.91 kB / 378.6 MB, free: 1.352 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.854e-06/0.007582, allocations: 0 / 378.6 MB, free: 1.352 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 4.899e-05/0.007631, allocations: 23.94 kB / 378.7 MB, free: 1.328 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001494/0.00778, allocations: 12.09 kB / 378.7 MB, free: 1.316 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003771/0.008157, allocations: 136.6 kB / 378.8 MB, free: 1.156 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.092e-05/0.008228, allocations: 67.34 kB / 378.9 MB, free: 1.07 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 3.778e-05/0.008266, allocations: 7.984 kB / 378.9 MB, free: 1.062 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.457e-05/0.0083, allocations: 12.5 kB / 378.9 MB, free: 1.051 MB / 346.7 MB Notification: Performance of SimCode: time 4.2e-07/0.008301, allocations: 0 / 378.9 MB, free: 1.051 MB / 346.7 MB Notification: Performance of Templates: time 0.003237/0.01154, allocations: 0.6476 MB / 379.5 MB, free: 420 kB / 346.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegFunctions.makefile [Timeout 660] (rm -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegFunctions.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegFunctions.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegFunctions.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegFunctions.sim & ./ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegFunctions -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegFunctions.pipe 2>&1) [Timeout 480] diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegFunctions_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Fluid/TestUtilities/TestRegFunctions/TestRegFunctions.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegFunctions.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 4.732185692060739]