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.001174/0.001174, allocations: 104.1 kB / 17.63 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00133/0.00133, allocations: 214.4 kB / 18.58 MB, free: 4.406 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.394/1.394, allocations: 227.4 MB / 246.8 MB, free: 10.52 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2103/0.2103, allocations: 46.11 MB / 344.1 MB, free: 11.55 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001406/0.001406, allocations: 76.97 kB / 417.6 MB, free: 19.71 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1335/0.1349, allocations: 62.44 MB / 480 MB, free: 5.258 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestStreams): time 0.001799/0.1368, allocations: 475 kB / 480.5 MB, free: 4.793 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007725/0.1376, allocations: 305.7 kB / 480.8 MB, free: 4.496 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.752e-05/0.1376, allocations: 0 / 480.8 MB, free: 4.496 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.461e-05/0.1376, allocations: 0 / 480.8 MB, free: 4.496 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 4.278e-06/0.1377, allocations: 0 / 480.8 MB, free: 4.496 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.0007779/0.1384, allocations: 94.27 kB / 480.9 MB, free: 4.406 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 5.631e-05/0.1385, allocations: 11.94 kB / 480.9 MB, free: 4.395 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.203e-05/0.1386, allocations: 0 / 480.9 MB, free: 4.395 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.353e-05/0.1386, allocations: 3.938 kB / 480.9 MB, free: 4.391 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.923e-05/0.1386, allocations: 0 / 480.9 MB, free: 4.391 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.31e-06/0.1386, allocations: 0 / 480.9 MB, free: 4.391 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000169/0.1388, allocations: 99.91 kB / 481 MB, free: 4.293 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.434e-06/0.1388, allocations: 4 kB / 481 MB, free: 4.289 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.319e-05/0.1388, allocations: 4 kB / 481 MB, free: 4.285 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00016/0.139, allocations: 87.84 kB / 481.1 MB, free: 4.199 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.07e-06/0.139, allocations: 0 / 481.1 MB, free: 4.199 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.693e-06/0.139, allocations: 0 / 481.1 MB, free: 4.199 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.394e-06/0.139, allocations: 0 / 481.1 MB, free: 4.199 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.0003262/0.1394, allocations: 365.2 kB / 481.4 MB, free: 3.785 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.19e-05/0.1394, allocations: 8.031 kB / 481.4 MB, free: 3.777 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.832e-05/0.1394, allocations: 0.9375 kB / 481.4 MB, free: 3.777 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.738e-05/0.1395, allocations: 164.4 kB / 481.6 MB, free: 3.578 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.099e-05/0.1395, allocations: 4.375 kB / 481.6 MB, free: 3.574 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.267e-06/0.1396, allocations: 384 / 481.6 MB, free: 3.574 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.517e-05/0.1396, allocations: 30.2 kB / 481.6 MB, free: 3.539 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.524e-06/0.1396, allocations: 4.188 kB / 481.6 MB, free: 3.535 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.928e-06/0.1397, allocations: 7.922 kB / 481.6 MB, free: 3.527 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.038e-06/0.1397, allocations: 0 / 481.6 MB, free: 3.527 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.522e-05/0.1397, allocations: 0 / 481.6 MB, free: 3.527 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001577/0.1399, allocations: 149.7 kB / 481.8 MB, free: 3.332 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.7e-05/0.1399, allocations: 22.61 kB / 481.8 MB, free: 3.301 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.556e-05/0.1399, allocations: 4.859 kB / 481.8 MB, free: 3.293 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.899e-06/0.1399, allocations: 3.984 kB / 481.8 MB, free: 3.289 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.122e-05/0.14, allocations: 64.27 kB / 481.9 MB, free: 3.211 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 7.81e-07/0.14, allocations: 0 / 481.9 MB, free: 3.211 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001834/0.1402, allocations: 71.33 kB / 482 MB, free: 3.129 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.737e-05/0.1403, allocations: 81.05 kB / 482 MB, free: 3.031 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.61e-05/0.1403, allocations: 93.98 kB / 482.1 MB, free: 2.93 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.271e-05/0.1403, allocations: 25.7 kB / 482.2 MB, free: 2.898 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.51e-05/0.1404, allocations: 80.14 kB / 482.2 MB, free: 2.816 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.783e-05/0.1404, allocations: 0 / 482.2 MB, free: 2.816 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.907e-05/0.1404, allocations: 17.7 kB / 482.2 MB, free: 2.793 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001114/0.1405, allocations: 314.8 kB / 482.6 MB, free: 2.477 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.032e-05/0.1405, allocations: 3.938 kB / 482.6 MB, free: 2.473 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.915e-06/0.1406, allocations: 7.938 kB / 482.6 MB, free: 2.465 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.592e-05/0.1406, allocations: 60.33 kB / 482.6 MB, free: 2.391 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.273e-06/0.1406, allocations: 0 / 482.6 MB, free: 2.391 MB / 350.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.673e-05/0.1407, allocations: 63.39 kB / 482.7 MB, free: 2.316 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.216e-05/0.1407, allocations: 33.7 kB / 482.7 MB, free: 2.277 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.35e-06/0.1407, allocations: 0 / 482.7 MB, free: 2.277 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.38e-05/0.1408, allocations: 3.938 kB / 482.7 MB, free: 2.273 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.12e-07/0.1408, allocations: 0 / 482.7 MB, free: 2.273 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.969e-06/0.1408, allocations: 0 / 482.7 MB, free: 2.273 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.718e-05/0.1408, allocations: 0 / 482.7 MB, free: 2.273 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.616e-06/0.1408, allocations: 12.02 kB / 482.7 MB, free: 2.262 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.107e-05/0.1409, allocations: 135.5 kB / 482.9 MB, free: 2.113 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.855e-06/0.1409, allocations: 0 / 482.9 MB, free: 2.113 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.243e-05/0.1409, allocations: 11.05 kB / 482.9 MB, free: 2.105 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.886e-06/0.1409, allocations: 0 / 482.9 MB, free: 2.105 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.597e-06/0.1409, allocations: 3.938 kB / 482.9 MB, free: 2.102 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.054e-06/0.1409, allocations: 4 kB / 482.9 MB, free: 2.098 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.335e-05/0.141, allocations: 141.7 kB / 483 MB, free: 1.91 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.92e-07/0.1411, allocations: 0 / 483 MB, free: 1.91 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.91e-07/0.1411, allocations: 0 / 483 MB, free: 1.91 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.213e-06/0.1411, allocations: 4 kB / 483 MB, free: 1.906 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.534e-06/0.1411, allocations: 3.938 kB / 483 MB, free: 1.902 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.575e-06/0.1411, allocations: 7.984 kB / 483 MB, free: 1.895 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.02e-07/0.1411, allocations: 0 / 483 MB, free: 1.895 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.384e-05/0.1412, allocations: 82.84 kB / 483.1 MB, free: 1.789 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.877e-05/0.1412, allocations: 81.11 kB / 483.2 MB, free: 1.691 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.703e-05/0.1412, allocations: 7.922 kB / 483.2 MB, free: 1.684 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.947e-06/0.1413, allocations: 4.031 kB / 483.2 MB, free: 1.68 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.378e-05/0.1413, allocations: 0 / 483.2 MB, free: 1.68 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.008e-06/0.1413, allocations: 4 kB / 483.2 MB, free: 1.676 MB / 350.1 MB Notification: Performance of sorting global known variables: time 2.541e-05/0.1413, allocations: 79.28 kB / 483.3 MB, free: 1.598 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1413, allocations: 0 / 483.3 MB, free: 1.598 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000248/0.1416, allocations: 28 kB / 483.3 MB, free: 1.57 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 (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.0004928/0.1421, allocations: 284.9 kB / 483.6 MB, free: 1.328 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 8.763e-05/0.1422, allocations: 55.41 kB / 483.7 MB, free: 1.262 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.309e-06/0.1422, allocations: 0 / 483.7 MB, free: 1.262 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 3.148e-05/0.1422, allocations: 63.38 kB / 483.7 MB, free: 1.188 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001215/0.1424, allocations: 10.52 kB / 483.7 MB, free: 1.18 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001661/0.1425, allocations: 84.86 kB / 483.8 MB, free: 1.07 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002123/0.1427, allocations: 0.6729 MB / 484.5 MB, free: 380 kB / 350.1 MB Notification: Performance of simCode: alias equations: time 6.002e-06/0.1428, allocations: 0 / 484.5 MB, free: 380 kB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.117e-06/0.1428, allocations: 7.438 kB / 484.5 MB, free: 376 kB / 350.1 MB Notification: Performance of SimCode: time 2.2e-07/0.1428, allocations: 0 / 484.5 MB, free: 376 kB / 350.1 MB Notification: Performance of Templates: time 0.003298/0.1461, allocations: 0.9763 MB / 485.5 MB, free: 15.39 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