Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Utilities.TestInternal.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00109/0.00109, allocations: 80.11 kB / 9.934 MB, free: 0.7539 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0016/0.00269, allocations: 449.7 kB / 10.37 MB, free: 324 kB / 10.45 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0007691/0.0007691, allocations: 161.2 kB / 11.26 MB, free: 2.91 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0009076/0.001677, allocations: 467.5 kB / 11.72 MB, free: 2.449 MB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 0.9938/0.9938, allocations: 177.4 MB / 189.9 MB, free: 4.824 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.1047/1.099, allocations: 53.86 MB / 243.8 MB, free: 14.9 MB / 250.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.248/0.248, allocations: 34.87 MB / 279.3 MB, free: 14.93 MB / 282.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.02769/0.2757, allocations: 13.23 MB / 292.6 MB, free: 6.473 MB / 282.7 MB " [Timeout remaining time 180] Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(ModelicaTest.Utilities.TestInternal,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Utilities.TestInternal") translateModel(ModelicaTest.Utilities.TestInternal,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Utilities.TestInternal") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.894e-06/1.894e-06, allocations: 0 / 293.8 MB, free: 5.227 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.328e-05/1.517e-05, allocations: 2.312 kB / 293.8 MB, free: 5.223 MB / 282.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestInternal): time 0.0009135/0.0009287, allocations: 0.5331 MB / 294.4 MB, free: 4.691 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.0003445/0.001273, allocations: 267.5 kB / 294.6 MB, free: 4.434 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.146e-05/0.001285, allocations: 0 / 294.6 MB, free: 4.434 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 3.667e-06/0.001288, allocations: 0 / 294.6 MB, free: 4.434 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 6.12e-07/0.001289, allocations: 0 / 294.6 MB, free: 4.434 MB / 282.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/Utilities.mo:409:3-464: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.000157/0.001446, allocations: 59.67 kB / 294.7 MB, free: 4.375 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 6.379e-05/0.00151, allocations: 4.75 kB / 294.7 MB, free: 4.371 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.781e-05/0.001547, allocations: 0 / 294.7 MB, free: 4.371 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 3.229e-05/0.00158, allocations: 3.938 kB / 294.7 MB, free: 4.367 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 3.532e-05/0.001615, allocations: 4 kB / 294.7 MB, free: 4.363 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 1.179e-05/0.001627, allocations: 0 / 294.7 MB, free: 4.363 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001352/0.001762, allocations: 67.88 kB / 294.8 MB, free: 4.297 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 8.276e-06/0.00177, allocations: 4 kB / 294.8 MB, free: 4.293 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 1.183e-05/0.001782, allocations: 0 / 294.8 MB, free: 4.293 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001057/0.001888, allocations: 55.83 kB / 294.8 MB, free: 4.238 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.474e-05/0.001903, allocations: 3.938 kB / 294.8 MB, free: 4.234 MB / 282.7 MB Notification: Performance of FrontEnd: time 8.31e-07/0.001903, allocations: 4 kB / 294.8 MB, free: 4.23 MB / 282.7 MB Notification: Performance of Transformations before backend: time 1.594e-05/0.001919, allocations: 0 / 294.8 MB, free: 4.23 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.0002661/0.002185, allocations: 266.2 kB / 295.1 MB, free: 3.938 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.949e-05/0.002225, allocations: 11.44 kB / 295.1 MB, free: 3.93 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.214e-05/0.002257, allocations: 4.938 kB / 295.1 MB, free: 3.926 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 5.958e-05/0.002317, allocations: 101.8 kB / 295.2 MB, free: 3.801 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.518e-06/0.002326, allocations: 384 / 295.2 MB, free: 3.801 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.22e-06/0.002331, allocations: 384 / 295.2 MB, free: 3.801 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.213e-05/0.002404, allocations: 55.97 kB / 295.3 MB, free: 3.734 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.803e-06/0.00241, allocations: 192 / 295.3 MB, free: 3.734 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.829e-06/0.002415, allocations: 4.375 kB / 295.3 MB, free: 3.73 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.901e-06/0.002421, allocations: 4.359 kB / 295.3 MB, free: 3.727 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.914e-05/0.00244, allocations: 37.58 kB / 295.3 MB, free: 3.684 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 6.51e-05/0.002505, allocations: 65.05 kB / 295.4 MB, free: 3.605 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.294e-05/0.002548, allocations: 44.31 kB / 295.4 MB, free: 3.547 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.674e-05/0.002565, allocations: 34.62 kB / 295.5 MB, free: 3.504 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.945e-06/0.002568, allocations: 0 / 295.5 MB, free: 3.504 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.506e-05/0.002603, allocations: 56.27 kB / 295.5 MB, free: 3.434 MB / 282.7 MB Notification: Performance of pre-optimization done (n=1): time 5.01e-07/0.002604, allocations: 0 / 295.5 MB, free: 3.434 MB / 282.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001159/0.002719, allocations: 122.8 kB / 295.6 MB, free: 3.289 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.262e-05/0.002762, allocations: 77.11 kB / 295.7 MB, free: 3.195 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.122e-05/0.002803, allocations: 89.86 kB / 295.8 MB, free: 3.098 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 1.082e-05/0.002814, allocations: 25.7 kB / 295.8 MB, free: 3.066 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.006e-05/0.002834, allocations: 84.14 kB / 295.9 MB, free: 2.98 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.617e-05/0.00285, allocations: 0.6875 kB / 295.9 MB, free: 2.98 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.53e-05/0.002876, allocations: 21.64 kB / 295.9 MB, free: 2.953 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 7.742e-05/0.002953, allocations: 322.8 kB / 296.2 MB, free: 2.629 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.44e-05/0.002967, allocations: 29.7 kB / 296.3 MB, free: 2.594 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.581e-05/0.002983, allocations: 29.7 kB / 296.3 MB, free: 2.559 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.28e-05/0.003026, allocations: 64.36 kB / 296.4 MB, free: 2.48 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.344e-06/0.003028, allocations: 0 / 296.4 MB, free: 2.48 MB / 282.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 4.961e-05/0.003078, allocations: 89.03 kB / 296.4 MB, free: 2.375 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.386e-05/0.003112, allocations: 29.7 kB / 296.5 MB, free: 2.34 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.098e-06/0.003116, allocations: 4 kB / 296.5 MB, free: 2.336 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.676e-06/0.003125, allocations: 0 / 296.5 MB, free: 2.336 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.659e-06/0.003129, allocations: 0 / 296.5 MB, free: 2.336 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.846e-06/0.003132, allocations: 0 / 296.5 MB, free: 2.336 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.13e-05/0.003153, allocations: 0 / 296.5 MB, free: 2.336 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.827e-06/0.003162, allocations: 3.984 kB / 296.5 MB, free: 2.332 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 6.653e-05/0.003229, allocations: 143.5 kB / 296.6 MB, free: 2.176 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.356e-06/0.003232, allocations: 0 / 296.6 MB, free: 2.176 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.196e-06/0.00324, allocations: 3 kB / 296.6 MB, free: 2.176 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.122e-06/0.003241, allocations: 4 kB / 296.6 MB, free: 2.172 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.423e-06/0.003243, allocations: 0 / 296.6 MB, free: 2.172 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.244e-06/0.003245, allocations: 0 / 296.6 MB, free: 2.172 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 4.246e-05/0.003288, allocations: 61.84 kB / 296.7 MB, free: 2.094 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.91e-07/0.003288, allocations: 0 / 296.7 MB, free: 2.094 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.705e-06/0.003291, allocations: 7.984 kB / 296.7 MB, free: 2.086 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.927e-06/0.003295, allocations: 4 kB / 296.7 MB, free: 2.082 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.81e-07/0.003296, allocations: 0 / 296.7 MB, free: 2.082 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.861e-06/0.003301, allocations: 7.984 kB / 296.7 MB, free: 2.074 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.21e-07/0.003302, allocations: 0 / 296.7 MB, free: 2.074 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.61e-07/0.003302, allocations: 0 / 296.7 MB, free: 2.074 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.005e-05/0.003362, allocations: 120.4 kB / 296.8 MB, free: 1.926 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.358e-06/0.003372, allocations: 0 / 296.8 MB, free: 1.926 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.399e-06/0.003376, allocations: 0 / 296.8 MB, free: 1.926 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.225e-06/0.003384, allocations: 0 / 296.8 MB, free: 1.926 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.243e-06/0.003386, allocations: 4 kB / 296.8 MB, free: 1.922 MB / 282.7 MB Notification: Performance of sorting global known variables: time 5.18e-06/0.003391, allocations: 4.859 kB / 296.8 MB, free: 1.914 MB / 282.7 MB Notification: Performance of sort global known variables: time 7e-08/0.003391, allocations: 0 / 296.8 MB, free: 1.914 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0001152/0.003506, allocations: 31.95 kB / 296.9 MB, free: 1.883 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.0007665/0.004273, allocations: 366 kB / 297.2 MB, free: 1.68 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0001256/0.004398, allocations: 119.6 kB / 297.3 MB, free: 1.535 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 6.552e-06/0.004405, allocations: 3.984 kB / 297.3 MB, free: 1.531 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 3.684e-05/0.004442, allocations: 89.97 kB / 297.4 MB, free: 1.422 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 5.655e-05/0.004498, allocations: 7.938 kB / 297.4 MB, free: 1.414 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001892/0.004687, allocations: 109.4 kB / 297.5 MB, free: 1.273 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.191e-05/0.004719, allocations: 55.48 kB / 297.6 MB, free: 1.199 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 6.502e-06/0.004726, allocations: 4 kB / 297.6 MB, free: 1.195 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.737e-05/0.004763, allocations: 51.38 kB / 297.7 MB, free: 1.145 MB / 282.7 MB Notification: Performance of SimCode: time 5.81e-07/0.004764, allocations: 0 / 297.7 MB, free: 1.145 MB / 282.7 MB Notification: Performance of Templates: time 0.002342/0.007106, allocations: 0.9446 MB / 298.6 MB, free: 212 kB / 282.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_trunk_ModelicaTest.Utilities.TestInternal.makefile [Timeout 660] (rm -f ModelicaTest_trunk_ModelicaTest.Utilities.TestInternal.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Utilities.TestInternal.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Utilities.TestInternal.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Utilities.TestInternal.sim & ./ModelicaTest_trunk_ModelicaTest.Utilities.TestInternal -abortSlowSimulation -alarm=240 -emit_protected -ignoreHideResult -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Utilities.TestInternal.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Utilities.TestInternal_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.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.891917308792472]