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.001797/0.001797, allocations: 116.5 kB / 18.5 MB, free: 4.434 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.001977/0.001977, allocations: 216.9 kB / 21.47 MB, free: 1.473 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.457/1.457, allocations: 230.2 MB / 254.5 MB, free: 15.26 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.2231/0.2231, allocations: 46.91 MB / 357.4 MB, free: 10.57 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: "" <> buildModelFMU(ModelicaTest.Utilities.TestStreams,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Utilities_TestStreams",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Utilities.TestStreams,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Utilities_TestStreams",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002207/0.002207, allocations: 79.86 kB / 0.4912 GB, free: 8.574 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1214/0.1236, allocations: 66 MB / 0.5557 GB, free: 6.441 MB / 414.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestStreams): time 0.001788/0.1254, allocations: 477 kB / 0.5561 GB, free: 5.969 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007785/0.1262, allocations: 307.5 kB / 0.5564 GB, free: 5.668 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.039e-05/0.1262, allocations: 0 / 0.5564 GB, free: 5.668 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 1.397e-05/0.1262, allocations: 0 / 0.5564 GB, free: 5.668 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 6.132e-06/0.1262, allocations: 0 / 0.5564 GB, free: 5.668 MB / 414.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.0008368/0.1271, allocations: 99.11 kB / 0.5565 GB, free: 5.574 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 5.35e-05/0.1271, allocations: 7.984 kB / 0.5565 GB, free: 5.566 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.113e-05/0.1271, allocations: 0 / 0.5565 GB, free: 5.566 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.968e-05/0.1272, allocations: 4 kB / 0.5565 GB, free: 5.562 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.444e-05/0.1272, allocations: 3.984 kB / 0.5565 GB, free: 5.559 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 5.931e-06/0.1272, allocations: 0 / 0.5565 GB, free: 5.559 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002175/0.1274, allocations: 107.9 kB / 0.5566 GB, free: 5.453 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 7.574e-06/0.1274, allocations: 0 / 0.5566 GB, free: 5.453 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 2.102e-05/0.1274, allocations: 7.938 kB / 0.5566 GB, free: 5.445 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001864/0.1276, allocations: 87.73 kB / 0.5567 GB, free: 5.359 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.42e-06/0.1276, allocations: 0 / 0.5567 GB, free: 5.359 MB / 414.1 MB Notification: Performance of FrontEnd: time 2.885e-06/0.1276, allocations: 4 kB / 0.5567 GB, free: 5.355 MB / 414.1 MB Notification: Performance of Transformations before backend: time 1.077e-05/0.1276, allocations: 4 kB / 0.5567 GB, free: 5.352 MB / 414.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.0004237/0.1281, allocations: 357.1 kB / 0.5571 GB, free: 4.945 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.369e-05/0.1281, allocations: 12.03 kB / 0.5571 GB, free: 4.934 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.982e-05/0.1281, allocations: 30.75 kB / 0.5571 GB, free: 4.895 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.422e-05/0.1282, allocations: 0.9375 kB / 0.5571 GB, free: 4.895 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001252/0.1283, allocations: 164.4 kB / 0.5573 GB, free: 4.695 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.222e-05/0.1283, allocations: 384 / 0.5573 GB, free: 4.695 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.456e-05/0.1283, allocations: 4.375 kB / 0.5573 GB, free: 4.691 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.702e-05/0.1284, allocations: 30.27 kB / 0.5573 GB, free: 4.656 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.471e-05/0.1284, allocations: 3.938 kB / 0.5573 GB, free: 4.652 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.095e-06/0.1284, allocations: 0 / 0.5573 GB, free: 4.652 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.258e-06/0.1284, allocations: 0 / 0.5573 GB, free: 4.652 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.13e-05/0.1285, allocations: 11.88 kB / 0.5573 GB, free: 4.641 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001597/0.1286, allocations: 141.7 kB / 0.5575 GB, free: 4.453 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.872e-05/0.1287, allocations: 26.59 kB / 0.5575 GB, free: 4.418 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.845e-05/0.1287, allocations: 6.562 kB / 0.5575 GB, free: 4.41 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.235e-06/0.1287, allocations: 4 kB / 0.5575 GB, free: 4.406 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.093e-05/0.1288, allocations: 56.27 kB / 0.5575 GB, free: 4.336 MB / 414.1 MB Notification: Performance of pre-optimization done (n=1): time 2.996e-06/0.1288, allocations: 3.984 kB / 0.5575 GB, free: 4.332 MB / 414.1 MB Notification: Performance of matching and sorting (n=1): time 0.0002033/0.129, allocations: 71.33 kB / 0.5576 GB, free: 4.25 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.695e-05/0.129, allocations: 85.05 kB / 0.5577 GB, free: 4.148 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.298e-05/0.1291, allocations: 93.81 kB / 0.5578 GB, free: 4.047 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 1.516e-05/0.1291, allocations: 29.7 kB / 0.5578 GB, free: 4.012 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.774e-05/0.1291, allocations: 84.27 kB / 0.5579 GB, free: 3.926 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.455e-05/0.1291, allocations: 0 / 0.5579 GB, free: 3.926 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.714e-05/0.1292, allocations: 9.719 kB / 0.5579 GB, free: 3.91 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001377/0.1293, allocations: 314.8 kB / 0.5582 GB, free: 3.594 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.828e-06/0.1293, allocations: 0 / 0.5582 GB, free: 3.594 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.46e-06/0.1293, allocations: 0 / 0.5582 GB, free: 3.594 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.996e-05/0.1294, allocations: 68.25 kB / 0.5583 GB, free: 3.512 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.944e-06/0.1294, allocations: 0 / 0.5583 GB, free: 3.512 MB / 414.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.554e-05/0.1295, allocations: 67.41 kB / 0.5583 GB, free: 3.434 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.404e-05/0.1295, allocations: 29.7 kB / 0.5584 GB, free: 3.398 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.061e-06/0.1295, allocations: 3.938 kB / 0.5584 GB, free: 3.395 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.053e-05/0.1295, allocations: 0 / 0.5584 GB, free: 3.395 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.22e-07/0.1295, allocations: 0 / 0.5584 GB, free: 3.395 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.522e-06/0.1295, allocations: 4 kB / 0.5584 GB, free: 3.391 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.417e-05/0.1295, allocations: 0 / 0.5584 GB, free: 3.391 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.262e-06/0.1295, allocations: 0 / 0.5584 GB, free: 3.391 MB / 414.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.744e-05/0.1296, allocations: 143.5 kB / 0.5585 GB, free: 3.234 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.735e-06/0.1297, allocations: 4.031 kB / 0.5585 GB, free: 3.23 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.498e-06/0.1297, allocations: 7.062 kB / 0.5585 GB, free: 3.227 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.51e-07/0.1297, allocations: 0 / 0.5585 GB, free: 3.227 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.446e-06/0.1297, allocations: 0 / 0.5585 GB, free: 3.227 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.633e-06/0.1297, allocations: 0 / 0.5585 GB, free: 3.227 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001098/0.1298, allocations: 149.7 kB / 0.5587 GB, free: 3.031 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.006e-06/0.1298, allocations: 4 kB / 0.5587 GB, free: 3.027 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.1e-07/0.1298, allocations: 0 / 0.5587 GB, free: 3.027 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.172e-06/0.1298, allocations: 3.938 kB / 0.5587 GB, free: 3.023 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.184e-06/0.1298, allocations: 3.938 kB / 0.5587 GB, free: 3.02 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.71e-07/0.1298, allocations: 0 / 0.5587 GB, free: 3.02 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.01e-07/0.1298, allocations: 4 kB / 0.5587 GB, free: 3.016 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.958e-05/0.1299, allocations: 94.77 kB / 0.5588 GB, free: 2.898 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.942e-05/0.1299, allocations: 77.11 kB / 0.5588 GB, free: 2.805 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.35e-05/0.13, allocations: 3.938 kB / 0.5588 GB, free: 2.801 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.101e-05/0.13, allocations: 4 kB / 0.5588 GB, free: 2.797 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.792e-05/0.13, allocations: 0 / 0.5588 GB, free: 2.797 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.906e-06/0.13, allocations: 0 / 0.5588 GB, free: 2.797 MB / 414.1 MB Notification: Performance of sorting global known variables: time 3.333e-05/0.13, allocations: 79.31 kB / 0.5589 GB, free: 2.719 MB / 414.1 MB Notification: Performance of sort global known variables: time 7e-08/0.13, allocations: 0 / 0.5589 GB, free: 2.719 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0002566/0.1303, allocations: 39.86 kB / 0.559 GB, free: 2.68 MB / 414.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.0009741/0.1312, allocations: 0.798 MB / 0.5597 GB, free: 1.895 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0001015/0.1314, allocations: 59.39 kB / 0.5598 GB, free: 1.824 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 1.653e-06/0.1314, allocations: 4 kB / 0.5598 GB, free: 1.82 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 3.632e-05/0.1314, allocations: 59.45 kB / 0.5599 GB, free: 1.75 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001283/0.1315, allocations: 12.91 kB / 0.5599 GB, free: 1.742 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003086/0.1318, allocations: 126.6 kB / 0.56 GB, free: 1.578 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002955/0.1321, allocations: 0.669 MB / 0.5606 GB, free: 0.8828 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 6.582e-06/0.1321, allocations: 0 / 0.5606 GB, free: 0.8828 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.677e-05/0.1321, allocations: 11.44 kB / 0.5607 GB, free: 0.8711 MB / 414.1 MB Notification: Performance of SimCode: time 3.21e-07/0.1321, allocations: 0 / 0.5607 GB, free: 0.8711 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02366/0.1558, allocations: 1.82 MB / 0.5624 GB, free: 15.11 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.931/8.087, allocations: 6.125 kB / 0.5624 GB, free: 15.11 MB / 430.1 MB " [Timeout remaining time 652] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Utilities.TestStreams_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Utilities_TestStreams_fmu --startTime=0 --stopTime=0 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Utilities_TestStreams.fmu > ModelicaTest_trunk_ModelicaTest.Utilities.TestStreams.pipe 2>&1) [Timeout 52.5] 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: 10.877084642183036]