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.001475/0.001475, allocations: 96.25 kB / 20.96 MB, free: 3.465 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.001612/0.001612, allocations: 156.9 kB / 24.27 MB, free: 168 kB / 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.542/1.542, allocations: 177 MB / 204.4 MB, free: 5.621 MB / 186.7 MB " [Timeout remaining time 178] 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.325/0.325, allocations: 34.24 MB / 295.2 MB, free: 0.6602 MB / 266.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 2.034e-06/2.034e-06, allocations: 0 / 377.2 MB, free: 2.941 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.132e-05/3.335e-05, allocations: 7.797 kB / 377.2 MB, free: 2.934 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestInternal): time 0.001631/0.001664, allocations: 485.1 kB / 377.7 MB, free: 2.457 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.0007096/0.002374, allocations: 255.4 kB / 377.9 MB, free: 2.207 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.399e-05/0.002398, allocations: 0 / 377.9 MB, free: 2.207 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 1.217e-05/0.00241, allocations: 0 / 377.9 MB, free: 2.207 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 5.43e-06/0.002415, allocations: 4 kB / 377.9 MB, free: 2.203 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.000384/0.002799, allocations: 55.69 kB / 378 MB, free: 2.148 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 5.257e-05/0.002852, allocations: 7.938 kB / 378 MB, free: 2.141 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.332e-05/0.002885, allocations: 4 kB / 378 MB, free: 2.137 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 3.087e-05/0.002916, allocations: 3.984 kB / 378 MB, free: 2.133 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 3.49e-05/0.002951, allocations: 7.984 kB / 378 MB, free: 2.125 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 1.155e-05/0.002963, allocations: 0 / 378 MB, free: 2.125 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001773/0.00314, allocations: 67.83 kB / 378 MB, free: 2.059 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 8.426e-06/0.003148, allocations: 0 / 378 MB, free: 2.059 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 2.502e-05/0.003173, allocations: 0 / 378 MB, free: 2.059 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001548/0.003328, allocations: 59.86 kB / 378.1 MB, free: 2 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.144e-06/0.00333, allocations: 4 kB / 378.1 MB, free: 1.996 MB / 346.7 MB Notification: Performance of FrontEnd: time 7.11e-07/0.003331, allocations: 0 / 378.1 MB, free: 1.996 MB / 346.7 MB Notification: Performance of Transformations before backend: time 4.318e-06/0.003335, allocations: 0 / 378.1 MB, free: 1.996 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.0004052/0.003741, allocations: 287.9 kB / 378.4 MB, free: 1.676 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.767e-05/0.003778, allocations: 8.031 kB / 378.4 MB, free: 1.668 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.581e-05/0.003824, allocations: 4.922 kB / 378.4 MB, free: 1.664 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.733e-05/0.003921, allocations: 105.8 kB / 378.5 MB, free: 1.535 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.16e-05/0.003933, allocations: 384 / 378.5 MB, free: 1.535 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.977e-06/0.003942, allocations: 4.312 kB / 378.5 MB, free: 1.531 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001001/0.004042, allocations: 55.97 kB / 378.6 MB, free: 1.465 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.594e-06/0.00405, allocations: 4.188 kB / 378.6 MB, free: 1.461 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.454e-06/0.004057, allocations: 384 / 378.6 MB, free: 1.461 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.707e-06/0.004061, allocations: 384 / 378.6 MB, free: 1.461 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.902e-05/0.0041, allocations: 33.64 kB / 378.6 MB, free: 1.422 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000135/0.004235, allocations: 105.3 kB / 378.7 MB, free: 1.289 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 7.118e-05/0.004306, allocations: 44.31 kB / 378.8 MB, free: 1.23 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.94e-05/0.004345, allocations: 34.5 kB / 378.8 MB, free: 1.188 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.867e-06/0.004354, allocations: 0 / 378.8 MB, free: 1.188 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.784e-05/0.004412, allocations: 60.33 kB / 378.8 MB, free: 1.113 MB / 346.7 MB Notification: Performance of pre-optimization done (n=1): time 6.01e-07/0.004413, allocations: 0 / 378.8 MB, free: 1.113 MB / 346.7 MB Notification: Performance of matching and sorting (n=1): time 0.00024/0.004653, allocations: 122.8 kB / 379 MB, free: 0.9688 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.323e-05/0.004716, allocations: 77.11 kB / 379 MB, free: 0.875 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.556e-05/0.004781, allocations: 89.86 kB / 379.1 MB, free: 0.7773 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.864e-05/0.0048, allocations: 25.7 kB / 379.2 MB, free: 0.7461 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.764e-05/0.004848, allocations: 84.14 kB / 379.2 MB, free: 0.6602 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.637e-05/0.004864, allocations: 0 / 379.2 MB, free: 0.6602 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.179e-05/0.004896, allocations: 9.719 kB / 379.2 MB, free: 0.6445 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.000183/0.005079, allocations: 326.8 kB / 379.6 MB, free: 324 kB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.855e-05/0.005108, allocations: 29.64 kB / 379.6 MB, free: 288 kB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.37e-05/0.005131, allocations: 25.7 kB / 379.6 MB, free: 256 kB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.721e-05/0.005198, allocations: 64.45 kB / 379.7 MB, free: 176 kB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.753e-06/0.0052, allocations: 0 / 379.7 MB, free: 176 kB / 346.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 0.0001041/0.005304, allocations: 93.09 kB / 379.8 MB, free: 64 kB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.321e-05/0.005347, allocations: 33.7 kB / 379.8 MB, free: 24 kB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.078e-06/0.005352, allocations: 3.938 kB / 379.8 MB, free: 20 kB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.585e-05/0.005367, allocations: 0 / 379.8 MB, free: 20 kB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.81e-07/0.005368, allocations: 0 / 379.8 MB, free: 20 kB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.292e-05/0.005381, allocations: 0 / 379.8 MB, free: 20 kB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.611e-05/0.005397, allocations: 3.938 kB / 379.8 MB, free: 16 kB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.084e-06/0.005404, allocations: 0 / 379.8 MB, free: 16 kB / 346.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.0001224/0.005527, allocations: 143.5 kB / 380 MB, free: 15.86 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.418e-05/0.005541, allocations: 7.938 kB / 380 MB, free: 15.85 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.083e-06/0.005548, allocations: 7 kB / 380 MB, free: 15.85 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.262e-06/0.005549, allocations: 0 / 380 MB, free: 15.85 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.406e-06/0.005553, allocations: 0 / 380 MB, free: 15.85 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.803e-06/0.005554, allocations: 0 / 380 MB, free: 15.85 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.726e-05/0.005652, allocations: 101.3 kB / 380.1 MB, free: 15.72 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.91e-07/0.005653, allocations: 0 / 380.1 MB, free: 15.72 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.31e-07/0.005653, allocations: 4 kB / 380.1 MB, free: 15.71 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.333e-06/0.005655, allocations: 0 / 380.1 MB, free: 15.71 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.049e-06/0.00566, allocations: 4 kB / 380.1 MB, free: 15.71 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.012e-06/0.005661, allocations: 0 / 380.1 MB, free: 15.71 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.01e-07/0.005661, allocations: 0 / 380.1 MB, free: 15.71 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001445/0.005806, allocations: 120.5 kB / 380.2 MB, free: 15.56 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.532e-06/0.005813, allocations: 4 kB / 380.2 MB, free: 15.56 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.429e-05/0.005827, allocations: 3.984 kB / 380.2 MB, free: 15.55 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.887e-06/0.005836, allocations: 0 / 380.2 MB, free: 15.55 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.577e-05/0.005851, allocations: 3.938 kB / 380.2 MB, free: 15.55 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.29e-06/0.005857, allocations: 4 kB / 380.2 MB, free: 15.55 MB / 362.7 MB Notification: Performance of sorting global known variables: time 4.29e-05/0.0059, allocations: 75.28 kB / 380.3 MB, free: 15.47 MB / 362.7 MB Notification: Performance of sort global known variables: time 5e-08/0.0059, allocations: 0 / 380.3 MB, free: 15.47 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0002332/0.006133, allocations: 23.97 kB / 380.3 MB, free: 15.45 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.0008621/0.006995, allocations: 307 kB / 380.6 MB, free: 15.2 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0001484/0.007144, allocations: 110.8 kB / 380.7 MB, free: 15.07 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.324e-06/0.007146, allocations: 4 kB / 380.7 MB, free: 15.07 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 6.787e-05/0.007214, allocations: 81.11 kB / 380.8 MB, free: 14.97 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001449/0.007359, allocations: 4 kB / 380.8 MB, free: 14.96 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002485/0.007607, allocations: 112 kB / 380.9 MB, free: 14.82 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.314e-05/0.00767, allocations: 55.36 kB / 381 MB, free: 14.75 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 5.641e-06/0.007676, allocations: 8.062 kB / 381 MB, free: 14.74 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.861e-05/0.007695, allocations: 12.48 kB / 381 MB, free: 14.73 MB / 362.7 MB Notification: Performance of SimCode: time 4.81e-07/0.007695, allocations: 0 / 381 MB, free: 14.73 MB / 362.7 MB Notification: Performance of Templates: time 0.003907/0.0116, allocations: 0.8324 MB / 381.8 MB, free: 13.89 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=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Utilities.TestInternal.pipe 2>&1) [Timeout 480] 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Utilities.TestInternal.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 4.741341156070121]