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.001451/0.001451, allocations: 79.69 kB / 21.7 MB, free: 2.848 MB / 18.57 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.001667/0.001667, allocations: 163.5 kB / 24.99 MB, free: 8.266 MB / 18.57 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 1.174/1.174, allocations: 177 MB / 205.2 MB, free: 5.613 MB / 186.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.3395/0.3395, allocations: 34.86 MB / 296.6 MB, free: 0.5508 MB / 266.7 MB " [Timeout remaining time 179] 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 2.284e-06/2.284e-06, allocations: 0 / 378.7 MB, free: 2.461 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 4.128e-05/4.356e-05, allocations: 3.719 kB / 378.7 MB, free: 2.457 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestInternal): time 0.001599/0.001643, allocations: 0.4931 MB / 379.2 MB, free: 1.961 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.0005776/0.00222, allocations: 259.3 kB / 379.5 MB, free: 1.707 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.846e-05/0.002259, allocations: 0 / 379.5 MB, free: 1.707 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 2.12e-05/0.00228, allocations: 0 / 379.5 MB, free: 1.707 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 7.504e-06/0.002287, allocations: 0 / 379.5 MB, free: 1.707 MB / 346.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.000392/0.002679, allocations: 59.69 kB / 379.5 MB, free: 1.648 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 6.443e-05/0.002744, allocations: 0 / 379.5 MB, free: 1.648 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.715e-05/0.002791, allocations: 7.938 kB / 379.5 MB, free: 1.641 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 3.218e-05/0.002823, allocations: 0 / 379.5 MB, free: 1.641 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 3.334e-05/0.002857, allocations: 4 kB / 379.5 MB, free: 1.637 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 1.189e-05/0.002868, allocations: 0 / 379.5 MB, free: 1.637 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001556/0.003024, allocations: 67.86 kB / 379.6 MB, free: 1.57 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 1.094e-05/0.003035, allocations: 0 / 379.6 MB, free: 1.57 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 3.017e-05/0.003065, allocations: 4 kB / 379.6 MB, free: 1.566 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001558/0.003221, allocations: 59.88 kB / 379.7 MB, free: 1.508 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.605e-06/0.003224, allocations: 0 / 379.7 MB, free: 1.508 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.463e-06/0.003225, allocations: 3.938 kB / 379.7 MB, free: 1.504 MB / 346.7 MB Notification: Performance of Transformations before backend: time 5.861e-06/0.003231, allocations: 0 / 379.7 MB, free: 1.504 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: 1 * Number of variables: 1 Notification: Performance of Generate backend data structure: time 0.000378/0.003609, allocations: 381.9 kB / 380 MB, free: 1.086 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.975e-05/0.003669, allocations: 8.031 kB / 380 MB, free: 1.078 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.15e-05/0.00372, allocations: 4.938 kB / 380 MB, free: 1.074 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.551e-05/0.003806, allocations: 108.6 kB / 380.2 MB, free: 0.9414 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.485e-05/0.00382, allocations: 4.375 kB / 380.2 MB, free: 0.9375 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.335e-05/0.003834, allocations: 384 / 380.2 MB, free: 0.9375 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000119/0.003953, allocations: 63.91 kB / 380.2 MB, free: 0.8633 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.037e-05/0.003963, allocations: 192 / 380.2 MB, free: 0.8633 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.183e-05/0.003975, allocations: 384 / 380.2 MB, free: 0.8633 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.19e-05/0.003987, allocations: 384 / 380.2 MB, free: 0.8633 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.505e-05/0.004012, allocations: 29.64 kB / 380.2 MB, free: 0.8281 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001265/0.004138, allocations: 112.6 kB / 380.4 MB, free: 0.6836 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 6.597e-05/0.004204, allocations: 56.77 kB / 380.4 MB, free: 0.6094 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.984e-05/0.004234, allocations: 41.48 kB / 380.5 MB, free: 0.5586 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.4e-06/0.00424, allocations: 3.938 kB / 380.5 MB, free: 0.5547 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.961e-05/0.004299, allocations: 63.09 kB / 380.5 MB, free: 488 kB / 346.7 MB Notification: Performance of pre-optimization done (n=1): time 1.453e-06/0.004301, allocations: 0 / 380.5 MB, free: 488 kB / 346.7 MB Notification: Performance of matching and sorting (n=1): time 0.0002444/0.004545, allocations: 122.8 kB / 380.6 MB, free: 340 kB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.972e-05/0.004595, allocations: 77.11 kB / 380.7 MB, free: 244 kB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.93e-05/0.004654, allocations: 142.2 kB / 380.9 MB, free: 88 kB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.312e-05/0.004667, allocations: 25.7 kB / 380.9 MB, free: 56 kB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.297e-05/0.00472, allocations: 126.9 kB / 381 MB, free: 15.93 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.257e-05/0.004743, allocations: 8.469 kB / 381 MB, free: 15.92 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.417e-05/0.004777, allocations: 19.38 kB / 381 MB, free: 15.89 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001505/0.004927, allocations: 0.4922 MB / 381.5 MB, free: 15.39 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.718e-05/0.004965, allocations: 29.7 kB / 381.6 MB, free: 15.35 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.913e-05/0.004984, allocations: 29.64 kB / 381.6 MB, free: 15.32 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.427e-05/0.005048, allocations: 63.09 kB / 381.6 MB, free: 15.24 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.004e-06/0.00505, allocations: 0 / 381.6 MB, free: 15.24 MB / 362.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 9.314e-05/0.005143, allocations: 97.05 kB / 381.7 MB, free: 15.12 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.889e-05/0.005182, allocations: 29.7 kB / 381.8 MB, free: 15.09 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.624e-06/0.00519, allocations: 96 / 381.8 MB, free: 15.09 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.602e-05/0.005206, allocations: 4 kB / 381.8 MB, free: 15.09 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.472e-06/0.005207, allocations: 0 / 381.8 MB, free: 15.09 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.39e-05/0.005221, allocations: 4 kB / 381.8 MB, free: 15.08 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.884e-05/0.00524, allocations: 3.938 kB / 381.8 MB, free: 15.08 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.103e-06/0.005247, allocations: 0 / 381.8 MB, free: 15.08 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: 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 0.000101/0.005348, allocations: 186.2 kB / 382 MB, free: 14.88 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.197e-06/0.005357, allocations: 3.984 kB / 382 MB, free: 14.88 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.337e-05/0.005371, allocations: 3 kB / 382 MB, free: 14.88 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.475e-06/0.005373, allocations: 0 / 382 MB, free: 14.88 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.612e-06/0.00538, allocations: 0 / 382 MB, free: 14.88 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.781e-06/0.005385, allocations: 8 kB / 382 MB, free: 14.87 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.899e-05/0.005464, allocations: 112.6 kB / 382.1 MB, free: 14.72 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.92e-07/0.005465, allocations: 0 / 382.1 MB, free: 14.72 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.61e-07/0.005466, allocations: 0 / 382.1 MB, free: 14.72 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.87e-06/0.005471, allocations: 4 kB / 382.1 MB, free: 14.72 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.287e-06/0.00548, allocations: 4 kB / 382.1 MB, free: 14.71 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.91e-07/0.005481, allocations: 0 / 382.1 MB, free: 14.71 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.32e-07/0.005482, allocations: 0 / 382.1 MB, free: 14.71 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001236/0.005605, allocations: 135.8 kB / 382.2 MB, free: 14.55 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.639e-06/0.00561, allocations: 0 / 382.2 MB, free: 14.55 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.007e-05/0.00563, allocations: 12.02 kB / 382.2 MB, free: 14.54 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.703e-06/0.005637, allocations: 0 / 382.2 MB, free: 14.54 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.838e-05/0.005655, allocations: 3.938 kB / 382.2 MB, free: 14.53 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.234e-06/0.005657, allocations: 0 / 382.2 MB, free: 14.53 MB / 362.7 MB Notification: Performance of sorting global known variables: time 4.137e-05/0.005699, allocations: 119.2 kB / 382.4 MB, free: 14.41 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.6e-07/0.005699, allocations: 0 / 382.4 MB, free: 14.41 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0001661/0.005865, allocations: 19.94 kB / 382.4 MB, free: 14.39 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: 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.0006768/0.006542, allocations: 313.1 kB / 382.7 MB, free: 14.14 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0001572/0.006699, allocations: 122.5 kB / 382.8 MB, free: 14 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.924e-06/0.006701, allocations: 4.062 kB / 382.8 MB, free: 13.99 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 4.087e-05/0.006742, allocations: 88.8 kB / 382.9 MB, free: 13.88 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001155/0.006857, allocations: 7.938 kB / 382.9 MB, free: 13.88 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002536/0.007111, allocations: 117.6 kB / 383 MB, free: 13.72 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.25e-05/0.007153, allocations: 51.36 kB / 383.1 MB, free: 13.65 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 7.735e-06/0.007161, allocations: 0 / 383.1 MB, free: 13.65 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.57e-05/0.007177, allocations: 12.5 kB / 383.1 MB, free: 13.64 MB / 362.7 MB Notification: Performance of SimCode: time 9.92e-07/0.007178, allocations: 3.938 kB / 383.1 MB, free: 13.64 MB / 362.7 MB Notification: Performance of Templates: time 0.003297/0.01048, allocations: 0.8289 MB / 383.9 MB, free: 12.81 MB / 362.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 -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: 3.665079800179228]