Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Utilities.TestStreams.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(ModelicaTest.Utilities.TestStreams,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Utilities.TestStreams") translateModel(ModelicaTest.Utilities.TestStreams,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Utilities.TestStreams") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001591/0.001591, allocations: 96.14 kB / 15.87 MB, free: 16 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00126/0.001261, allocations: 202.7 kB / 16.79 MB, free: 6.84 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.746/1.746, allocations: 205.1 MB / 222.6 MB, free: 4.75 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.4543/0.4543, allocations: 43.49 MB / 313.5 MB, free: 8.508 MB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001546/0.001546, allocations: 71.89 kB / 382 MB, free: 8.746 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1483/0.1499, allocations: 57.79 MB / 439.8 MB, free: 14.86 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestStreams): time 0.00234/0.1523, allocations: 0.5424 MB / 440.4 MB, free: 14.32 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009516/0.1532, allocations: 306.5 kB / 440.7 MB, free: 14.02 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.382e-05/0.1533, allocations: 0 / 440.7 MB, free: 14.02 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 2.054e-05/0.1534, allocations: 4 kB / 440.7 MB, free: 14.02 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 6.221e-06/0.1534, allocations: 0 / 440.7 MB, free: 14.02 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001156/0.1545, allocations: 83.78 kB / 440.7 MB, free: 13.93 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 4.058e-05/0.1546, allocations: 0 / 440.7 MB, free: 13.93 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.132e-05/0.1546, allocations: 0 / 440.7 MB, free: 13.93 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.05e-05/0.1547, allocations: 0 / 440.7 MB, free: 13.93 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.741e-05/0.1547, allocations: 4 kB / 440.7 MB, free: 13.93 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 1.014e-05/0.1547, allocations: 0 / 440.7 MB, free: 13.93 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002609/0.155, allocations: 99.91 kB / 440.8 MB, free: 13.83 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 1.239e-05/0.155, allocations: 3.938 kB / 440.8 MB, free: 13.83 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 3.43e-05/0.155, allocations: 3.984 kB / 440.8 MB, free: 13.82 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002251/0.1553, allocations: 83.88 kB / 440.9 MB, free: 13.74 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.444e-06/0.1553, allocations: 4 kB / 440.9 MB, free: 13.74 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.232e-06/0.1553, allocations: 3.938 kB / 440.9 MB, free: 13.73 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.129e-05/0.1553, allocations: 0 / 440.9 MB, free: 13.73 MB / 382.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.0004744/0.1558, allocations: 357.3 kB / 441.3 MB, free: 13.33 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.083e-05/0.1559, allocations: 11.97 kB / 441.3 MB, free: 13.32 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.876e-05/0.1559, allocations: 4.922 kB / 441.3 MB, free: 13.31 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001611/0.1561, allocations: 164.3 kB / 441.5 MB, free: 13.11 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.608e-05/0.1561, allocations: 4.375 kB / 441.5 MB, free: 13.11 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.9e-05/0.1562, allocations: 4.375 kB / 441.5 MB, free: 13.11 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001611/0.1563, allocations: 30.27 kB / 441.5 MB, free: 13.07 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.524e-05/0.1563, allocations: 192 / 441.5 MB, free: 13.07 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.873e-05/0.1564, allocations: 7.938 kB / 441.5 MB, free: 13.06 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.405e-06/0.1564, allocations: 0 / 441.5 MB, free: 13.06 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.191e-05/0.1564, allocations: 0 / 441.5 MB, free: 13.06 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000241/0.1567, allocations: 145.7 kB / 441.7 MB, free: 12.87 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 6.622e-05/0.1567, allocations: 22.55 kB / 441.7 MB, free: 12.84 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.155e-05/0.1568, allocations: 8.859 kB / 441.7 MB, free: 12.83 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.248e-05/0.1568, allocations: 0 / 441.7 MB, free: 12.83 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.273e-05/0.1569, allocations: 64.33 kB / 441.7 MB, free: 12.75 MB / 382.1 MB Notification: Performance of pre-optimization done (n=1): time 1.443e-06/0.1569, allocations: 0 / 441.7 MB, free: 12.75 MB / 382.1 MB Notification: Performance of matching and sorting (n=1): time 0.0003095/0.1572, allocations: 71.23 kB / 441.8 MB, free: 12.67 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.441e-05/0.1573, allocations: 77.11 kB / 441.9 MB, free: 12.57 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.932e-05/0.1574, allocations: 93.8 kB / 442 MB, free: 12.47 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.345e-05/0.1574, allocations: 29.83 kB / 442 MB, free: 12.44 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.691e-05/0.1575, allocations: 80.14 kB / 442.1 MB, free: 12.36 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.515e-05/0.1575, allocations: 0 / 442.1 MB, free: 12.36 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.185e-05/0.1576, allocations: 17.72 kB / 442.1 MB, free: 12.33 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0002212/0.1578, allocations: 310.8 kB / 442.4 MB, free: 12.02 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.987e-05/0.1579, allocations: 0 / 442.4 MB, free: 12.02 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.447e-05/0.1579, allocations: 3.984 kB / 442.4 MB, free: 12.02 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.194e-05/0.158, allocations: 60.33 kB / 442.5 MB, free: 11.94 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.276e-06/0.158, allocations: 4 kB / 442.5 MB, free: 11.94 MB / 382.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 0.0001177/0.1581, allocations: 63.41 kB / 442.5 MB, free: 11.86 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.224e-05/0.1582, allocations: 29.7 kB / 442.6 MB, free: 11.83 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.158e-05/0.1582, allocations: 7.984 kB / 442.6 MB, free: 11.82 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.044e-05/0.1582, allocations: 3.938 kB / 442.6 MB, free: 11.82 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.555e-06/0.1583, allocations: 3.938 kB / 442.6 MB, free: 11.81 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.297e-06/0.1583, allocations: 0 / 442.6 MB, free: 11.81 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.586e-05/0.1583, allocations: 4 kB / 442.6 MB, free: 11.81 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.468e-05/0.1583, allocations: 0 / 442.6 MB, free: 11.81 MB / 382.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 0.0001359/0.1585, allocations: 147.5 kB / 442.7 MB, free: 11.65 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.409e-05/0.1585, allocations: 0 / 442.7 MB, free: 11.65 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.999e-05/0.1585, allocations: 7.062 kB / 442.7 MB, free: 11.64 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.366e-06/0.1585, allocations: 3.938 kB / 442.7 MB, free: 11.64 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.932e-06/0.1585, allocations: 0 / 442.7 MB, free: 11.64 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.865e-06/0.1585, allocations: 4 kB / 442.7 MB, free: 11.63 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002054/0.1588, allocations: 146 kB / 442.9 MB, free: 11.44 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.836e-06/0.1588, allocations: 0 / 442.9 MB, free: 11.44 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.202e-06/0.1588, allocations: 0 / 442.9 MB, free: 11.44 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.206e-06/0.1588, allocations: 0 / 442.9 MB, free: 11.44 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.51e-05/0.1588, allocations: 11.94 kB / 442.9 MB, free: 11.43 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.719e-06/0.1588, allocations: 4 kB / 442.9 MB, free: 11.43 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.322e-06/0.1588, allocations: 0 / 442.9 MB, free: 11.43 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001935/0.159, allocations: 86.83 kB / 443 MB, free: 11.32 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.33e-05/0.1591, allocations: 81.05 kB / 443.1 MB, free: 11.22 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.347e-05/0.1591, allocations: 7.938 kB / 443.1 MB, free: 11.21 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.333e-05/0.1591, allocations: 0 / 443.1 MB, free: 11.21 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.849e-05/0.1592, allocations: 4.031 kB / 443.1 MB, free: 11.21 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.831e-06/0.1592, allocations: 3.984 kB / 443.1 MB, free: 11.2 MB / 382.1 MB Notification: Performance of sorting global known variables: time 3.602e-05/0.1592, allocations: 75.28 kB / 443.2 MB, free: 11.13 MB / 382.1 MB Notification: Performance of sort global known variables: time 3.11e-07/0.1592, allocations: 0 / 443.2 MB, free: 11.13 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0003006/0.1595, allocations: 28 kB / 443.2 MB, free: 11.1 MB / 382.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.0007228/0.1603, allocations: 287.6 kB / 443.5 MB, free: 10.84 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0001277/0.1604, allocations: 59.41 kB / 443.5 MB, free: 10.77 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.367e-06/0.1604, allocations: 3.938 kB / 443.5 MB, free: 10.76 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 4.101e-05/0.1605, allocations: 55.41 kB / 443.6 MB, free: 10.7 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001594/0.1606, allocations: 4 kB / 443.6 MB, free: 10.69 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002931/0.1609, allocations: 78.75 kB / 443.7 MB, free: 10.59 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003969/0.1614, allocations: 0.6731 MB / 444.3 MB, free: 9.887 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 1.161e-05/0.1614, allocations: 0 / 444.3 MB, free: 9.887 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.905e-05/0.1614, allocations: 11.44 kB / 444.3 MB, free: 9.875 MB / 382.1 MB Notification: Performance of SimCode: time 2.2e-07/0.1614, allocations: 4.125 kB / 444.4 MB, free: 9.871 MB / 382.1 MB Notification: Performance of Templates: time 0.004317/0.1657, allocations: 0.9608 MB / 445.3 MB, free: 8.91 MB / 382.1 MB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.Utilities.TestStreams.makefile (rm -f ModelicaTest_3.2.3_ModelicaTest.Utilities.TestStreams.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Utilities.TestStreams.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Utilities.TestStreams.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Utilities.TestStreams.sim & ./ModelicaTest_3.2.3_ModelicaTest.Utilities.TestStreams -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.Utilities.TestStreams.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Utilities.TestStreams_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Utilities/TestStreams/TestStreams.csv","../files/ModelicaTest_3.2.3_ModelicaTest.Utilities.TestStreams.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches