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.001149/0.001149, allocations: 104.2 kB / 17.2 MB, free: 6.266 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001267/0.001267, allocations: 209.7 kB / 18.14 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.491/1.491, allocations: 227.4 MB / 246.3 MB, free: 9.047 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2247/0.2247, allocations: 46.1 MB / 343.6 MB, free: 11.57 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001423/0.001423, allocations: 72.23 kB / 416.8 MB, free: 20.18 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.136/0.1375, allocations: 62.44 MB / 479.3 MB, free: 5.719 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestStreams): time 0.001828/0.1393, allocations: 0.5331 MB / 479.8 MB, free: 5.18 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007773/0.1401, allocations: 309.8 kB / 480.1 MB, free: 4.879 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.102e-05/0.1402, allocations: 4 kB / 480.1 MB, free: 4.875 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.64e-05/0.1402, allocations: 0 / 480.1 MB, free: 4.875 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 5.991e-06/0.1402, allocations: 0 / 480.1 MB, free: 4.875 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.0007834/0.141, allocations: 77.33 kB / 480.2 MB, free: 4.805 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 3.749e-05/0.141, allocations: 0 / 480.2 MB, free: 4.805 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.483e-05/0.1411, allocations: 4 kB / 480.2 MB, free: 4.801 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.586e-05/0.1411, allocations: 0 / 480.2 MB, free: 4.801 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.517e-05/0.1411, allocations: 3.984 kB / 480.2 MB, free: 4.797 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.622e-06/0.1411, allocations: 0 / 480.2 MB, free: 4.797 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001915/0.1413, allocations: 115.8 kB / 480.3 MB, free: 4.684 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 8.226e-06/0.1414, allocations: 0 / 480.3 MB, free: 4.684 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.5e-05/0.1414, allocations: 0 / 480.3 MB, free: 4.684 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000168/0.1416, allocations: 91.81 kB / 480.4 MB, free: 4.594 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.37e-06/0.1416, allocations: 0 / 480.4 MB, free: 4.594 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.232e-06/0.1416, allocations: 0 / 480.4 MB, free: 4.594 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.608e-06/0.1416, allocations: 0 / 480.4 MB, free: 4.594 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.0004837/0.1421, allocations: 357.3 kB / 480.8 MB, free: 4.188 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.902e-05/0.1421, allocations: 8.875 kB / 480.8 MB, free: 4.18 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.581e-05/0.1422, allocations: 4.938 kB / 480.8 MB, free: 4.176 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001006/0.1423, allocations: 164.4 kB / 480.9 MB, free: 3.977 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.628e-06/0.1423, allocations: 384 / 480.9 MB, free: 3.977 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.107e-05/0.1423, allocations: 384 / 480.9 MB, free: 3.977 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.463e-05/0.1424, allocations: 38.25 kB / 481 MB, free: 3.934 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.008e-05/0.1424, allocations: 192 / 481 MB, free: 3.934 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.357e-05/0.1424, allocations: 7.875 kB / 481 MB, free: 3.926 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.114e-06/0.1424, allocations: 4 kB / 481 MB, free: 3.922 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.591e-05/0.1425, allocations: 0 / 481 MB, free: 3.922 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002883/0.1428, allocations: 145.7 kB / 481.1 MB, free: 3.73 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.857e-05/0.1428, allocations: 22.56 kB / 481.1 MB, free: 3.699 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.562e-05/0.1428, allocations: 4.859 kB / 481.1 MB, free: 3.691 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.077e-05/0.1428, allocations: 96 / 481.1 MB, free: 3.691 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.283e-05/0.1429, allocations: 68.2 kB / 481.2 MB, free: 3.609 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 1.453e-06/0.1429, allocations: 0 / 481.2 MB, free: 3.609 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.0002353/0.1432, allocations: 67.28 kB / 481.3 MB, free: 3.531 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.243e-05/0.1432, allocations: 85.22 kB / 481.4 MB, free: 3.43 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.216e-05/0.1433, allocations: 89.86 kB / 481.4 MB, free: 3.332 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.261e-05/0.1433, allocations: 25.7 kB / 481.5 MB, free: 3.301 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.939e-05/0.1434, allocations: 80.14 kB / 481.6 MB, free: 3.219 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.692e-05/0.1434, allocations: 0 / 481.6 MB, free: 3.219 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.724e-05/0.1434, allocations: 17.72 kB / 481.6 MB, free: 3.195 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001178/0.1435, allocations: 310.8 kB / 481.9 MB, free: 2.883 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.929e-06/0.1435, allocations: 0 / 481.9 MB, free: 2.883 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.807e-06/0.1436, allocations: 8 kB / 481.9 MB, free: 2.875 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.364e-05/0.1436, allocations: 64.2 kB / 481.9 MB, free: 2.797 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.683e-06/0.1436, allocations: 0 / 481.9 MB, free: 2.797 MB / 350.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.353e-05/0.1437, allocations: 63.39 kB / 482 MB, free: 2.723 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.44e-05/0.1437, allocations: 33.7 kB / 482 MB, free: 2.684 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.21e-06/0.1438, allocations: 0 / 482 MB, free: 2.684 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.646e-05/0.1438, allocations: 7.922 kB / 482 MB, free: 2.676 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.292e-06/0.1438, allocations: 0 / 482 MB, free: 2.676 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.532e-06/0.1438, allocations: 0 / 482 MB, free: 2.676 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.891e-05/0.1438, allocations: 8.031 kB / 482.1 MB, free: 2.668 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.403e-06/0.1438, allocations: 0 / 482.1 MB, free: 2.668 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 9.848e-05/0.1439, allocations: 139.5 kB / 482.2 MB, free: 2.516 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.384e-06/0.144, allocations: 0 / 482.2 MB, free: 2.516 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.748e-06/0.144, allocations: 7.062 kB / 482.2 MB, free: 2.512 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.985e-06/0.144, allocations: 4 kB / 482.2 MB, free: 2.508 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.047e-06/0.144, allocations: 0 / 482.2 MB, free: 2.508 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.814e-06/0.144, allocations: 0 / 482.2 MB, free: 2.508 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.473e-05/0.1441, allocations: 149.7 kB / 482.3 MB, free: 2.312 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.122e-06/0.1441, allocations: 0 / 482.3 MB, free: 2.312 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.41e-07/0.1441, allocations: 4 kB / 482.4 MB, free: 2.309 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.42e-07/0.1441, allocations: 0 / 482.4 MB, free: 2.309 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.2e-05/0.1441, allocations: 11.94 kB / 482.4 MB, free: 2.297 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.044e-06/0.1441, allocations: 3.938 kB / 482.4 MB, free: 2.293 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.12e-07/0.1441, allocations: 0 / 482.4 MB, free: 2.293 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.878e-05/0.1442, allocations: 90.83 kB / 482.5 MB, free: 2.18 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.086e-05/0.1443, allocations: 81.05 kB / 482.5 MB, free: 2.082 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.653e-05/0.1443, allocations: 7.969 kB / 482.5 MB, free: 2.074 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.207e-06/0.1443, allocations: 0 / 482.5 MB, free: 2.074 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.217e-05/0.1443, allocations: 4 kB / 482.5 MB, free: 2.07 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.977e-06/0.1443, allocations: 4 kB / 482.5 MB, free: 2.066 MB / 350.1 MB Notification: Performance of sorting global known variables: time 2.5e-05/0.1444, allocations: 75.28 kB / 482.6 MB, free: 1.992 MB / 350.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1444, allocations: 0 / 482.6 MB, free: 1.992 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002517/0.1446, allocations: 35.98 kB / 482.7 MB, free: 1.957 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.0005698/0.1452, allocations: 273.8 kB / 482.9 MB, free: 1.723 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0001147/0.1453, allocations: 63.33 kB / 483 MB, free: 1.648 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.295e-06/0.1453, allocations: 0 / 483 MB, free: 1.648 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 5.052e-05/0.1454, allocations: 59.47 kB / 483 MB, free: 1.578 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001402/0.1455, allocations: 8 kB / 483.1 MB, free: 1.57 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002136/0.1458, allocations: 74.61 kB / 483.1 MB, free: 1.469 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003991/0.1462, allocations: 0.677 MB / 483.8 MB, free: 0.7656 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 6.782e-06/0.1462, allocations: 0 / 483.8 MB, free: 0.7656 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.381e-05/0.1462, allocations: 7.438 kB / 483.8 MB, free: 0.7617 MB / 350.1 MB Notification: Performance of SimCode: time 5.01e-07/0.1462, allocations: 0 / 483.8 MB, free: 0.7617 MB / 350.1 MB Notification: Performance of Templates: time 0.004283/0.1505, allocations: 0.9566 MB / 484.8 MB, free: 15.8 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