Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.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.001792/0.001792, allocations: 113.2 kB / 20.43 MB, free: 1.449 MB / 14.72 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.002099/0.002099, allocations: 211.9 kB / 23.74 MB, free: 4.656 MB / 14.72 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.494/1.494, allocations: 230.6 MB / 257.5 MB, free: 8 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo): time 0.2293/0.2293, allocations: 46.93 MB / 360.8 MB, free: 4.242 MB / 286.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.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.1.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.1.0_ModelicaTest.Fluid.TestUtilities.TestRegFunctions") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002229/0.002229, allocations: 63.89 kB / 0.4966 GB, free: 7.375 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.325/0.3272, allocations: 66.04 MB / 0.5611 GB, free: 4.395 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.TestRegFunctions): time 0.002901/0.3301, allocations: 0.5304 MB / 0.5616 GB, free: 3.863 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007869/0.3309, allocations: 163.4 kB / 0.5618 GB, free: 3.703 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.318e-05/0.331, allocations: 7.938 kB / 0.5618 GB, free: 3.695 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 2.041e-05/0.331, allocations: 0 / 0.5618 GB, free: 3.695 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004801/0.3315, allocations: 39.77 kB / 0.5618 GB, free: 3.656 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 6.182e-06/0.3315, allocations: 0 / 0.5618 GB, free: 3.656 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 9.333e-05/0.3316, allocations: 19.98 kB / 0.5619 GB, free: 3.637 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 7.097e-05/0.3317, allocations: 0 / 0.5619 GB, free: 3.637 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.75e-05/0.3317, allocations: 19.86 kB / 0.5619 GB, free: 3.617 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.481e-05/0.3318, allocations: 11.92 kB / 0.5619 GB, free: 3.605 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 1.694e-05/0.3318, allocations: 0 / 0.5619 GB, free: 3.605 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002163/0.332, allocations: 47.95 kB / 0.5619 GB, free: 3.559 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 2.332e-05/0.332, allocations: 11.98 kB / 0.562 GB, free: 3.547 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 3.991e-05/0.3321, allocations: 15.86 kB / 0.562 GB, free: 3.531 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001884/0.3323, allocations: 43.48 kB / 0.562 GB, free: 3.492 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.517e-05/0.3323, allocations: 7.984 kB / 0.562 GB, free: 3.484 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.905e-06/0.3323, allocations: 0 / 0.562 GB, free: 3.484 MB / 398.1 MB Notification: Performance of Transformations before backend: time 7.965e-06/0.3323, allocations: 0 / 0.562 GB, free: 3.484 MB / 398.1 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.0005571/0.3329, allocations: 264.9 kB / 0.5623 GB, free: 3.195 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.337e-05/0.3329, allocations: 8.031 kB / 0.5623 GB, free: 3.188 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.394e-05/0.333, allocations: 4.938 kB / 0.5623 GB, free: 3.184 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001814/0.3332, allocations: 102.5 kB / 0.5624 GB, free: 3.059 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.807e-05/0.3332, allocations: 12.38 kB / 0.5624 GB, free: 3.047 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.988e-05/0.3332, allocations: 4.375 kB / 0.5624 GB, free: 3.043 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002254/0.3334, allocations: 58.17 kB / 0.5625 GB, free: 2.98 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.512e-05/0.3335, allocations: 192 / 0.5625 GB, free: 2.98 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.254e-05/0.3335, allocations: 3.938 kB / 0.5625 GB, free: 2.977 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.434e-06/0.3335, allocations: 4 kB / 0.5625 GB, free: 2.973 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002034/0.3337, allocations: 51.95 kB / 0.5625 GB, free: 2.922 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003421/0.334, allocations: 144.7 kB / 0.5626 GB, free: 2.738 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002643/0.3343, allocations: 78.58 kB / 0.5627 GB, free: 2.652 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000104/0.3344, allocations: 28.84 kB / 0.5627 GB, free: 2.621 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003883/0.3348, allocations: 19.98 kB / 0.5628 GB, free: 2.602 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.619e-05/0.3348, allocations: 34.5 kB / 0.5628 GB, free: 2.559 MB / 398.1 MB Notification: Performance of pre-optimization done (n=10): time 2.114e-06/0.3348, allocations: 0 / 0.5628 GB, free: 2.559 MB / 398.1 MB Notification: Performance of matching and sorting (n=10): time 0.0004179/0.3352, allocations: 105.7 kB / 0.5629 GB, free: 2.449 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.141e-05/0.3353, allocations: 59.41 kB / 0.563 GB, free: 2.379 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001222/0.3354, allocations: 93.86 kB / 0.563 GB, free: 2.277 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.091e-05/0.3355, allocations: 25.7 kB / 0.5631 GB, free: 2.246 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.544e-05/0.3355, allocations: 84.12 kB / 0.5632 GB, free: 2.16 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.299e-05/0.3356, allocations: 31.7 kB / 0.5632 GB, free: 2.129 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.687e-05/0.3357, allocations: 29.7 kB / 0.5632 GB, free: 2.094 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0002311/0.3359, allocations: 310.8 kB / 0.5635 GB, free: 1.781 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.608e-05/0.336, allocations: 19.98 kB / 0.5635 GB, free: 1.762 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.156e-05/0.3361, allocations: 24.06 kB / 0.5636 GB, free: 1.738 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001617/0.3362, allocations: 56.78 kB / 0.5636 GB, free: 1.68 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.015e-06/0.3362, allocations: 0 / 0.5636 GB, free: 1.68 MB / 398.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0002557/0.3365, allocations: 86.14 kB / 0.5637 GB, free: 1.59 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.928e-05/0.3365, allocations: 4 kB / 0.5637 GB, free: 1.586 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.005e-05/0.3365, allocations: 7.938 kB / 0.5637 GB, free: 1.578 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.885e-05/0.3365, allocations: 0 / 0.5637 GB, free: 1.578 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000175/0.3367, allocations: 16.08 kB / 0.5637 GB, free: 1.562 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.265e-06/0.3367, allocations: 3.938 kB / 0.5637 GB, free: 1.559 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.255e-05/0.3368, allocations: 7.938 kB / 0.5637 GB, free: 1.551 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.959e-06/0.3368, allocations: 4 kB / 0.5637 GB, free: 1.547 MB / 398.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 (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 0.0001455/0.3369, allocations: 117.8 kB / 0.5638 GB, free: 1.422 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.229e-05/0.337, allocations: 3.953 kB / 0.5638 GB, free: 1.418 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003393/0.3373, allocations: 105.5 kB / 0.5639 GB, free: 1.305 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.007e-06/0.3373, allocations: 0 / 0.5639 GB, free: 1.305 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.73e-06/0.3373, allocations: 0 / 0.5639 GB, free: 1.305 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.833e-05/0.3373, allocations: 11.97 kB / 0.564 GB, free: 1.293 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002262/0.3376, allocations: 140.7 kB / 0.5641 GB, free: 1.113 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.244e-06/0.3376, allocations: 4 kB / 0.5641 GB, free: 1.109 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001309/0.3377, allocations: 15.98 kB / 0.5641 GB, free: 1.094 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.556e-06/0.3377, allocations: 4 kB / 0.5641 GB, free: 1.09 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.051e-05/0.3377, allocations: 7.938 kB / 0.5641 GB, free: 1.082 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.695e-06/0.3377, allocations: 0 / 0.5641 GB, free: 1.082 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.252e-06/0.3377, allocations: 0 / 0.5641 GB, free: 1.082 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003006/0.338, allocations: 109 kB / 0.5642 GB, free: 0.957 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.069e-05/0.338, allocations: 11.92 kB / 0.5642 GB, free: 0.9453 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.721e-05/0.3381, allocations: 11.94 kB / 0.5642 GB, free: 0.9336 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.478e-05/0.3381, allocations: 0 / 0.5642 GB, free: 0.9336 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.386e-05/0.3381, allocations: 7.984 kB / 0.5643 GB, free: 0.9258 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.596e-06/0.3381, allocations: 0 / 0.5643 GB, free: 0.9258 MB / 398.1 MB Notification: Performance of sorting global known variables: time 6.146e-05/0.3382, allocations: 75.28 kB / 0.5643 GB, free: 0.8516 MB / 398.1 MB Notification: Performance of sort global known variables: time 2.21e-07/0.3382, allocations: 4 kB / 0.5643 GB, free: 0.8477 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0003806/0.3386, allocations: 12 kB / 0.5643 GB, free: 0.8359 MB / 398.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 (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.0002175/0.3388, allocations: 107.1 kB / 0.5644 GB, free: 0.7227 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0002432/0.3391, allocations: 64.12 kB / 0.5645 GB, free: 0.6602 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.557e-06/0.3391, allocations: 0 / 0.5645 GB, free: 0.6602 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000111/0.3392, allocations: 31.92 kB / 0.5645 GB, free: 0.6289 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002538/0.3394, allocations: 4 kB / 0.5645 GB, free: 0.625 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005163/0.3399, allocations: 132.9 kB / 0.5647 GB, free: 480 kB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005059/0.3404, allocations: 0.6845 MB / 0.5653 GB, free: 15.76 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 6.946e-05/0.3405, allocations: 15.77 kB / 0.5654 GB, free: 15.74 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.242e-05/0.3406, allocations: 11.44 kB / 0.5654 GB, free: 15.73 MB / 414.1 MB Notification: Performance of SimCode: time 4.81e-07/0.3406, allocations: 0 / 0.5654 GB, free: 15.73 MB / 414.1 MB Notification: Performance of Templates: time 0.005566/0.3461, allocations: 0.6928 MB / 0.566 GB, free: 15.04 MB / 414.1 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.1.0_ModelicaTest.Fluid.TestUtilities.TestRegFunctions.makefile [Timeout 660] (rm -f ModelicaTest_4.1.0_ModelicaTest.Fluid.TestUtilities.TestRegFunctions.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.Fluid.TestUtilities.TestRegFunctions.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.Fluid.TestUtilities.TestRegFunctions.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.Fluid.TestUtilities.TestRegFunctions.sim & ./ModelicaTest_4.1.0_ModelicaTest.Fluid.TestUtilities.TestRegFunctions -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0_ModelicaTest.Fluid.TestUtilities.TestRegFunctions.pipe 2>&1) [Timeout 480] diffSimulationResults("ModelicaTest_4.1.0_ModelicaTest.Fluid.TestUtilities.TestRegFunctions_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Fluid/TestUtilities/TestRegFunctions/TestRegFunctions.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.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: 5.096720722038299]