Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Utilities.TestStreams.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.001312/0.001312, allocations: 117.1 kB / 19.13 MB, free: 3.945 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.001361/0.001361, allocations: 206.6 kB / 22.08 MB, free: 0.9961 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.438/1.438, allocations: 227.4 MB / 252.3 MB, free: 15.93 MB / 206.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.2255/0.2255, allocations: 46.17 MB / 351.8 MB, free: 14.4 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.TestStreams,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Utilities.TestStreams") translateModel(ModelicaTest.Utilities.TestStreams,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Utilities.TestStreams") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.004068/0.004068, allocations: 88.88 kB / 490.8 MB, free: 27.93 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.154/0.1581, allocations: 62.44 MB / 0.5403 GB, free: 4.336 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestStreams): time 0.001838/0.1599, allocations: 496.9 kB / 0.5408 GB, free: 3.844 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.000873/0.1608, allocations: 291.5 kB / 0.5411 GB, free: 3.559 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.421e-05/0.1609, allocations: 3.938 kB / 0.5411 GB, free: 3.555 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.62e-05/0.1609, allocations: 8 kB / 0.5411 GB, free: 3.547 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 7.504e-06/0.161, allocations: 0 / 0.5411 GB, free: 3.547 MB / 398.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/Utilities.mo:232:3-298:14:writable] Warning: Pure function 'ModelicaTest.Utilities.Streams' contains a call to impure function 'Modelica.Utilities.Streams.print'. Notification: Performance of NFTyping.typeClassSections: time 0.001056/0.162, allocations: 91.84 kB / 0.5412 GB, free: 3.461 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 5.9e-05/0.1621, allocations: 4 kB / 0.5412 GB, free: 3.457 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.054e-05/0.1622, allocations: 3.984 kB / 0.5412 GB, free: 3.453 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.617e-05/0.1622, allocations: 0 / 0.5412 GB, free: 3.453 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.755e-05/0.1622, allocations: 4 kB / 0.5412 GB, free: 3.449 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 6.402e-06/0.1622, allocations: 0 / 0.5412 GB, free: 3.449 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000254/0.1625, allocations: 107.9 kB / 0.5413 GB, free: 3.344 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 1.144e-05/0.1625, allocations: 3.984 kB / 0.5413 GB, free: 3.34 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.298e-05/0.1625, allocations: 7.938 kB / 0.5413 GB, free: 3.332 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002096/0.1627, allocations: 83.75 kB / 0.5414 GB, free: 3.25 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.234e-06/0.1628, allocations: 0 / 0.5414 GB, free: 3.25 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.953e-06/0.1628, allocations: 3.938 kB / 0.5414 GB, free: 3.246 MB / 398.1 MB Notification: Performance of Transformations before backend: time 5.521e-06/0.1628, allocations: 0 / 0.5414 GB, free: 3.246 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.0004306/0.1632, allocations: 365 kB / 0.5417 GB, free: 2.832 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.83e-05/0.1633, allocations: 8.031 kB / 0.5417 GB, free: 2.824 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.65e-05/0.1633, allocations: 4.938 kB / 0.5417 GB, free: 2.82 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001278/0.1634, allocations: 160.4 kB / 0.5419 GB, free: 2.625 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.698e-05/0.1635, allocations: 4.359 kB / 0.5419 GB, free: 2.621 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.135e-06/0.1635, allocations: 4.375 kB / 0.5419 GB, free: 2.617 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.855e-05/0.1636, allocations: 30.27 kB / 0.5419 GB, free: 2.582 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.985e-06/0.1636, allocations: 192 / 0.5419 GB, free: 2.582 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.05e-05/0.1636, allocations: 3.938 kB / 0.5419 GB, free: 2.578 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.549e-06/0.1636, allocations: 0 / 0.5419 GB, free: 2.578 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.766e-05/0.1636, allocations: 0 / 0.5419 GB, free: 2.578 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001593/0.1638, allocations: 149.7 kB / 0.5421 GB, free: 2.383 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.59e-05/0.1639, allocations: 22.5 kB / 0.5421 GB, free: 2.352 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.517e-05/0.1639, allocations: 8.859 kB / 0.5421 GB, free: 2.34 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.208e-06/0.1639, allocations: 4.094 kB / 0.5421 GB, free: 2.336 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.562e-05/0.164, allocations: 56.27 kB / 0.5421 GB, free: 2.266 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 9.52e-07/0.164, allocations: 0 / 0.5421 GB, free: 2.266 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001731/0.1641, allocations: 71.28 kB / 0.5422 GB, free: 2.184 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.666e-05/0.1642, allocations: 81.09 kB / 0.5423 GB, free: 2.086 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.393e-05/0.1643, allocations: 97.75 kB / 0.5424 GB, free: 1.98 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.499e-05/0.1643, allocations: 29.83 kB / 0.5424 GB, free: 1.945 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.327e-05/0.1643, allocations: 80.14 kB / 0.5425 GB, free: 1.863 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.375e-05/0.1644, allocations: 4 kB / 0.5425 GB, free: 1.859 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.005e-05/0.1644, allocations: 13.72 kB / 0.5425 GB, free: 1.84 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001419/0.1645, allocations: 310.8 kB / 0.5428 GB, free: 1.527 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.749e-06/0.1645, allocations: 0 / 0.5428 GB, free: 1.527 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.055e-05/0.1646, allocations: 4 kB / 0.5428 GB, free: 1.523 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.91e-05/0.1647, allocations: 68.33 kB / 0.5429 GB, free: 1.441 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.553e-06/0.1647, allocations: 0 / 0.5429 GB, free: 1.441 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 8.071e-05/0.1648, allocations: 67.33 kB / 0.5429 GB, free: 1.363 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.236e-05/0.1648, allocations: 33.7 kB / 0.543 GB, free: 1.324 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.56e-06/0.1648, allocations: 0 / 0.543 GB, free: 1.324 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.546e-05/0.1648, allocations: 3.938 kB / 0.543 GB, free: 1.32 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.112e-06/0.1648, allocations: 0 / 0.543 GB, free: 1.32 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.661e-06/0.1648, allocations: 0 / 0.543 GB, free: 1.32 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.611e-05/0.1649, allocations: 0 / 0.543 GB, free: 1.32 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.488e-06/0.1649, allocations: 4 kB / 0.543 GB, free: 1.316 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.0001065/0.165, allocations: 143.5 kB / 0.5431 GB, free: 1.16 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.325e-06/0.165, allocations: 0 / 0.5431 GB, free: 1.16 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.38e-05/0.165, allocations: 11.06 kB / 0.5431 GB, free: 1.152 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.723e-06/0.165, allocations: 0 / 0.5431 GB, free: 1.152 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.068e-06/0.165, allocations: 0 / 0.5431 GB, free: 1.152 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.735e-06/0.1651, allocations: 0 / 0.5431 GB, free: 1.152 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001199/0.1652, allocations: 145.7 kB / 0.5433 GB, free: 0.9609 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.182e-06/0.1652, allocations: 0 / 0.5433 GB, free: 0.9609 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.61e-07/0.1652, allocations: 0 / 0.5433 GB, free: 0.9609 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.596e-06/0.1652, allocations: 4 kB / 0.5433 GB, free: 0.957 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.003e-05/0.1652, allocations: 11.92 kB / 0.5433 GB, free: 0.9453 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.733e-06/0.1652, allocations: 0 / 0.5433 GB, free: 0.9453 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.21e-07/0.1652, allocations: 0 / 0.5433 GB, free: 0.9453 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001136/0.1653, allocations: 98.75 kB / 0.5434 GB, free: 0.8242 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.276e-05/0.1654, allocations: 77.11 kB / 0.5434 GB, free: 0.7305 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.418e-05/0.1654, allocations: 3.938 kB / 0.5434 GB, free: 0.7266 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.217e-05/0.1654, allocations: 4 kB / 0.5435 GB, free: 0.7227 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.243e-05/0.1654, allocations: 4.031 kB / 0.5435 GB, free: 0.7188 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.986e-06/0.1655, allocations: 7.938 kB / 0.5435 GB, free: 0.7109 MB / 398.1 MB Notification: Performance of sorting global known variables: time 3.313e-05/0.1655, allocations: 75.28 kB / 0.5435 GB, free: 0.6367 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1655, allocations: 0 / 0.5435 GB, free: 0.6367 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.00025/0.1658, allocations: 35.86 kB / 0.5436 GB, free: 0.6016 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.0006913/0.1665, allocations: 260.8 kB / 0.5438 GB, free: 396 kB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0001093/0.1666, allocations: 59.39 kB / 0.5439 GB, free: 324 kB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.923e-06/0.1666, allocations: 0 / 0.5439 GB, free: 324 kB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 3.797e-05/0.1666, allocations: 55.41 kB / 0.5439 GB, free: 256 kB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001254/0.1668, allocations: 7.938 kB / 0.5439 GB, free: 248 kB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002007/0.167, allocations: 110.9 kB / 0.544 GB, free: 104 kB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003182/0.1673, allocations: 0.6768 MB / 0.5447 GB, free: 15.4 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.543e-05/0.1673, allocations: 7.438 kB / 0.5447 GB, free: 15.39 MB / 414.1 MB Notification: Performance of SimCode: time 2.9e-07/0.1673, allocations: 0 / 0.5447 GB, free: 15.39 MB / 414.1 MB Notification: Performance of Templates: time 0.003193/0.1705, allocations: 1.159 MB / 0.5458 GB, free: 14.23 MB / 414.1 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_trunk_ModelicaTest.Utilities.TestStreams.makefile [Timeout 660] (rm -f ModelicaTest_trunk_ModelicaTest.Utilities.TestStreams.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Utilities.TestStreams.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Utilities.TestStreams.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Utilities.TestStreams.sim & ./ModelicaTest_trunk_ModelicaTest.Utilities.TestStreams -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Utilities.TestStreams.pipe 2>&1) [Timeout 480] diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Utilities.TestStreams_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Utilities/TestStreams/TestStreams.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Utilities.TestStreams.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: 7.61480396008119]