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.0009293/0.0009293, allocations: 91.5 kB / 21.2 MB, free: 3.375 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.0008903/0.0008903, allocations: 160.5 kB / 24.55 MB, free: 20 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 0.9681/0.9681, allocations: 177 MB / 204.8 MB, free: 5.59 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.3317/0.3317, allocations: 34.88 MB / 296.3 MB, free: 0.5469 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 1.393e-06/1.393e-06, allocations: 0 / 378.7 MB, free: 2.129 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.665e-05/1.804e-05, allocations: 4.281 kB / 378.7 MB, free: 2.125 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestInternal): time 0.001105/0.001123, allocations: 485 kB / 379.2 MB, free: 1.648 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.0005161/0.001639, allocations: 263.3 kB / 379.5 MB, free: 1.391 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.847e-05/0.001667, allocations: 4 kB / 379.5 MB, free: 1.387 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 2.247e-05/0.00169, allocations: 3.938 kB / 379.5 MB, free: 1.383 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 7.063e-06/0.001697, allocations: 0 / 379.5 MB, free: 1.383 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.0003266/0.002023, allocations: 59.69 kB / 379.5 MB, free: 1.324 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 5.383e-05/0.002077, allocations: 4 kB / 379.5 MB, free: 1.32 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.165e-05/0.002109, allocations: 0 / 379.5 MB, free: 1.32 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.57e-05/0.002135, allocations: 0 / 379.5 MB, free: 1.32 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 2.38e-05/0.002158, allocations: 0 / 379.5 MB, free: 1.32 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 1.026e-05/0.002169, allocations: 0 / 379.5 MB, free: 1.32 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001345/0.002303, allocations: 67.88 kB / 379.6 MB, free: 1.254 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 8.045e-06/0.002311, allocations: 0 / 379.6 MB, free: 1.254 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 2.095e-05/0.002332, allocations: 7.984 kB / 379.6 MB, free: 1.246 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001246/0.002457, allocations: 55.88 kB / 379.7 MB, free: 1.191 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.034e-06/0.002459, allocations: 3.938 kB / 379.7 MB, free: 1.188 MB / 346.7 MB Notification: Performance of FrontEnd: time 6.22e-07/0.002459, allocations: 0 / 379.7 MB, free: 1.188 MB / 346.7 MB Notification: Performance of Transformations before backend: time 4.989e-06/0.002464, allocations: 4 kB / 379.7 MB, free: 1.184 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.0003022/0.002767, allocations: 385.9 kB / 380.1 MB, free: 0.7617 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.649e-05/0.002803, allocations: 8.031 kB / 380.1 MB, free: 0.7539 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.557e-05/0.002839, allocations: 4.938 kB / 380.1 MB, free: 0.75 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 6.241e-05/0.002901, allocations: 108.6 kB / 380.2 MB, free: 0.6172 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.115e-05/0.002912, allocations: 384 / 380.2 MB, free: 0.6172 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.624e-06/0.00292, allocations: 4.375 kB / 380.2 MB, free: 0.6133 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.733e-05/0.003007, allocations: 59.97 kB / 380.2 MB, free: 0.543 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.434e-06/0.003015, allocations: 4.172 kB / 380.2 MB, free: 0.5391 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.384e-06/0.003022, allocations: 384 / 380.2 MB, free: 0.5391 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.614e-06/0.00303, allocations: 384 / 380.2 MB, free: 0.5391 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.854e-05/0.003048, allocations: 33.64 kB / 380.3 MB, free: 0.5 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 9.389e-05/0.003142, allocations: 108.6 kB / 380.4 MB, free: 368 kB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 5.55e-05/0.003198, allocations: 60.78 kB / 380.4 MB, free: 288 kB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.555e-05/0.003223, allocations: 37.39 kB / 380.5 MB, free: 240 kB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.579e-06/0.003228, allocations: 0 / 380.5 MB, free: 240 kB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.966e-05/0.003267, allocations: 71.16 kB / 380.5 MB, free: 152 kB / 346.7 MB Notification: Performance of pre-optimization done (n=1): time 7.72e-07/0.003268, allocations: 0 / 380.5 MB, free: 152 kB / 346.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001606/0.003429, allocations: 118.7 kB / 380.7 MB, free: 8 kB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.266e-05/0.003481, allocations: 77.11 kB / 380.7 MB, free: 15.91 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.912e-05/0.00353, allocations: 142.2 kB / 380.9 MB, free: 15.76 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 8.906e-06/0.003539, allocations: 25.7 kB / 380.9 MB, free: 15.73 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.027e-05/0.00357, allocations: 130.9 kB / 381 MB, free: 15.6 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.363e-05/0.003583, allocations: 352 / 381 MB, free: 15.6 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.762e-05/0.003611, allocations: 19.38 kB / 381.1 MB, free: 15.57 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0002623/0.003873, allocations: 0.4883 MB / 381.5 MB, free: 15.07 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.016e-05/0.003893, allocations: 37.81 kB / 381.6 MB, free: 15.03 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.3e-05/0.003906, allocations: 29.64 kB / 381.6 MB, free: 14.99 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.582e-05/0.003952, allocations: 63.09 kB / 381.7 MB, free: 14.91 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.863e-06/0.003954, allocations: 0 / 381.7 MB, free: 14.91 MB / 362.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.938e-05/0.004023, allocations: 97 kB / 381.8 MB, free: 14.8 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.768e-05/0.004051, allocations: 37.69 kB / 381.8 MB, free: 14.76 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.339e-06/0.004055, allocations: 0 / 381.8 MB, free: 14.76 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.277e-05/0.004068, allocations: 0 / 381.8 MB, free: 14.76 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.967e-06/0.004072, allocations: 0 / 381.8 MB, free: 14.76 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.749e-06/0.004077, allocations: 0 / 381.8 MB, free: 14.76 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.272e-05/0.00409, allocations: 8.031 kB / 381.8 MB, free: 14.75 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.971e-06/0.004096, allocations: 0 / 381.8 MB, free: 14.75 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 7.366e-05/0.004169, allocations: 182.3 kB / 382 MB, free: 14.55 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.831e-06/0.004175, allocations: 0 / 382 MB, free: 14.55 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.817e-06/0.004184, allocations: 7 kB / 382 MB, free: 14.55 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.214e-06/0.004186, allocations: 3.984 kB / 382 MB, free: 14.55 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.176e-06/0.004189, allocations: 0 / 382 MB, free: 14.55 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.365e-06/0.004192, allocations: 0 / 382 MB, free: 14.55 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 5.905e-05/0.004251, allocations: 112.6 kB / 382.1 MB, free: 14.4 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.51e-07/0.004251, allocations: 0 / 382.1 MB, free: 14.4 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.865e-06/0.004254, allocations: 8 kB / 382.1 MB, free: 14.39 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.71e-07/0.004255, allocations: 0 / 382.1 MB, free: 14.39 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.533e-06/0.004261, allocations: 0 / 382.1 MB, free: 14.39 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.71e-07/0.004262, allocations: 0 / 382.1 MB, free: 14.39 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.31e-07/0.004263, allocations: 0 / 382.1 MB, free: 14.39 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.743e-05/0.00435, allocations: 135.7 kB / 382.2 MB, free: 14.23 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.499e-06/0.004355, allocations: 4 kB / 382.2 MB, free: 14.22 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.557e-05/0.00437, allocations: 4 kB / 382.3 MB, free: 14.22 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.311e-06/0.004377, allocations: 0 / 382.3 MB, free: 14.22 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.566e-05/0.004392, allocations: 3.984 kB / 382.3 MB, free: 14.21 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.003007/0.0074, allocations: 4 kB / 382.3 MB, free: 14.21 MB / 362.7 MB Notification: Performance of sorting global known variables: time 3.237e-05/0.007432, allocations: 123.2 kB / 382.4 MB, free: 14.09 MB / 362.7 MB Notification: Performance of sort global known variables: time 6e-08/0.007432, allocations: 0 / 382.4 MB, free: 14.09 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0002182/0.00765, allocations: 19.94 kB / 382.4 MB, free: 14.07 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.0005526/0.008203, allocations: 309.4 kB / 382.7 MB, free: 13.82 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0001059/0.008309, allocations: 122.5 kB / 382.8 MB, free: 13.67 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.643e-06/0.00831, allocations: 0 / 382.8 MB, free: 13.67 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 3.435e-05/0.008345, allocations: 92.73 kB / 382.9 MB, free: 13.56 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001232/0.008468, allocations: 128 / 382.9 MB, free: 13.56 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001837/0.008652, allocations: 125.6 kB / 383 MB, free: 13.4 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.179e-05/0.008683, allocations: 55.36 kB / 383.1 MB, free: 13.32 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 5.25e-06/0.008689, allocations: 0 / 383.1 MB, free: 13.32 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.138e-05/0.0087, allocations: 8.5 kB / 383.1 MB, free: 13.32 MB / 362.7 MB Notification: Performance of SimCode: time 3.81e-07/0.0087, allocations: 0 / 383.1 MB, free: 13.32 MB / 362.7 MB Notification: Performance of Templates: time 0.005973/0.01467, allocations: 0.9266 MB / 384 MB, free: 12.39 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.0282247751019895]