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.0009463/0.0009463, allocations: 82.64 kB / 21.42 MB, free: 3.074 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.0009257/0.0009257, allocations: 172.1 kB / 24.82 MB, free: 8.773 MB / 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 0.9398/0.9398, allocations: 177.1 MB / 205.3 MB, free: 5.527 MB / 186.7 MB " [Timeout remaining time 179] 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.2653/0.2653, allocations: 34.25 MB / 296.1 MB, free: 0.6641 MB / 266.7 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 2.865e-06/2.865e-06, allocations: 0 / 378.5 MB, free: 2.398 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.147e-05/3.433e-05, allocations: 2.312 kB / 378.5 MB, free: 2.395 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.TestRegFunctions): time 0.002382/0.002417, allocations: 0.5283 MB / 379 MB, free: 1.863 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.0006355/0.003052, allocations: 147.4 kB / 379.2 MB, free: 1.719 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.701e-05/0.003109, allocations: 0 / 379.2 MB, free: 1.719 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 2.895e-05/0.003138, allocations: 3.938 kB / 379.2 MB, free: 1.715 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000404/0.003542, allocations: 31.78 kB / 379.2 MB, free: 1.684 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 4.979e-06/0.003547, allocations: 0 / 379.2 MB, free: 1.684 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 7.242e-05/0.00362, allocations: 27.92 kB / 379.2 MB, free: 1.656 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 5.936e-05/0.003679, allocations: 7.969 kB / 379.2 MB, free: 1.648 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 4.981e-05/0.003729, allocations: 11.94 kB / 379.2 MB, free: 1.637 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 8.562e-05/0.003814, allocations: 11.92 kB / 379.3 MB, free: 1.625 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 1.756e-05/0.003832, allocations: 0 / 379.3 MB, free: 1.625 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001552/0.003987, allocations: 47.89 kB / 379.3 MB, free: 1.578 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 2.114e-05/0.004008, allocations: 15.92 kB / 379.3 MB, free: 1.562 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 1.451e-05/0.004023, allocations: 0 / 379.3 MB, free: 1.562 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001638/0.004187, allocations: 51.8 kB / 379.4 MB, free: 1.512 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.819e-06/0.004192, allocations: 0 / 379.4 MB, free: 1.512 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.563e-06/0.004193, allocations: 0 / 379.4 MB, free: 1.512 MB / 346.7 MB Notification: Performance of Transformations before backend: time 5.72e-06/0.004199, allocations: 4 kB / 379.4 MB, free: 1.508 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.0004631/0.004662, allocations: 368.5 kB / 379.7 MB, free: 1.109 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.671e-05/0.004719, allocations: 12.03 kB / 379.7 MB, free: 1.098 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.586e-05/0.004764, allocations: 4.938 kB / 379.7 MB, free: 1.094 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003149/0.007913, allocations: 108.6 kB / 379.9 MB, free: 0.9609 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.382e-05/0.007937, allocations: 4.375 kB / 379.9 MB, free: 0.957 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.782e-05/0.007955, allocations: 8.375 kB / 379.9 MB, free: 0.9492 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001426/0.008098, allocations: 54.22 kB / 379.9 MB, free: 0.8906 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.085e-05/0.008109, allocations: 192 / 379.9 MB, free: 0.8906 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.636e-06/0.008117, allocations: 384 / 379.9 MB, free: 0.8906 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.873e-06/0.008124, allocations: 4.375 kB / 379.9 MB, free: 0.8867 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.468e-05/0.008219, allocations: 43.83 kB / 380 MB, free: 0.8438 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001774/0.008396, allocations: 109.2 kB / 380.1 MB, free: 0.7109 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001486/0.008545, allocations: 75.02 kB / 380.1 MB, free: 0.625 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.098e-05/0.008586, allocations: 23.67 kB / 380.2 MB, free: 0.5977 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002794/0.008865, allocations: 31.97 kB / 380.2 MB, free: 0.5664 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.183e-05/0.008897, allocations: 37.61 kB / 380.2 MB, free: 0.5195 MB / 346.7 MB Notification: Performance of pre-optimization done (n=10): time 2.705e-06/0.0089, allocations: 4 kB / 380.2 MB, free: 0.5156 MB / 346.7 MB Notification: Performance of matching and sorting (n=10): time 0.0002232/0.009123, allocations: 85.61 kB / 380.3 MB, free: 436 kB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.732e-05/0.00916, allocations: 55.41 kB / 380.4 MB, free: 368 kB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001012/0.009261, allocations: 149.9 kB / 380.5 MB, free: 200 kB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 2e-05/0.009281, allocations: 25.7 kB / 380.5 MB, free: 168 kB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.487e-05/0.009326, allocations: 134.9 kB / 380.7 MB, free: 28 kB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.781e-05/0.009414, allocations: 39.78 kB / 380.7 MB, free: 15.98 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.033e-05/0.009464, allocations: 27.36 kB / 380.7 MB, free: 15.95 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001624/0.009627, allocations: 0.4922 MB / 381.2 MB, free: 15.45 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.13e-05/0.009658, allocations: 11.98 kB / 381.3 MB, free: 15.43 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.187e-05/0.00968, allocations: 8.125 kB / 381.3 MB, free: 15.43 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.924e-05/0.009749, allocations: 44.17 kB / 381.3 MB, free: 15.38 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.424e-06/0.009752, allocations: 0 / 381.3 MB, free: 15.38 MB / 362.7 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001353/0.009887, allocations: 73.62 kB / 381.4 MB, free: 15.3 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.214e-05/0.009909, allocations: 7.938 kB / 381.4 MB, free: 15.29 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.286e-06/0.009917, allocations: 4 kB / 381.4 MB, free: 15.29 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.73e-05/0.009935, allocations: 0 / 381.4 MB, free: 15.29 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001238/0.01006, allocations: 12 kB / 381.4 MB, free: 15.28 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.028e-06/0.01006, allocations: 0 / 381.4 MB, free: 15.28 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.278e-05/0.0101, allocations: 15.94 kB / 381.4 MB, free: 15.26 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.386e-06/0.0101, allocations: 3.938 kB / 381.4 MB, free: 15.26 MB / 362.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 0.0002718/0.01038, allocations: 164.6 kB / 381.6 MB, free: 15.09 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.616e-05/0.01039, allocations: 4 kB / 381.6 MB, free: 15.08 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003244/0.01364, allocations: 85.58 kB / 381.7 MB, free: 15 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.15e-06/0.01364, allocations: 0 / 381.7 MB, free: 15 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.595e-06/0.01364, allocations: 0 / 381.7 MB, free: 15 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.039e-06/0.01365, allocations: 0 / 381.7 MB, free: 15 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00014/0.01379, allocations: 121.1 kB / 381.8 MB, free: 14.85 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.106e-06/0.01379, allocations: 0 / 381.8 MB, free: 14.85 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.913e-05/0.01388, allocations: 15.94 kB / 381.8 MB, free: 14.84 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.37e-06/0.01389, allocations: 0 / 381.8 MB, free: 14.84 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.953e-06/0.01389, allocations: 4 kB / 381.8 MB, free: 14.83 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.033e-06/0.0139, allocations: 4 kB / 381.8 MB, free: 14.83 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.941e-06/0.01391, allocations: 7.984 kB / 381.8 MB, free: 14.82 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001705/0.01408, allocations: 112.3 kB / 381.9 MB, free: 14.69 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.544e-05/0.01409, allocations: 11.89 kB / 381.9 MB, free: 14.68 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.346e-05/0.0141, allocations: 0 / 381.9 MB, free: 14.68 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.381e-05/0.01414, allocations: 4 kB / 381.9 MB, free: 14.67 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.27e-05/0.01416, allocations: 11.97 kB / 382 MB, free: 14.66 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.743e-06/0.01417, allocations: 0 / 382 MB, free: 14.66 MB / 362.7 MB Notification: Performance of sorting global known variables: time 4.758e-05/0.01422, allocations: 119.2 kB / 382.1 MB, free: 14.54 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.81e-07/0.01422, allocations: 8.094 kB / 382.1 MB, free: 14.54 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0002336/0.01445, allocations: 19.92 kB / 382.1 MB, free: 14.52 MB / 362.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.0001907/0.01464, allocations: 103.2 kB / 382.2 MB, free: 14.4 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0001318/0.01477, allocations: 51.59 kB / 382.2 MB, free: 14.35 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.845e-06/0.01477, allocations: 0 / 382.2 MB, free: 14.35 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 4.062e-05/0.01482, allocations: 39.59 kB / 382.3 MB, free: 14.3 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001569/0.01497, allocations: 3.938 kB / 382.3 MB, free: 14.3 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003807/0.01535, allocations: 146 kB / 382.4 MB, free: 14.13 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.737e-05/0.0154, allocations: 59.36 kB / 382.5 MB, free: 14.05 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 4.954e-05/0.01545, allocations: 7.984 kB / 382.5 MB, free: 14.05 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.188e-05/0.01551, allocations: 74.2 kB / 382.6 MB, free: 13.97 MB / 362.7 MB Notification: Performance of SimCode: time 9.01e-07/0.01551, allocations: 0 / 382.6 MB, free: 13.97 MB / 362.7 MB Notification: Performance of Templates: time 0.004072/0.01958, allocations: 0.7233 MB / 383.3 MB, free: 13.25 MB / 362.7 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=240 -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0_ModelicaTest.Fluid.TestUtilities.TestRegFunctions.pipe 2>&1) [Timeout 240] 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","",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.961696637328714]