Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Utilities.TestInternal.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001053/0.001053, allocations: 77.36 kB / 10 MB, free: 0.6836 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.004699/0.005751, allocations: 445.8 kB / 10.44 MB, free: 256 kB / 10.45 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001097/0.001097, allocations: 148.9 kB / 11.34 MB, free: 2.836 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001705/0.002802, allocations: 475.6 kB / 11.8 MB, free: 2.367 MB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 0.9365/0.9365, allocations: 173.4 MB / 186 MB, free: 7.535 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.1765/1.113, allocations: 52.49 MB / 238.5 MB, free: 7.629 MB / 234.7 MB " [Timeout remaining time 179] 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.1516/0.1516, allocations: 32.8 MB / 272 MB, free: 6.297 MB / 266.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.04244/0.1941, allocations: 12.53 MB / 284.5 MB, free: 9.719 MB / 282.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.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(ModelicaTest.Utilities.TestInternal,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Utilities.TestInternal") translateModel(ModelicaTest.Utilities.TestInternal,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Utilities.TestInternal") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.814e-06/1.814e-06, allocations: 0 / 285.8 MB, free: 8.461 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.766e-05/2.948e-05, allocations: 9.266 kB / 285.8 MB, free: 8.453 MB / 282.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestInternal): time 0.001496/0.001526, allocations: 0.548 MB / 286.4 MB, free: 7.906 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.0004552/0.001981, allocations: 277.8 kB / 286.6 MB, free: 7.637 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.726e-05/0.001998, allocations: 0 / 286.6 MB, free: 7.637 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 4.819e-06/0.002003, allocations: 4 kB / 286.6 MB, free: 7.633 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 1.253e-06/0.002005, allocations: 0 / 286.6 MB, free: 7.633 MB / 282.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/Utilities.mo:399:3-454:15:writable] Warning: Pure function 'ModelicaTest.Utilities.Internal' contains a call to impure function 'Modelica.Utilities.Streams.print'. Notification: Performance of NFTyping.typeClassSections: time 0.000207/0.002212, allocations: 47.7 kB / 286.7 MB, free: 7.586 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 7.584e-05/0.002287, allocations: 4 kB / 286.7 MB, free: 7.582 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.963e-05/0.002337, allocations: 7.938 kB / 286.7 MB, free: 7.574 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 5.315e-05/0.00239, allocations: 4 kB / 286.7 MB, free: 7.57 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 4.536e-05/0.002436, allocations: 0 / 286.7 MB, free: 7.57 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 1.172e-05/0.002447, allocations: 0 / 286.7 MB, free: 7.57 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001739/0.002621, allocations: 67.88 kB / 286.8 MB, free: 7.504 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 1.307e-05/0.002634, allocations: 0 / 286.8 MB, free: 7.504 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 1.559e-05/0.00265, allocations: 4 kB / 286.8 MB, free: 7.5 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001348/0.002785, allocations: 63.77 kB / 286.8 MB, free: 7.438 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.135e-05/0.002806, allocations: 0 / 286.8 MB, free: 7.438 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.082e-06/0.002807, allocations: 0 / 286.8 MB, free: 7.438 MB / 282.7 MB Notification: Performance of Transformations before backend: time 1.112e-05/0.002818, allocations: 0 / 286.8 MB, free: 7.438 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: 1 * Number of variables: 1 Notification: Performance of Generate backend data structure: time 0.0003237/0.003142, allocations: 266.2 kB / 287.1 MB, free: 7.145 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.305e-05/0.003185, allocations: 8.031 kB / 287.1 MB, free: 7.137 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.69e-05/0.003232, allocations: 0.9375 kB / 287.1 MB, free: 7.137 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.339e-05/0.003305, allocations: 109.8 kB / 287.2 MB, free: 7.004 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.012e-05/0.003315, allocations: 384 / 287.2 MB, free: 7.004 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.275e-06/0.003324, allocations: 384 / 287.2 MB, free: 7.004 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.023e-05/0.003404, allocations: 67.95 kB / 287.3 MB, free: 6.926 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.626e-06/0.003412, allocations: 192 / 287.3 MB, free: 6.926 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.712e-06/0.003419, allocations: 384 / 287.3 MB, free: 6.926 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.031e-06/0.003425, allocations: 384 / 287.3 MB, free: 6.926 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.139e-05/0.003447, allocations: 37.58 kB / 287.3 MB, free: 6.883 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 9.201e-05/0.003539, allocations: 53.05 kB / 287.4 MB, free: 6.816 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.843e-05/0.003587, allocations: 44.31 kB / 287.4 MB, free: 6.758 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.961e-05/0.003607, allocations: 30.56 kB / 287.4 MB, free: 6.719 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.921e-06/0.003613, allocations: 4.062 kB / 287.4 MB, free: 6.715 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.007e-05/0.003663, allocations: 60.25 kB / 287.5 MB, free: 6.641 MB / 282.7 MB Notification: Performance of pre-optimization done (n=1): time 7.31e-07/0.003663, allocations: 4 kB / 287.5 MB, free: 6.637 MB / 282.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001475/0.003811, allocations: 114.8 kB / 287.6 MB, free: 6.5 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.491e-05/0.003876, allocations: 162.2 kB / 287.8 MB, free: 6.305 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.6e-05/0.003912, allocations: 93.8 kB / 287.9 MB, free: 6.203 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 1.05e-05/0.003922, allocations: 25.7 kB / 287.9 MB, free: 6.172 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.071e-05/0.003943, allocations: 84.14 kB / 288 MB, free: 6.086 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.265e-05/0.003966, allocations: 0 / 288 MB, free: 6.086 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.737e-05/0.003993, allocations: 13.7 kB / 288 MB, free: 6.066 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001216/0.004115, allocations: 318.8 kB / 288.3 MB, free: 5.746 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.383e-05/0.004138, allocations: 25.7 kB / 288.3 MB, free: 5.715 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.762e-05/0.004156, allocations: 33.83 kB / 288.4 MB, free: 5.676 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.377e-05/0.00421, allocations: 64.25 kB / 288.4 MB, free: 5.598 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.89e-06/0.004215, allocations: 7.938 kB / 288.4 MB, free: 5.59 MB / 282.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.723e-05/0.004282, allocations: 81.11 kB / 288.5 MB, free: 5.492 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.501e-05/0.004337, allocations: 33.69 kB / 288.5 MB, free: 5.453 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.454e-06/0.004344, allocations: 4 kB / 288.5 MB, free: 5.449 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.714e-05/0.004362, allocations: 0 / 288.5 MB, free: 5.449 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.026e-06/0.004365, allocations: 0 / 288.5 MB, free: 5.449 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.432e-06/0.004371, allocations: 0 / 288.5 MB, free: 5.449 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.341e-05/0.004394, allocations: 96 / 288.5 MB, free: 5.449 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.918e-05/0.004414, allocations: 4 kB / 288.5 MB, free: 5.445 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: 1 (result) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 1 * 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.326e-05/0.004507, allocations: 143.5 kB / 288.7 MB, free: 5.289 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.637e-06/0.004516, allocations: 0 / 288.7 MB, free: 5.289 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.518e-05/0.004531, allocations: 6.953 kB / 288.7 MB, free: 5.277 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.668e-06/0.004535, allocations: 4 kB / 288.7 MB, free: 5.273 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.619e-06/0.00454, allocations: 3.984 kB / 288.7 MB, free: 5.27 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.222e-06/0.004546, allocations: 0 / 288.7 MB, free: 5.27 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 6.593e-05/0.004612, allocations: 61.84 kB / 288.8 MB, free: 5.191 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.673e-06/0.004614, allocations: 0 / 288.8 MB, free: 5.191 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.41e-07/0.004614, allocations: 0 / 288.8 MB, free: 5.191 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.39e-06/0.00462, allocations: 8 kB / 288.8 MB, free: 5.184 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.82e-07/0.004621, allocations: 0 / 288.8 MB, free: 5.184 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.701e-06/0.004626, allocations: 3.938 kB / 288.8 MB, free: 5.18 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.61e-07/0.004627, allocations: 0 / 288.8 MB, free: 5.18 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.133e-06/0.004628, allocations: 0 / 288.8 MB, free: 5.18 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.324e-05/0.004721, allocations: 116.5 kB / 288.9 MB, free: 5.035 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.276e-05/0.004734, allocations: 0 / 288.9 MB, free: 5.035 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.033e-06/0.004741, allocations: 0 / 288.9 MB, free: 5.035 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.416e-05/0.004755, allocations: 0 / 288.9 MB, free: 5.035 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.36e-06/0.004761, allocations: 11.92 kB / 288.9 MB, free: 5.023 MB / 282.7 MB Notification: Performance of sorting global known variables: time 8.236e-06/0.004769, allocations: 4.891 kB / 288.9 MB, free: 5.016 MB / 282.7 MB Notification: Performance of sort global known variables: time 7e-08/0.004769, allocations: 4 kB / 288.9 MB, free: 5.012 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0001538/0.004923, allocations: 23.94 kB / 288.9 MB, free: 4.988 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: 1 (result) * Number of discrete states: 1 (result) * 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: 1 * 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.0008851/0.005808, allocations: 378.7 kB / 289.3 MB, free: 4.75 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0001462/0.005954, allocations: 127.6 kB / 289.4 MB, free: 4.598 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 7.273e-06/0.005961, allocations: 4 kB / 289.4 MB, free: 4.594 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 3.599e-05/0.005997, allocations: 85.97 kB / 289.5 MB, free: 4.488 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 6.168e-05/0.006059, allocations: 16.11 kB / 289.5 MB, free: 4.473 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001754/0.006234, allocations: 108 kB / 289.6 MB, free: 4.332 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.076e-05/0.006265, allocations: 51.36 kB / 289.7 MB, free: 4.262 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 7.634e-06/0.006273, allocations: 7.984 kB / 289.7 MB, free: 4.254 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.316e-05/0.006316, allocations: 51.38 kB / 289.7 MB, free: 4.203 MB / 282.7 MB Notification: Performance of SimCode: time 5.01e-07/0.006316, allocations: 0 / 289.7 MB, free: 4.203 MB / 282.7 MB Notification: Performance of Templates: time 0.002857/0.009173, allocations: 0.9505 MB / 290.7 MB, free: 3.254 MB / 282.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Utilities.TestInternal.makefile [Timeout 660] (rm -f ModelicaTest_4.0.0_ModelicaTest.Utilities.TestInternal.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Utilities.TestInternal.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Utilities.TestInternal.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Utilities.TestInternal.sim & ./ModelicaTest_4.0.0_ModelicaTest.Utilities.TestInternal -abortSlowSimulation -alarm=240 -emit_protected -ignoreHideResult -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Utilities.TestInternal.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Utilities.TestInternal_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Utilities/TestInternal/TestInternal.csv","",relTol=0.003,relTolDiffMinMax=0.003,tube=OpenModelica.Scripting.TubeAlgorithm.rectangle) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.7243917929008603]