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.001547/0.001547, allocations: 114.8 kB / 18.45 MB, free: 4.613 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.001612/0.001612, allocations: 206.6 kB / 21.4 MB, free: 1.668 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.528/1.528, allocations: 227.4 MB / 251.6 MB, free: 68 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.2261/0.2261, allocations: 46.17 MB / 351.1 MB, free: 14.28 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.002228/0.002228, allocations: 80.69 kB / 490.2 MB, free: 28.07 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1203/0.1226, allocations: 62.45 MB / 0.5397 GB, free: 4.273 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestStreams): time 0.001576/0.1242, allocations: 486.3 kB / 0.5401 GB, free: 3.793 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007451/0.125, allocations: 303.4 kB / 0.5404 GB, free: 3.496 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.84e-05/0.125, allocations: 0 / 0.5404 GB, free: 3.496 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.673e-05/0.125, allocations: 0 / 0.5404 GB, free: 3.496 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 4.559e-06/0.125, allocations: 0 / 0.5404 GB, free: 3.496 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.0007681/0.1258, allocations: 93.81 kB / 0.5405 GB, free: 3.406 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 5.042e-05/0.1259, allocations: 7.984 kB / 0.5405 GB, free: 3.398 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 2.981e-05/0.1259, allocations: 0 / 0.5405 GB, free: 3.398 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.21e-05/0.1259, allocations: 0 / 0.5405 GB, free: 3.398 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.723e-05/0.1259, allocations: 0 / 0.5405 GB, free: 3.398 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 5.31e-06/0.126, allocations: 4 kB / 0.5405 GB, free: 3.395 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001898/0.1262, allocations: 111.9 kB / 0.5406 GB, free: 3.285 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 5.421e-06/0.1262, allocations: 0 / 0.5406 GB, free: 3.285 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 1.668e-05/0.1262, allocations: 0 / 0.5406 GB, free: 3.285 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000163/0.1264, allocations: 91.73 kB / 0.5407 GB, free: 3.195 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.76e-06/0.1264, allocations: 3.984 kB / 0.5407 GB, free: 3.191 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.112e-06/0.1264, allocations: 0 / 0.5407 GB, free: 3.191 MB / 398.1 MB Notification: Performance of Transformations before backend: time 7.233e-06/0.1264, allocations: 0 / 0.5407 GB, free: 3.191 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.0003523/0.1267, allocations: 364 kB / 0.5411 GB, free: 2.781 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.341e-05/0.1268, allocations: 8.031 kB / 0.5411 GB, free: 2.773 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.536e-05/0.1268, allocations: 12.88 kB / 0.5411 GB, free: 2.762 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001074/0.1269, allocations: 160.4 kB / 0.5412 GB, free: 2.566 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.267e-06/0.1269, allocations: 384 / 0.5412 GB, free: 2.566 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.856e-06/0.127, allocations: 384 / 0.5412 GB, free: 2.566 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.444e-05/0.127, allocations: 34.27 kB / 0.5413 GB, free: 2.527 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.201e-06/0.127, allocations: 192 / 0.5413 GB, free: 2.527 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.596e-06/0.1271, allocations: 3.938 kB / 0.5413 GB, free: 2.523 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.293e-06/0.1271, allocations: 3.984 kB / 0.5413 GB, free: 2.52 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.423e-05/0.1271, allocations: 0 / 0.5413 GB, free: 2.52 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001369/0.1272, allocations: 149.7 kB / 0.5414 GB, free: 2.324 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.942e-05/0.1273, allocations: 18.52 kB / 0.5414 GB, free: 2.297 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.237e-05/0.1273, allocations: 4.859 kB / 0.5414 GB, free: 2.289 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.02e-05/0.1273, allocations: 0 / 0.5414 GB, free: 2.289 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.066e-05/0.1274, allocations: 64.36 kB / 0.5415 GB, free: 2.211 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 2.745e-06/0.1274, allocations: 0 / 0.5415 GB, free: 2.211 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001902/0.1276, allocations: 71.27 kB / 0.5416 GB, free: 2.129 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.175e-05/0.1276, allocations: 85.17 kB / 0.5416 GB, free: 2.027 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.493e-05/0.1277, allocations: 97.75 kB / 0.5417 GB, free: 1.922 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.352e-05/0.1277, allocations: 25.7 kB / 0.5418 GB, free: 1.891 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.438e-05/0.1278, allocations: 80.14 kB / 0.5418 GB, free: 1.809 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.552e-05/0.1278, allocations: 4 kB / 0.5418 GB, free: 1.805 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.775e-05/0.1278, allocations: 13.72 kB / 0.5419 GB, free: 1.785 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001445/0.128, allocations: 314.8 kB / 0.5422 GB, free: 1.469 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.186e-06/0.128, allocations: 0 / 0.5422 GB, free: 1.469 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.063e-06/0.128, allocations: 8 kB / 0.5422 GB, free: 1.461 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.216e-05/0.128, allocations: 60.27 kB / 0.5422 GB, free: 1.387 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.412e-06/0.1281, allocations: 4 kB / 0.5422 GB, free: 1.383 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.39e-05/0.1281, allocations: 63.39 kB / 0.5423 GB, free: 1.309 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.246e-05/0.1282, allocations: 35.89 kB / 0.5423 GB, free: 1.27 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.871e-06/0.1282, allocations: 0 / 0.5423 GB, free: 1.27 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.426e-05/0.1282, allocations: 11.86 kB / 0.5423 GB, free: 1.258 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.32e-07/0.1282, allocations: 0 / 0.5423 GB, free: 1.258 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.597e-06/0.1282, allocations: 0 / 0.5423 GB, free: 1.258 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.456e-05/0.1282, allocations: 4.094 kB / 0.5423 GB, free: 1.254 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.65e-06/0.1282, allocations: 0 / 0.5423 GB, free: 1.254 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 9.774e-05/0.1283, allocations: 135.5 kB / 0.5425 GB, free: 1.105 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.454e-06/0.1284, allocations: 0 / 0.5425 GB, free: 1.105 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.141e-05/0.1284, allocations: 11.05 kB / 0.5425 GB, free: 1.098 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.996e-06/0.1284, allocations: 4 kB / 0.5425 GB, free: 1.094 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.076e-06/0.1284, allocations: 0 / 0.5425 GB, free: 1.094 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.824e-06/0.1284, allocations: 0 / 0.5425 GB, free: 1.094 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001121/0.1285, allocations: 145.7 kB / 0.5426 GB, free: 0.9023 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.51e-07/0.1285, allocations: 4 kB / 0.5426 GB, free: 0.8984 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.5e-07/0.1285, allocations: 0 / 0.5426 GB, free: 0.8984 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.363e-06/0.1285, allocations: 0 / 0.5426 GB, free: 0.8984 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.698e-06/0.1285, allocations: 7.938 kB / 0.5426 GB, free: 0.8906 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.01e-07/0.1286, allocations: 0 / 0.5426 GB, free: 0.8906 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.828e-06/0.1286, allocations: 3.984 kB / 0.5426 GB, free: 0.8867 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001009/0.1287, allocations: 90.78 kB / 0.5427 GB, free: 0.7734 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.009e-05/0.1287, allocations: 77.11 kB / 0.5428 GB, free: 0.6797 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.869e-05/0.1287, allocations: 11.95 kB / 0.5428 GB, free: 0.668 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.007e-06/0.1288, allocations: 3.938 kB / 0.5428 GB, free: 0.6641 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.256e-05/0.1288, allocations: 0 / 0.5428 GB, free: 0.6641 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.769e-06/0.1288, allocations: 4 kB / 0.5428 GB, free: 0.6602 MB / 398.1 MB Notification: Performance of sorting global known variables: time 4.073e-05/0.1288, allocations: 75.28 kB / 0.5429 GB, free: 0.5859 MB / 398.1 MB Notification: Performance of sort global known variables: time 9.1e-08/0.1288, allocations: 0 / 0.5429 GB, free: 0.5859 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002461/0.1291, allocations: 35.88 kB / 0.5429 GB, free: 0.5508 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.0006725/0.1298, allocations: 268.8 kB / 0.5432 GB, free: 332 kB / 398.1 MB Notification: Performance of simCode: created initialization part: time 9.914e-05/0.1299, allocations: 55.41 kB / 0.5432 GB, free: 264 kB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.174e-06/0.1299, allocations: 0 / 0.5432 GB, free: 264 kB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 3.986e-05/0.1299, allocations: 67.45 kB / 0.5433 GB, free: 184 kB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001201/0.1301, allocations: 5.719 kB / 0.5433 GB, free: 180 kB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001664/0.1302, allocations: 80.94 kB / 0.5434 GB, free: 72 kB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003356/0.1306, allocations: 0.6729 MB / 0.544 GB, free: 15.37 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 6.302e-06/0.1306, allocations: 0 / 0.544 GB, free: 15.37 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.356e-05/0.1306, allocations: 7.438 kB / 0.544 GB, free: 15.36 MB / 414.1 MB Notification: Performance of SimCode: time 2.31e-07/0.1306, allocations: 0 / 0.544 GB, free: 15.36 MB / 414.1 MB Notification: Performance of Templates: time 0.003933/0.1345, allocations: 0.9766 MB / 0.545 GB, free: 14.39 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Utilities/TestStreams/TestStreams.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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: 4.8401295663788915]