Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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_4.0.0_ModelicaTest.Utilities.TestStreams") translateModel(ModelicaTest.Utilities.TestStreams,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Utilities.TestStreams") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001376/0.001376, allocations: 110.1 kB / 18.3 MB, free: 4.84 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001493/0.001493, allocations: 199.3 kB / 19.23 MB, free: 3.914 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.367/1.367, allocations: 222.9 MB / 242.9 MB, free: 15.17 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2026/0.2026, allocations: 44.17 MB / 337.2 MB, free: 2.762 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00128/0.00128, allocations: 68.72 kB / 409.1 MB, free: 27.25 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1042/0.1055, allocations: 60.82 MB / 469.9 MB, free: 14.39 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestStreams): time 0.001682/0.1073, allocations: 479.8 kB / 470.4 MB, free: 13.92 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006799/0.108, allocations: 289.6 kB / 470.7 MB, free: 13.64 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.31e-05/0.108, allocations: 4 kB / 470.7 MB, free: 13.64 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.309e-05/0.108, allocations: 4 kB / 470.7 MB, free: 13.63 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 4.789e-06/0.108, allocations: 0 / 470.7 MB, free: 13.63 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/Utilities.mo:222:3-288: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.000837/0.1089, allocations: 105.9 kB / 470.8 MB, free: 13.54 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 5.164e-05/0.1089, allocations: 0 / 470.8 MB, free: 13.54 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.468e-05/0.109, allocations: 3.984 kB / 470.8 MB, free: 13.53 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.831e-05/0.109, allocations: 3.938 kB / 470.8 MB, free: 13.53 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.34e-05/0.109, allocations: 7.984 kB / 470.8 MB, free: 13.52 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.092e-06/0.109, allocations: 0 / 470.8 MB, free: 13.52 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001719/0.1092, allocations: 103.8 kB / 470.9 MB, free: 13.42 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.134e-06/0.1092, allocations: 0 / 470.9 MB, free: 13.42 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 1.707e-05/0.1093, allocations: 4 kB / 470.9 MB, free: 13.41 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001576/0.1094, allocations: 83.88 kB / 471 MB, free: 13.33 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.218e-06/0.1094, allocations: 0 / 471 MB, free: 13.33 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.182e-06/0.1094, allocations: 0 / 471 MB, free: 13.33 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.959e-06/0.1095, allocations: 0 / 471 MB, free: 13.33 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.0003128/0.1098, allocations: 364 kB / 471.3 MB, free: 12.92 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.07e-05/0.1098, allocations: 8.031 kB / 471.3 MB, free: 12.91 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.82e-05/0.1098, allocations: 4.938 kB / 471.3 MB, free: 12.91 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.491e-05/0.1099, allocations: 168.4 kB / 471.5 MB, free: 12.71 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.163e-05/0.11, allocations: 384 / 471.5 MB, free: 12.71 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.012e-05/0.11, allocations: 4.375 kB / 471.5 MB, free: 12.7 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.775e-05/0.1101, allocations: 30.27 kB / 471.5 MB, free: 12.67 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.001e-06/0.1101, allocations: 192 / 471.5 MB, free: 12.67 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.17e-05/0.1101, allocations: 3.938 kB / 471.5 MB, free: 12.66 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.842e-06/0.1101, allocations: 3.938 kB / 471.6 MB, free: 12.66 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.587e-05/0.1101, allocations: 7.922 kB / 471.6 MB, free: 12.65 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000123/0.1103, allocations: 149.7 kB / 471.7 MB, free: 12.46 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.957e-05/0.1103, allocations: 14.58 kB / 471.7 MB, free: 12.43 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.586e-05/0.1103, allocations: 12.86 kB / 471.7 MB, free: 12.42 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.002e-05/0.1103, allocations: 4.094 kB / 471.7 MB, free: 12.41 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.181e-05/0.1104, allocations: 56.27 kB / 471.8 MB, free: 12.34 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 9.62e-07/0.1104, allocations: 0 / 471.8 MB, free: 12.34 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001663/0.1106, allocations: 71.27 kB / 471.9 MB, free: 12.26 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.152e-05/0.1106, allocations: 77.11 kB / 471.9 MB, free: 12.17 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.317e-05/0.1106, allocations: 89.86 kB / 472 MB, free: 12.07 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.286e-05/0.1107, allocations: 33.83 kB / 472.1 MB, free: 12.03 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.782e-05/0.1107, allocations: 80.14 kB / 472.1 MB, free: 11.95 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.336e-05/0.1107, allocations: 0 / 472.1 MB, free: 11.95 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.479e-05/0.1107, allocations: 13.72 kB / 472.1 MB, free: 11.93 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 9.45e-05/0.1108, allocations: 310.8 kB / 472.5 MB, free: 11.62 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.877e-06/0.1109, allocations: 0 / 472.5 MB, free: 11.62 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.753e-06/0.1109, allocations: 4 kB / 472.5 MB, free: 11.61 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.974e-05/0.1109, allocations: 72.25 kB / 472.5 MB, free: 11.53 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.253e-06/0.111, allocations: 3.938 kB / 472.5 MB, free: 11.52 MB / 350.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.072e-05/0.111, allocations: 59.41 kB / 472.6 MB, free: 11.45 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.921e-05/0.1111, allocations: 33.7 kB / 472.6 MB, free: 11.41 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.258e-06/0.1111, allocations: 0 / 472.6 MB, free: 11.41 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.324e-05/0.1111, allocations: 3.938 kB / 472.6 MB, free: 11.41 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.92e-07/0.1111, allocations: 0 / 472.6 MB, free: 11.41 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.628e-06/0.1111, allocations: 0 / 472.6 MB, free: 11.41 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.606e-05/0.1111, allocations: 3.984 kB / 472.6 MB, free: 11.41 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.915e-06/0.1111, allocations: 4 kB / 472.6 MB, free: 11.4 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.605e-05/0.1112, allocations: 139.6 kB / 472.8 MB, free: 11.25 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.224e-06/0.1112, allocations: 0 / 472.8 MB, free: 11.25 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.12e-05/0.1112, allocations: 11.02 kB / 472.8 MB, free: 11.24 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.515e-06/0.1112, allocations: 4 kB / 472.8 MB, free: 11.23 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.256e-06/0.1113, allocations: 0 / 472.8 MB, free: 11.23 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.914e-06/0.1113, allocations: 0 / 472.8 MB, free: 11.23 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.464e-05/0.1114, allocations: 149.7 kB / 472.9 MB, free: 11.04 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.92e-07/0.1114, allocations: 0 / 472.9 MB, free: 11.04 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.844e-06/0.1114, allocations: 4 kB / 472.9 MB, free: 11.04 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.202e-06/0.1114, allocations: 0 / 472.9 MB, free: 11.04 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.354e-06/0.1114, allocations: 11.94 kB / 472.9 MB, free: 11.02 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.124e-06/0.1114, allocations: 0 / 472.9 MB, free: 11.02 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.01e-07/0.1114, allocations: 3.938 kB / 473 MB, free: 11.02 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.667e-05/0.1115, allocations: 90.83 kB / 473 MB, free: 10.91 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.674e-05/0.1116, allocations: 77.11 kB / 473.1 MB, free: 10.81 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.403e-05/0.1116, allocations: 7.875 kB / 473.1 MB, free: 10.8 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.466e-06/0.1116, allocations: 0 / 473.1 MB, free: 10.8 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.587e-05/0.1116, allocations: 4.031 kB / 473.1 MB, free: 10.8 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.178e-06/0.1117, allocations: 4 kB / 473.1 MB, free: 10.8 MB / 350.1 MB Notification: Performance of sorting global known variables: time 2.916e-05/0.1117, allocations: 75.28 kB / 473.2 MB, free: 10.72 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.1117, allocations: 0 / 473.2 MB, free: 10.72 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000253/0.112, allocations: 35.98 kB / 473.2 MB, free: 10.69 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.0005161/0.1125, allocations: 283.4 kB / 473.5 MB, free: 10.46 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 9.569e-05/0.1126, allocations: 67.34 kB / 473.6 MB, free: 10.39 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.913e-06/0.1126, allocations: 0 / 473.6 MB, free: 10.39 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 3.192e-05/0.1126, allocations: 51.41 kB / 473.6 MB, free: 10.32 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001263/0.1128, allocations: 7.938 kB / 473.6 MB, free: 10.32 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001909/0.113, allocations: 118.7 kB / 473.8 MB, free: 10.17 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002269/0.1132, allocations: 0.669 MB / 474.4 MB, free: 9.473 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.948e-06/0.1132, allocations: 7.438 kB / 474.4 MB, free: 9.465 MB / 350.1 MB Notification: Performance of SimCode: time 2.41e-07/0.1132, allocations: 0 / 474.4 MB, free: 9.465 MB / 350.1 MB Notification: Performance of Templates: time 0.00277/0.116, allocations: 1.151 MB / 475.6 MB, free: 8.312 MB / 350.1 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Utilities.TestStreams.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Utilities.TestStreams.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Utilities.TestStreams.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Utilities.TestStreams.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Utilities.TestStreams.sim & ./ModelicaTest_4.0.0_ModelicaTest.Utilities.TestStreams -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Utilities.TestStreams.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_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_4.0.0_ModelicaTest.Utilities.TestStreams.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches