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: "" <> 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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001204/0.00121, allocations: 103.9 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001477/0.001477, allocations: 206.4 kB / 18.58 MB, free: 4.582 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.479/1.479, allocations: 227.4 MB / 246.8 MB, free: 10.61 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2391/0.2391, allocations: 46.1 MB / 344.1 MB, free: 11.61 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001932/0.001932, allocations: 83.08 kB / 417.7 MB, free: 19.67 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1601/0.1621, allocations: 62.44 MB / 480.1 MB, free: 5.211 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestStreams): time 0.002137/0.1642, allocations: 475.8 kB / 480.6 MB, free: 4.742 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007945/0.1651, allocations: 301.8 kB / 480.9 MB, free: 4.449 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.651e-05/0.1651, allocations: 0 / 480.9 MB, free: 4.449 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.617e-05/0.1651, allocations: 3.938 kB / 480.9 MB, free: 4.445 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 6.031e-06/0.1652, allocations: 0 / 480.9 MB, free: 4.445 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.00101/0.1662, allocations: 104.8 kB / 481 MB, free: 4.348 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 6.656e-05/0.1663, allocations: 8 kB / 481 MB, free: 4.34 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.155e-05/0.1663, allocations: 3.984 kB / 481 MB, free: 4.336 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.711e-05/0.1664, allocations: 0 / 481 MB, free: 4.336 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.574e-05/0.1664, allocations: 3.984 kB / 481 MB, free: 4.332 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.582e-06/0.1664, allocations: 0 / 481 MB, free: 4.332 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002288/0.1666, allocations: 103.9 kB / 481.1 MB, free: 4.23 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 8.436e-06/0.1667, allocations: 0 / 481.1 MB, free: 4.23 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.243e-05/0.1667, allocations: 0 / 481.1 MB, free: 4.23 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001999/0.1669, allocations: 83.81 kB / 481.2 MB, free: 4.148 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.931e-06/0.1669, allocations: 0 / 481.2 MB, free: 4.148 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.974e-06/0.1669, allocations: 4 kB / 481.2 MB, free: 4.145 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.504e-06/0.1669, allocations: 0 / 481.2 MB, free: 4.145 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.0004332/0.1674, allocations: 361.3 kB / 481.5 MB, free: 3.734 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.784e-05/0.1674, allocations: 8.031 kB / 481.6 MB, free: 3.727 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.31e-05/0.1675, allocations: 30.75 kB / 481.6 MB, free: 3.688 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.745e-05/0.1675, allocations: 4.938 kB / 481.6 MB, free: 3.684 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001451/0.1677, allocations: 164.4 kB / 481.7 MB, free: 3.484 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.489e-05/0.1677, allocations: 4.312 kB / 481.7 MB, free: 3.48 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.935e-06/0.1677, allocations: 384 / 481.8 MB, free: 3.48 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001219/0.1678, allocations: 34.27 kB / 481.8 MB, free: 3.441 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.342e-05/0.1678, allocations: 3.938 kB / 481.8 MB, free: 3.438 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.059e-05/0.1679, allocations: 0 / 481.8 MB, free: 3.438 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.032e-06/0.1679, allocations: 0 / 481.8 MB, free: 3.438 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.437e-05/0.1679, allocations: 0 / 481.8 MB, free: 3.438 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001731/0.1681, allocations: 153.7 kB / 481.9 MB, free: 3.238 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.371e-05/0.1681, allocations: 18.52 kB / 482 MB, free: 3.211 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.894e-05/0.1682, allocations: 4.859 kB / 482 MB, free: 3.203 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.092e-06/0.1682, allocations: 4 kB / 482 MB, free: 3.199 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.953e-05/0.1682, allocations: 60.33 kB / 482 MB, free: 3.125 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 1.222e-06/0.1683, allocations: 0 / 482 MB, free: 3.125 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.0002547/0.1685, allocations: 71.33 kB / 482.1 MB, free: 3.043 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.927e-05/0.1686, allocations: 77.11 kB / 482.2 MB, free: 2.949 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.372e-05/0.1687, allocations: 93.8 kB / 482.3 MB, free: 2.848 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.026e-05/0.1687, allocations: 25.7 kB / 482.3 MB, free: 2.816 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.385e-05/0.1687, allocations: 84.27 kB / 482.4 MB, free: 2.73 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.851e-05/0.1688, allocations: 0 / 482.4 MB, free: 2.73 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.684e-05/0.1688, allocations: 13.72 kB / 482.4 MB, free: 2.711 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001522/0.169, allocations: 322.7 kB / 482.7 MB, free: 2.387 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.354e-05/0.169, allocations: 0 / 482.7 MB, free: 2.387 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.409e-05/0.169, allocations: 7.984 kB / 482.7 MB, free: 2.379 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.89e-05/0.1691, allocations: 56.27 kB / 482.8 MB, free: 2.309 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.238e-06/0.1691, allocations: 4 kB / 482.8 MB, free: 2.305 MB / 350.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 9.551e-05/0.1692, allocations: 59.47 kB / 482.8 MB, free: 2.234 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.101e-05/0.1693, allocations: 37.7 kB / 482.9 MB, free: 2.191 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.887e-06/0.1693, allocations: 3.938 kB / 482.9 MB, free: 2.188 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.166e-05/0.1693, allocations: 3.984 kB / 482.9 MB, free: 2.184 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.462e-06/0.1693, allocations: 0 / 482.9 MB, free: 2.184 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.895e-06/0.1693, allocations: 0 / 482.9 MB, free: 2.184 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.445e-05/0.1694, allocations: 0 / 482.9 MB, free: 2.184 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.129e-05/0.1694, allocations: 3.938 kB / 482.9 MB, free: 2.18 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 0.0001326/0.1695, allocations: 143.6 kB / 483 MB, free: 2.023 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.081e-05/0.1696, allocations: 0 / 483 MB, free: 2.023 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.7e-05/0.1696, allocations: 7.062 kB / 483 MB, free: 2.02 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.519e-06/0.1696, allocations: 3.984 kB / 483 MB, free: 2.016 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.541e-06/0.1696, allocations: 4 kB / 483 MB, free: 2.012 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.247e-06/0.1696, allocations: 0 / 483 MB, free: 2.012 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001391/0.1697, allocations: 149.7 kB / 483.2 MB, free: 1.816 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.814e-06/0.1698, allocations: 0 / 483.2 MB, free: 1.816 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.262e-06/0.1698, allocations: 0 / 483.2 MB, free: 1.816 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.304e-06/0.1698, allocations: 0 / 483.2 MB, free: 1.816 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.305e-05/0.1698, allocations: 7.938 kB / 483.2 MB, free: 1.809 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.583e-06/0.1698, allocations: 4 kB / 483.2 MB, free: 1.805 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.11e-07/0.1698, allocations: 0 / 483.2 MB, free: 1.805 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001294/0.1699, allocations: 94.83 kB / 483.3 MB, free: 1.688 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.841e-05/0.17, allocations: 77.39 kB / 483.3 MB, free: 1.594 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.675e-05/0.17, allocations: 3.938 kB / 483.4 MB, free: 1.59 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.104e-05/0.17, allocations: 0 / 483.4 MB, free: 1.59 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.483e-05/0.1701, allocations: 7.938 kB / 483.4 MB, free: 1.582 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.991e-06/0.1701, allocations: 11.97 kB / 483.4 MB, free: 1.57 MB / 350.1 MB Notification: Performance of sorting global known variables: time 4.314e-05/0.1701, allocations: 79.27 kB / 483.5 MB, free: 1.492 MB / 350.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1701, allocations: 0 / 483.5 MB, free: 1.492 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003164/0.1705, allocations: 28 kB / 483.5 MB, free: 1.465 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.001111/0.1716, allocations: 0.8044 MB / 484.3 MB, free: 0.6719 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0001443/0.1717, allocations: 55.41 kB / 484.3 MB, free: 0.6055 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.176e-06/0.1717, allocations: 0 / 484.3 MB, free: 0.6055 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 5.531e-05/0.1718, allocations: 67.41 kB / 484.4 MB, free: 0.5273 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001523/0.172, allocations: 0 / 484.4 MB, free: 0.5273 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004477/0.1724, allocations: 122.7 kB / 484.5 MB, free: 376 kB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000403/0.1728, allocations: 0.669 MB / 485.2 MB, free: 15.67 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 1.346e-05/0.1729, allocations: 3.984 kB / 485.2 MB, free: 15.67 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.484e-05/0.1729, allocations: 11.38 kB / 485.2 MB, free: 15.66 MB / 366.1 MB Notification: Performance of SimCode: time 4.91e-07/0.1729, allocations: 3.938 kB / 485.2 MB, free: 15.66 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02237/0.1953, allocations: 1.784 MB / 487 MB, free: 13.93 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.448/9.643, allocations: 4.062 kB / 487 MB, free: 13.92 MB / 366.1 MB (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) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Utilities.TestStreams_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Utilities/TestStreams/TestStreams.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Utilities.TestStreams.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches