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.0009838/0.0009839, allocations: 96.66 kB / 18.01 MB, free: 5.734 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001574/0.001574, allocations: 204.2 kB / 18.93 MB, free: 4.848 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.336/1.336, allocations: 227.7 MB / 247.5 MB, free: 11.44 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1933/0.1933, allocations: 46.18 MB / 345.9 MB, free: 11.43 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002396/0.0002397, allocations: 11.98 kB / 420.2 MB, free: 19.78 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09877/0.09903, allocations: 63.56 MB / 483.7 MB, free: 4.195 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestStreams): time 0.0005245/0.09959, allocations: 205.3 kB / 483.9 MB, free: 3.992 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006702/0.1003, allocations: 295.5 kB / 484.2 MB, free: 3.707 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.847e-06/0.1003, allocations: 0 / 484.2 MB, free: 3.707 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.022e-05/0.1003, allocations: 0 / 484.2 MB, free: 3.707 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 4.659e-06/0.1003, allocations: 4 kB / 484.2 MB, free: 3.703 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.0007266/0.1011, allocations: 67.86 kB / 484.3 MB, free: 3.637 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 2.823e-05/0.1011, allocations: 7.938 kB / 484.3 MB, free: 3.629 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 2.598e-05/0.1011, allocations: 0 / 484.3 MB, free: 3.629 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.634e-05/0.1012, allocations: 4 kB / 484.3 MB, free: 3.625 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.03e-05/0.1012, allocations: 3.984 kB / 484.3 MB, free: 3.621 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.28e-06/0.1012, allocations: 0 / 484.3 MB, free: 3.621 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001704/0.1014, allocations: 103.8 kB / 484.4 MB, free: 3.52 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.813e-06/0.1014, allocations: 4 kB / 484.4 MB, free: 3.516 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 3.457e-05/0.1014, allocations: 25.7 kB / 484.4 MB, free: 3.484 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001101/0.1015, allocations: 59.86 kB / 484.5 MB, free: 3.426 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.267e-06/0.1016, allocations: 0 / 484.5 MB, free: 3.426 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.193e-06/0.1016, allocations: 0 / 484.5 MB, free: 3.426 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.336e-06/0.1016, allocations: 0 / 484.5 MB, free: 3.426 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.0002811/0.1019, allocations: 361.2 kB / 484.8 MB, free: 3.016 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.418e-05/0.1019, allocations: 8.875 kB / 484.8 MB, free: 3.008 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.932e-05/0.1019, allocations: 8.938 kB / 484.9 MB, free: 3 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.027e-05/0.102, allocations: 164.4 kB / 485 MB, free: 2.801 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.038e-05/0.102, allocations: 384 / 485 MB, free: 2.801 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.174e-06/0.102, allocations: 384 / 485 MB, free: 2.801 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.818e-05/0.1021, allocations: 34.27 kB / 485.1 MB, free: 2.762 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.34e-06/0.1021, allocations: 192 / 485.1 MB, free: 2.762 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.017e-06/0.1022, allocations: 3.938 kB / 485.1 MB, free: 2.758 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.318e-06/0.1022, allocations: 0 / 485.1 MB, free: 2.758 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.789e-05/0.1022, allocations: 7.922 kB / 485.1 MB, free: 2.75 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001171/0.1023, allocations: 157.7 kB / 485.2 MB, free: 2.547 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.05e-05/0.1024, allocations: 14.58 kB / 485.2 MB, free: 2.523 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.344e-05/0.1024, allocations: 8.859 kB / 485.2 MB, free: 2.512 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.48e-06/0.1024, allocations: 4.094 kB / 485.2 MB, free: 2.508 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.59e-05/0.1024, allocations: 56.27 kB / 485.3 MB, free: 2.438 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 1.032e-06/0.1024, allocations: 0 / 485.3 MB, free: 2.438 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001474/0.1026, allocations: 75.27 kB / 485.4 MB, free: 2.352 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.795e-05/0.1026, allocations: 77.11 kB / 485.4 MB, free: 2.258 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.361e-05/0.1027, allocations: 89.86 kB / 485.5 MB, free: 2.16 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.511e-05/0.1027, allocations: 25.7 kB / 485.6 MB, free: 2.129 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.056e-05/0.1027, allocations: 84.27 kB / 485.6 MB, free: 2.043 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.692e-05/0.1028, allocations: 0 / 485.6 MB, free: 2.043 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.059e-05/0.1028, allocations: 13.72 kB / 485.7 MB, free: 2.023 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 9.261e-05/0.1029, allocations: 310.8 kB / 486 MB, free: 1.711 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.508e-06/0.1029, allocations: 4 kB / 486 MB, free: 1.707 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.079e-06/0.1029, allocations: 0 / 486 MB, free: 1.707 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.124e-05/0.103, allocations: 60.27 kB / 486 MB, free: 1.633 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.727e-06/0.103, allocations: 3.938 kB / 486 MB, free: 1.629 MB / 350.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.645e-05/0.103, allocations: 71.39 kB / 486.1 MB, free: 1.547 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.896e-05/0.1031, allocations: 29.7 kB / 486.1 MB, free: 1.512 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.197e-06/0.1031, allocations: 0 / 486.1 MB, free: 1.512 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.238e-05/0.1031, allocations: 7.938 kB / 486.1 MB, free: 1.504 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.22e-07/0.1031, allocations: 0 / 486.1 MB, free: 1.504 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.227e-06/0.1031, allocations: 0 / 486.1 MB, free: 1.504 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.481e-05/0.1031, allocations: 0 / 486.1 MB, free: 1.504 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.721e-06/0.1032, allocations: 0 / 486.1 MB, free: 1.504 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 7.417e-05/0.1032, allocations: 143.5 kB / 486.3 MB, free: 1.348 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.683e-06/0.1033, allocations: 7.969 kB / 486.3 MB, free: 1.34 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.616e-06/0.1033, allocations: 7.062 kB / 486.3 MB, free: 1.336 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.443e-06/0.1033, allocations: 0 / 486.3 MB, free: 1.336 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.316e-06/0.1033, allocations: 0 / 486.3 MB, free: 1.336 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.653e-06/0.1033, allocations: 0 / 486.3 MB, free: 1.336 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.338e-05/0.1034, allocations: 149.7 kB / 486.4 MB, free: 1.141 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.122e-06/0.1034, allocations: 0 / 486.4 MB, free: 1.141 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.52e-07/0.1034, allocations: 0 / 486.4 MB, free: 1.141 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.222e-06/0.1034, allocations: 0 / 486.4 MB, free: 1.141 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.833e-06/0.1034, allocations: 3.938 kB / 486.4 MB, free: 1.137 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.11e-07/0.1034, allocations: 0 / 486.4 MB, free: 1.137 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.374e-06/0.1034, allocations: 4 kB / 486.4 MB, free: 1.133 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.771e-05/0.1035, allocations: 94.77 kB / 486.5 MB, free: 1.016 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.992e-05/0.1035, allocations: 77.11 kB / 486.6 MB, free: 0.9219 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.39e-05/0.1036, allocations: 7.938 kB / 486.6 MB, free: 0.9141 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.317e-06/0.1036, allocations: 0 / 486.6 MB, free: 0.9141 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.847e-06/0.1036, allocations: 0 / 486.6 MB, free: 0.9141 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.018e-06/0.1036, allocations: 4 kB / 486.6 MB, free: 0.9102 MB / 350.1 MB Notification: Performance of sorting global known variables: time 2.776e-05/0.1036, allocations: 79.31 kB / 486.7 MB, free: 0.832 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.1036, allocations: 0 / 486.7 MB, free: 0.832 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002413/0.1039, allocations: 39.98 kB / 486.7 MB, free: 0.793 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.0004814/0.1044, allocations: 283 kB / 487 MB, free: 0.5547 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 7.253e-05/0.1045, allocations: 63.33 kB / 487.1 MB, free: 492 kB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.713e-06/0.1045, allocations: 0 / 487.1 MB, free: 492 kB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 2.562e-05/0.1045, allocations: 55.41 kB / 487.1 MB, free: 424 kB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001131/0.1046, allocations: 2.188 kB / 487.1 MB, free: 424 kB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001617/0.1048, allocations: 108.5 kB / 487.2 MB, free: 280 kB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002044/0.105, allocations: 0.6731 MB / 487.9 MB, free: 15.57 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.396e-06/0.105, allocations: 7.438 kB / 487.9 MB, free: 15.57 MB / 366.1 MB Notification: Performance of SimCode: time 3.61e-07/0.105, allocations: 0 / 487.9 MB, free: 15.57 MB / 366.1 MB Notification: Performance of Templates: time 0.002544/0.1076, allocations: 1.144 MB / 489.1 MB, free: 14.43 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/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