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.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.001231/0.001231, allocations: 80.8 kB / 21.5 MB, free: 2.992 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.00145/0.00145, allocations: 170 kB / 24.91 MB, free: 8.695 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 1.011/1.011, allocations: 177.1 MB / 205.3 MB, free: 5.496 MB / 186.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.2614/0.2614, allocations: 32.81 MB / 294.6 MB, free: 1.242 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.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.713e-06/1.713e-06, allocations: 0 / 323.2 MB, free: 9.699 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.701e-05/2.872e-05, allocations: 3.188 kB / 323.2 MB, free: 9.695 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestInternal): time 0.001394/0.001423, allocations: 0.5248 MB / 323.8 MB, free: 9.168 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0004695/0.001893, allocations: 259.1 kB / 324 MB, free: 8.914 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.132e-05/0.001914, allocations: 3.938 kB / 324 MB, free: 8.91 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 1.279e-05/0.001927, allocations: 0 / 324 MB, free: 8.91 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 6.252e-06/0.001933, allocations: 4 kB / 324 MB, free: 8.906 MB / 298.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.0002846/0.002218, allocations: 51.69 kB / 324.1 MB, free: 8.855 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 5.228e-05/0.00227, allocations: 0.625 kB / 324.1 MB, free: 8.855 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.786e-05/0.002308, allocations: 11.98 kB / 324.1 MB, free: 8.844 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.787e-05/0.002336, allocations: 0 / 324.1 MB, free: 8.844 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 2.537e-05/0.002361, allocations: 0 / 324.1 MB, free: 8.844 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 9.137e-06/0.00237, allocations: 0 / 324.1 MB, free: 8.844 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001499/0.00252, allocations: 67.89 kB / 324.2 MB, free: 8.777 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 8.256e-06/0.002528, allocations: 7.922 kB / 324.2 MB, free: 8.77 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 1.499e-05/0.002543, allocations: 0 / 324.2 MB, free: 8.77 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001082/0.002651, allocations: 68.48 kB / 324.2 MB, free: 8.703 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.014e-06/0.002653, allocations: 4 kB / 324.2 MB, free: 8.699 MB / 298.7 MB Notification: Performance of FrontEnd: time 7.01e-07/0.002654, allocations: 0 / 324.2 MB, free: 8.699 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.657e-06/0.002658, allocations: 0 / 324.2 MB, free: 8.699 MB / 298.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.0002111/0.002869, allocations: 254.3 kB / 324.5 MB, free: 8.418 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.126e-05/0.0029, allocations: 8.031 kB / 324.5 MB, free: 8.41 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.163e-05/0.002922, allocations: 4.875 kB / 324.5 MB, free: 8.406 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 5.193e-05/0.002974, allocations: 109.8 kB / 324.6 MB, free: 8.273 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.025e-06/0.002982, allocations: 384 / 324.6 MB, free: 8.273 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.12e-06/0.002987, allocations: 384 / 324.6 MB, free: 8.273 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 6.148e-05/0.003048, allocations: 59.95 kB / 324.7 MB, free: 8.203 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.641e-06/0.003054, allocations: 192 / 324.7 MB, free: 8.203 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.071e-06/0.00306, allocations: 12.31 kB / 324.7 MB, free: 8.191 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.108e-06/0.003064, allocations: 384 / 324.7 MB, free: 8.191 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.579e-05/0.00308, allocations: 29.64 kB / 324.7 MB, free: 8.156 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 5.94e-05/0.003139, allocations: 57.05 kB / 324.8 MB, free: 8.086 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.214e-05/0.003181, allocations: 52.25 kB / 324.8 MB, free: 8.02 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.328e-05/0.003195, allocations: 30.56 kB / 324.8 MB, free: 7.98 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.467e-06/0.003198, allocations: 0 / 324.8 MB, free: 7.98 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.439e-05/0.003233, allocations: 64.31 kB / 324.9 MB, free: 7.902 MB / 298.7 MB Notification: Performance of pre-optimization done (n=1): time 9.62e-07/0.003234, allocations: 0 / 324.9 MB, free: 7.902 MB / 298.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001017/0.003335, allocations: 110.8 kB / 325 MB, free: 7.77 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.275e-05/0.003368, allocations: 81.05 kB / 325.1 MB, free: 7.672 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.382e-05/0.003402, allocations: 101.8 kB / 325.2 MB, free: 7.562 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 9.207e-06/0.003411, allocations: 25.7 kB / 325.2 MB, free: 7.531 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.09e-05/0.003432, allocations: 80.14 kB / 325.3 MB, free: 7.449 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.927e-05/0.003451, allocations: 1.203 kB / 325.3 MB, free: 7.449 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.069e-05/0.003472, allocations: 13.72 kB / 325.3 MB, free: 7.43 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 6.749e-05/0.003539, allocations: 314.8 kB / 325.6 MB, free: 7.113 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.036e-05/0.00356, allocations: 25.7 kB / 325.6 MB, free: 7.082 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.49e-05/0.003575, allocations: 29.7 kB / 325.7 MB, free: 7.047 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.267e-05/0.003617, allocations: 68.42 kB / 325.7 MB, free: 6.965 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.844e-06/0.003619, allocations: 4 kB / 325.7 MB, free: 6.961 MB / 298.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 5.001e-05/0.003669, allocations: 81.11 kB / 325.8 MB, free: 6.863 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.463e-05/0.003694, allocations: 33.64 kB / 325.9 MB, free: 6.824 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.201e-06/0.0037, allocations: 3.984 kB / 325.9 MB, free: 6.82 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.787e-06/0.003709, allocations: 0 / 325.9 MB, free: 6.82 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.243e-06/0.00371, allocations: 4 kB / 325.9 MB, free: 6.816 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.775e-06/0.003713, allocations: 0 / 325.9 MB, free: 6.816 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.18e-05/0.003725, allocations: 3.984 kB / 325.9 MB, free: 6.812 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.871e-06/0.00373, allocations: 0 / 325.9 MB, free: 6.812 MB / 298.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 5.909e-05/0.00379, allocations: 143.5 kB / 326 MB, free: 6.656 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.149e-06/0.003795, allocations: 0 / 326 MB, free: 6.656 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.062e-05/0.003805, allocations: 10.98 kB / 326 MB, free: 6.648 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.993e-06/0.003807, allocations: 0 / 326 MB, free: 6.648 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.344e-06/0.00381, allocations: 4 kB / 326 MB, free: 6.645 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.195e-06/0.003812, allocations: 0 / 326 MB, free: 6.645 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 4.072e-05/0.003853, allocations: 61.84 kB / 326.1 MB, free: 6.566 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.633e-06/0.003854, allocations: 7.922 kB / 326.1 MB, free: 6.559 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.71e-07/0.003855, allocations: 0 / 326.1 MB, free: 6.559 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.082e-06/0.003856, allocations: 0 / 326.1 MB, free: 6.559 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.328e-06/0.00386, allocations: 8 kB / 326.1 MB, free: 6.551 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.653e-06/0.003862, allocations: 4 kB / 326.1 MB, free: 6.547 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.61e-07/0.003862, allocations: 0 / 326.1 MB, free: 6.547 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.097e-05/0.003933, allocations: 116.4 kB / 326.2 MB, free: 6.402 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.509e-06/0.003938, allocations: 352 / 326.2 MB, free: 6.402 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.008e-05/0.003948, allocations: 4 kB / 326.2 MB, free: 6.398 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.318e-06/0.003952, allocations: 0 / 326.2 MB, free: 6.398 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.646e-06/0.003961, allocations: 0 / 326.2 MB, free: 6.398 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.355e-06/0.003963, allocations: 0 / 326.2 MB, free: 6.398 MB / 298.7 MB Notification: Performance of sorting global known variables: time 5.691e-06/0.003969, allocations: 4.859 kB / 326.2 MB, free: 6.391 MB / 298.7 MB Notification: Performance of sort global known variables: time 5e-08/0.003969, allocations: 4 kB / 326.2 MB, free: 6.387 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0001272/0.004096, allocations: 27.95 kB / 326.3 MB, free: 6.359 MB / 298.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.0005939/0.00469, allocations: 336.3 kB / 326.6 MB, free: 6.168 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0001049/0.004795, allocations: 123.6 kB / 326.7 MB, free: 6.02 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 3.477e-06/0.004799, allocations: 0 / 326.7 MB, free: 6.02 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 2.679e-05/0.004825, allocations: 89.97 kB / 326.8 MB, free: 5.91 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 5.028e-05/0.004876, allocations: 11.88 kB / 326.8 MB, free: 5.898 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001631/0.005039, allocations: 104.6 kB / 326.9 MB, free: 5.762 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.821e-05/0.005067, allocations: 59.47 kB / 327 MB, free: 5.684 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 5.25e-06/0.005072, allocations: 0 / 327 MB, free: 5.684 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.325e-05/0.005106, allocations: 51.38 kB / 327 MB, free: 5.633 MB / 298.7 MB Notification: Performance of SimCode: time 8.12e-07/0.005106, allocations: 0 / 327 MB, free: 5.633 MB / 298.7 MB Notification: Performance of Templates: time 0.002417/0.007524, allocations: 0.9341 MB / 327.9 MB, free: 4.699 MB / 298.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 -s gbode -gbm=radauIIA3 -emit_protected -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,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.8940207241103053]