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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) 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=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Utilities.TestStreams") translateModel(ModelicaTest.Utilities.TestStreams,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Utilities.TestStreams") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009279/0.0009277, allocations: 102.1 kB / 17 MB, free: 6.418 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001314/0.001314, allocations: 191 kB / 17.9 MB, free: 5.938 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.475/1.475, allocations: 227.7 MB / 246.4 MB, free: 9.797 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2483/0.2483, allocations: 46.19 MB / 344.8 MB, free: 11.31 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000295/0.0002952, allocations: 8 kB / 418.8 MB, free: 20.09 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1394/0.1397, allocations: 63.57 MB / 482.4 MB, free: 4.512 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestStreams): time 0.0006103/0.1404, allocations: 201.2 kB / 482.6 MB, free: 4.312 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007076/0.1411, allocations: 279.6 kB / 482.9 MB, free: 4.043 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.721e-05/0.1411, allocations: 0 / 482.9 MB, free: 4.043 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.356e-05/0.1412, allocations: 0 / 482.9 MB, free: 4.043 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 7.754e-06/0.1412, allocations: 0 / 482.9 MB, free: 4.043 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/Utilities.mo:221:3-287: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.0005577/0.1417, allocations: 75.84 kB / 482.9 MB, free: 3.969 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 3.501e-05/0.1418, allocations: 0 / 482.9 MB, free: 3.969 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.095e-05/0.1418, allocations: 4 kB / 483 MB, free: 3.965 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.544e-05/0.1418, allocations: 0 / 483 MB, free: 3.965 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.38e-05/0.1419, allocations: 0 / 483 MB, free: 3.965 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.753e-06/0.1419, allocations: 0 / 483 MB, free: 3.965 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002188/0.1421, allocations: 103.8 kB / 483.1 MB, free: 3.863 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.087e-05/0.1421, allocations: 3.984 kB / 483.1 MB, free: 3.859 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 3.616e-05/0.1422, allocations: 33.64 kB / 483.1 MB, free: 3.82 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001454/0.1423, allocations: 47.91 kB / 483.1 MB, free: 3.773 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.893e-06/0.1423, allocations: 4 kB / 483.1 MB, free: 3.77 MB / 350.1 MB Notification: Performance of FrontEnd: time 3.286e-06/0.1424, allocations: 4 kB / 483.1 MB, free: 3.766 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.462e-06/0.1424, allocations: 0 / 483.1 MB, free: 3.766 MB / 350.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.0003235/0.1427, allocations: 361.1 kB / 483.5 MB, free: 3.359 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.169e-05/0.1427, allocations: 8.031 kB / 483.5 MB, free: 3.352 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.029e-05/0.1428, allocations: 0 / 483.5 MB, free: 3.352 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.958e-05/0.1429, allocations: 163 kB / 483.7 MB, free: 3.152 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.344e-05/0.1429, allocations: 4 kB / 483.7 MB, free: 3.148 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.077e-05/0.1429, allocations: 0 / 483.7 MB, free: 3.148 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.139e-05/0.143, allocations: 29.69 kB / 483.7 MB, free: 3.113 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.492e-06/0.143, allocations: 3.938 kB / 483.7 MB, free: 3.109 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.626e-06/0.143, allocations: 8 kB / 483.7 MB, free: 3.102 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.508e-06/0.1431, allocations: 0 / 483.7 MB, free: 3.102 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2e-05/0.1431, allocations: 4 kB / 483.7 MB, free: 3.098 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001397/0.1432, allocations: 145.6 kB / 483.9 MB, free: 2.906 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.711e-05/0.1433, allocations: 22.59 kB / 483.9 MB, free: 2.875 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.225e-05/0.1433, allocations: 4.859 kB / 483.9 MB, free: 2.867 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.803e-06/0.1433, allocations: 0 / 483.9 MB, free: 2.867 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.52e-05/0.1434, allocations: 64.33 kB / 483.9 MB, free: 2.789 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 2.305e-06/0.1434, allocations: 0 / 483.9 MB, free: 2.789 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001714/0.1436, allocations: 67.34 kB / 484 MB, free: 2.711 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.163e-05/0.1436, allocations: 81.09 kB / 484.1 MB, free: 2.613 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.877e-05/0.1437, allocations: 89.86 kB / 484.2 MB, free: 2.516 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.356e-05/0.1437, allocations: 25.7 kB / 484.2 MB, free: 2.484 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.574e-05/0.1437, allocations: 80.14 kB / 484.3 MB, free: 2.402 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.149e-05/0.1438, allocations: 0 / 484.3 MB, free: 2.402 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.893e-06/0.1438, allocations: 0 / 484.3 MB, free: 2.402 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001208/0.1439, allocations: 319 kB / 484.6 MB, free: 2.082 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.806e-06/0.1439, allocations: 4 kB / 484.6 MB, free: 2.078 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.28e-06/0.1439, allocations: 0 / 484.6 MB, free: 2.078 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.599e-05/0.1439, allocations: 25.7 kB / 484.6 MB, free: 2.047 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.713e-06/0.144, allocations: 0 / 484.6 MB, free: 2.047 MB / 350.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.219e-05/0.144, allocations: 71.28 kB / 484.7 MB, free: 1.965 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.724e-05/0.1441, allocations: 37.64 kB / 484.7 MB, free: 1.922 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.069e-06/0.1441, allocations: 0 / 484.7 MB, free: 1.922 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.272e-05/0.1441, allocations: 4.094 kB / 484.7 MB, free: 1.918 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.12e-07/0.1441, allocations: 0 / 484.7 MB, free: 1.918 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.248e-06/0.1441, allocations: 0 / 484.7 MB, free: 1.918 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.831e-05/0.1441, allocations: 0 / 484.7 MB, free: 1.918 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.831e-06/0.1442, allocations: 0 / 484.7 MB, free: 1.918 MB / 350.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 9.487e-05/0.1443, allocations: 143.5 kB / 484.9 MB, free: 1.762 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.314e-05/0.1443, allocations: 7.938 kB / 484.9 MB, free: 1.754 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.011e-05/0.1443, allocations: 3.125 kB / 484.9 MB, free: 1.754 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.968e-06/0.1443, allocations: 3.984 kB / 484.9 MB, free: 1.75 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.107e-06/0.1443, allocations: 4 kB / 484.9 MB, free: 1.746 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.595e-06/0.1443, allocations: 4 kB / 484.9 MB, free: 1.742 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000101/0.1444, allocations: 145.7 kB / 485 MB, free: 1.551 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.112e-06/0.1444, allocations: 0 / 485 MB, free: 1.551 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.21e-07/0.1444, allocations: 0 / 485 MB, free: 1.551 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.808e-06/0.1444, allocations: 3.953 kB / 485 MB, free: 1.547 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.947e-06/0.1445, allocations: 7.984 kB / 485 MB, free: 1.539 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.262e-06/0.1445, allocations: 4 kB / 485.1 MB, free: 1.535 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.92e-07/0.1445, allocations: 0 / 485.1 MB, free: 1.535 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.773e-05/0.1446, allocations: 90.78 kB / 485.1 MB, free: 1.422 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.685e-05/0.1446, allocations: 85.09 kB / 485.2 MB, free: 1.32 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.78e-05/0.1447, allocations: 3.953 kB / 485.2 MB, free: 1.316 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.075e-05/0.1447, allocations: 0 / 485.2 MB, free: 1.316 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.545e-05/0.1447, allocations: 0 / 485.2 MB, free: 1.316 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.575e-06/0.1447, allocations: 0 / 485.2 MB, free: 1.316 MB / 350.1 MB Notification: Performance of sorting global known variables: time 2.68e-05/0.1447, allocations: 79.28 kB / 485.3 MB, free: 1.238 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.1447, allocations: 0 / 485.3 MB, free: 1.238 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002651/0.145, allocations: 32 kB / 485.3 MB, free: 1.207 MB / 350.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0005379/0.1456, allocations: 273.7 kB / 485.6 MB, free: 0.9727 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 9.656e-05/0.1457, allocations: 63.41 kB / 485.7 MB, free: 0.8984 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.753e-06/0.1457, allocations: 3.938 kB / 485.7 MB, free: 0.8945 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 2.962e-05/0.1457, allocations: 59.39 kB / 485.7 MB, free: 0.8242 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001323/0.1458, allocations: 0 / 485.7 MB, free: 0.8242 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001808/0.146, allocations: 74.67 kB / 485.8 MB, free: 0.7227 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002148/0.1463, allocations: 0.6731 MB / 486.5 MB, free: 24 kB / 350.1 MB Notification: Performance of simCode: alias equations: time 5.771e-06/0.1463, allocations: 0 / 486.5 MB, free: 24 kB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.159e-05/0.1463, allocations: 11.44 kB / 486.5 MB, free: 16 kB / 350.1 MB Notification: Performance of SimCode: time 4.4e-07/0.1463, allocations: 4.125 kB / 486.5 MB, free: 12 kB / 350.1 MB Notification: Performance of Templates: time 0.003637/0.1499, allocations: 0.9246 MB / 487.4 MB, free: 15.09 MB / 366.1 MB make -j1 -f ModelicaTest_trunk_ModelicaTest.Utilities.TestStreams.makefile (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) 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) Reference file matches