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.001386/0.001387, allocations: 119.5 kB / 18.45 MB, free: 4.594 MB / 14.72 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.001356/0.001356, allocations: 210.5 kB / 21.4 MB, free: 1.645 MB / 14.72 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.444/1.444, allocations: 227.4 MB / 251.7 MB, free: 264 kB / 190.1 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.236/0.236, allocations: 46.16 MB / 351.1 MB, free: 14.32 MB / 286.1 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 0.00217/0.00217, allocations: 86.05 kB / 490.2 MB, free: 27.94 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1432/0.1454, allocations: 62.45 MB / 0.5397 GB, free: 4.297 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestInternal): time 0.002434/0.1479, allocations: 485.7 kB / 0.5401 GB, free: 3.816 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008448/0.1488, allocations: 255.6 kB / 0.5404 GB, free: 3.566 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.375e-05/0.1488, allocations: 0 / 0.5404 GB, free: 3.566 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.931e-05/0.1489, allocations: 7.875 kB / 0.5404 GB, free: 3.559 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 7.113e-06/0.1489, allocations: 0 / 0.5404 GB, free: 3.559 MB / 398.1 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.0004327/0.1493, allocations: 55.81 kB / 0.5404 GB, free: 3.504 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 6.383e-05/0.1494, allocations: 0 / 0.5404 GB, free: 3.504 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.551e-05/0.1494, allocations: 4 kB / 0.5404 GB, free: 3.5 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.941e-05/0.1495, allocations: 0 / 0.5404 GB, free: 3.5 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.116e-05/0.1495, allocations: 3.984 kB / 0.5404 GB, free: 3.496 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 1.121e-05/0.1495, allocations: 4 kB / 0.5404 GB, free: 3.492 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001787/0.1497, allocations: 63.95 kB / 0.5405 GB, free: 3.43 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 1.405e-05/0.1497, allocations: 3.984 kB / 0.5405 GB, free: 3.426 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.939e-05/0.1498, allocations: 4 kB / 0.5405 GB, free: 3.422 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001531/0.1499, allocations: 47.88 kB / 0.5405 GB, free: 3.375 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.769e-06/0.1499, allocations: 3.938 kB / 0.5405 GB, free: 3.371 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.535e-06/0.1499, allocations: 0 / 0.5405 GB, free: 3.371 MB / 398.1 MB Notification: Performance of Transformations before backend: time 5.951e-06/0.1499, allocations: 0 / 0.5405 GB, free: 3.371 MB / 398.1 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.0004184/0.1504, allocations: 361.1 kB / 0.5409 GB, free: 2.961 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.363e-05/0.1504, allocations: 16.03 kB / 0.5409 GB, free: 2.945 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.584e-05/0.1505, allocations: 0.9375 kB / 0.5409 GB, free: 2.945 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001306/0.1506, allocations: 164.4 kB / 0.5411 GB, free: 2.746 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.395e-05/0.1506, allocations: 384 / 0.5411 GB, free: 2.746 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.754e-06/0.1506, allocations: 4.312 kB / 0.5411 GB, free: 2.742 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001043/0.1507, allocations: 30.27 kB / 0.5411 GB, free: 2.707 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.746e-06/0.1508, allocations: 192 / 0.5411 GB, free: 2.707 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.072e-05/0.1508, allocations: 3.938 kB / 0.5411 GB, free: 2.703 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.439e-06/0.1508, allocations: 0 / 0.5411 GB, free: 2.703 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.089e-05/0.1508, allocations: 4 kB / 0.5411 GB, free: 2.699 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001975/0.151, allocations: 153.7 kB / 0.5413 GB, free: 2.5 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 6.044e-05/0.1511, allocations: 14.58 kB / 0.5413 GB, free: 2.477 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.157e-05/0.1511, allocations: 12.89 kB / 0.5413 GB, free: 2.461 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.46e-06/0.1511, allocations: 0 / 0.5413 GB, free: 2.461 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001372/0.1513, allocations: 56.27 kB / 0.5413 GB, free: 2.391 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 1.002e-06/0.1513, allocations: 0 / 0.5413 GB, free: 2.391 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0002298/0.1515, allocations: 75.33 kB / 0.5414 GB, free: 2.305 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.699e-05/0.1516, allocations: 77.11 kB / 0.5415 GB, free: 2.211 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.522e-05/0.1517, allocations: 93.81 kB / 0.5416 GB, free: 2.109 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.874e-05/0.1517, allocations: 25.7 kB / 0.5416 GB, free: 2.078 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.26e-05/0.1517, allocations: 84.14 kB / 0.5417 GB, free: 1.992 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.61e-05/0.1518, allocations: 0 / 0.5417 GB, free: 1.992 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.897e-05/0.1518, allocations: 13.66 kB / 0.5417 GB, free: 1.973 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0002977/0.1521, allocations: 318.8 kB / 0.542 GB, free: 1.652 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.526e-05/0.1521, allocations: 16 kB / 0.542 GB, free: 1.637 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.432e-06/0.1521, allocations: 0 / 0.542 GB, free: 1.637 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.153e-05/0.1522, allocations: 60.27 kB / 0.5421 GB, free: 1.562 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.773e-06/0.1522, allocations: 0 / 0.5421 GB, free: 1.562 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.371e-05/0.1523, allocations: 59.41 kB / 0.5421 GB, free: 1.492 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.86e-05/0.1523, allocations: 33.69 kB / 0.5422 GB, free: 1.453 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.209e-06/0.1524, allocations: 0 / 0.5422 GB, free: 1.453 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.602e-05/0.1524, allocations: 3.938 kB / 0.5422 GB, free: 1.449 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.32e-07/0.1524, allocations: 0 / 0.5422 GB, free: 1.449 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.021e-06/0.1524, allocations: 4.094 kB / 0.5422 GB, free: 1.445 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.223e-05/0.1524, allocations: 4 kB / 0.5422 GB, free: 1.441 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.496e-06/0.1524, allocations: 0 / 0.5422 GB, free: 1.441 MB / 398.1 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.0001215/0.1526, allocations: 139.5 kB / 0.5423 GB, free: 1.289 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.01e-05/0.1526, allocations: 4 kB / 0.5423 GB, free: 1.285 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.482e-05/0.1526, allocations: 7.062 kB / 0.5423 GB, free: 1.281 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.683e-06/0.1526, allocations: 0 / 0.5423 GB, free: 1.281 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.879e-06/0.1526, allocations: 0 / 0.5423 GB, free: 1.281 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.571e-06/0.1526, allocations: 3.984 kB / 0.5423 GB, free: 1.277 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002276/0.1529, allocations: 145.7 kB / 0.5424 GB, free: 1.086 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.11e-07/0.1529, allocations: 0 / 0.5424 GB, free: 1.086 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.31e-07/0.1529, allocations: 4 kB / 0.5425 GB, free: 1.082 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.012e-06/0.1529, allocations: 0 / 0.5425 GB, free: 1.082 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.298e-05/0.1529, allocations: 3.938 kB / 0.5425 GB, free: 1.078 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.22e-07/0.1529, allocations: 0 / 0.5425 GB, free: 1.078 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.002e-06/0.1529, allocations: 0 / 0.5425 GB, free: 1.078 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001843/0.1531, allocations: 90.83 kB / 0.5425 GB, free: 0.9648 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.187e-05/0.1532, allocations: 93.06 kB / 0.5426 GB, free: 0.8555 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.558e-05/0.1532, allocations: 3.938 kB / 0.5426 GB, free: 0.8516 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.406e-06/0.1532, allocations: 0 / 0.5426 GB, free: 0.8516 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.895e-05/0.1532, allocations: 7.984 kB / 0.5426 GB, free: 0.8438 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.679e-06/0.1532, allocations: 0 / 0.5426 GB, free: 0.8438 MB / 398.1 MB Notification: Performance of sorting global known variables: time 5.486e-05/0.1533, allocations: 83.22 kB / 0.5427 GB, free: 0.7617 MB / 398.1 MB Notification: Performance of sort global known variables: time 9e-08/0.1533, allocations: 0 / 0.5427 GB, free: 0.7617 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002775/0.1536, allocations: 19.94 kB / 0.5427 GB, free: 0.7422 MB / 398.1 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.0007918/0.1544, allocations: 282.8 kB / 0.543 GB, free: 0.5117 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0001193/0.1545, allocations: 63.39 kB / 0.5431 GB, free: 448 kB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.924e-06/0.1545, allocations: 0 / 0.5431 GB, free: 448 kB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 4.041e-05/0.1546, allocations: 55.41 kB / 0.5431 GB, free: 380 kB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000128/0.1547, allocations: 0 / 0.5431 GB, free: 380 kB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003076/0.155, allocations: 81.14 kB / 0.5432 GB, free: 272 kB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004019/0.1554, allocations: 0.6729 MB / 0.5439 GB, free: 15.57 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 6.232e-06/0.1554, allocations: 0 / 0.5439 GB, free: 15.57 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.882e-05/0.1555, allocations: 11.56 kB / 0.5439 GB, free: 15.55 MB / 414.1 MB Notification: Performance of SimCode: time 2.7e-07/0.1555, allocations: 4 kB / 0.5439 GB, free: 15.55 MB / 414.1 MB Notification: Performance of Templates: time 0.004102/0.1596, allocations: 0.7853 MB / 0.5446 GB, free: 14.77 MB / 414.1 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.0.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.922573887743056]