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.001465/0.001465, allocations: 110.4 kB / 17.78 MB, free: 5.293 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.00153/0.00153, allocations: 187 kB / 18.71 MB, free: 4.363 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.371/1.371, allocations: 222.9 MB / 242.4 MB, free: 15.07 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.2143/0.2143, allocations: 44.18 MB / 336.7 MB, free: 2.652 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00124/0.00124, allocations: 67.89 kB / 470.5 MB, free: 13.18 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4317/0.4329, allocations: 60.82 MB / 0.5189 GB, free: 3.602 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestStreams): time 0.00155/0.4345, allocations: 489.8 kB / 0.5193 GB, free: 3.312 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.000671/0.4352, allocations: 299.4 kB / 0.5196 GB, free: 3.133 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.234e-05/0.4352, allocations: 4 kB / 0.5196 GB, free: 3.129 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 1.629e-05/0.4353, allocations: 0 / 0.5196 GB, free: 3.129 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 5.741e-06/0.4353, allocations: 1.375 kB / 0.5196 GB, free: 3.129 MB / 382.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.0008405/0.4361, allocations: 91.98 kB / 0.5197 GB, free: 3.09 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 5.655e-05/0.4362, allocations: 5.984 kB / 0.5197 GB, free: 3.086 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.088e-05/0.4362, allocations: 1.922 kB / 0.5197 GB, free: 3.086 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.668e-05/0.4363, allocations: 1.469 kB / 0.5197 GB, free: 3.086 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.055e-05/0.4363, allocations: 3.938 kB / 0.5197 GB, free: 3.082 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 5.3e-06/0.4363, allocations: 0 / 0.5197 GB, free: 3.082 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002262/0.4365, allocations: 114.9 kB / 0.5198 GB, free: 3.043 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 8.756e-06/0.4365, allocations: 1.188 kB / 0.5198 GB, free: 3.043 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 1.75e-05/0.4366, allocations: 7.984 kB / 0.5199 GB, free: 3.035 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001718/0.4367, allocations: 83.58 kB / 0.5199 GB, free: 3.008 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.048e-06/0.4368, allocations: 0 / 0.5199 GB, free: 3.008 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.014e-06/0.4368, allocations: 0 / 0.5199 GB, free: 3.008 MB / 382.1 MB Notification: Performance of Transformations before backend: time 5.1e-06/0.4368, allocations: 5.094 kB / 0.5199 GB, free: 3.004 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.0002736/0.437, allocations: 364.4 kB / 0.5203 GB, free: 2.609 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.381e-05/0.4371, allocations: 7.969 kB / 0.5203 GB, free: 2.609 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.239e-05/0.4371, allocations: 2.969 kB / 0.5203 GB, free: 2.609 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 5.493e-05/0.4372, allocations: 161 kB / 0.5204 GB, free: 2.414 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.215e-05/0.4372, allocations: 10.59 kB / 0.5205 GB, free: 2.406 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.502e-06/0.4372, allocations: 384 / 0.5205 GB, free: 2.406 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.983e-05/0.4373, allocations: 30.52 kB / 0.5205 GB, free: 2.375 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.376e-06/0.4373, allocations: 192 / 0.5205 GB, free: 2.375 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.556e-06/0.4373, allocations: 7.875 kB / 0.5205 GB, free: 2.367 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.087e-06/0.4373, allocations: 1.406 kB / 0.5205 GB, free: 2.367 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.695e-05/0.4374, allocations: 2.219 kB / 0.5205 GB, free: 2.367 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 8.233e-05/0.4374, allocations: 143 kB / 0.5206 GB, free: 2.18 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.859e-05/0.4375, allocations: 25.47 kB / 0.5207 GB, free: 2.148 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.003e-05/0.4375, allocations: 6.297 kB / 0.5207 GB, free: 2.141 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.195e-06/0.4375, allocations: 1.375 kB / 0.5207 GB, free: 2.141 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.803e-05/0.4375, allocations: 58.91 kB / 0.5207 GB, free: 2.07 MB / 382.1 MB Notification: Performance of pre-optimization done (n=1): time 9.02e-07/0.4375, allocations: 0 / 0.5207 GB, free: 2.07 MB / 382.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001421/0.4377, allocations: 68.16 kB / 0.5208 GB, free: 2 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.889e-05/0.4377, allocations: 78.58 kB / 0.5209 GB, free: 1.906 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 1.958e-05/0.4378, allocations: 98.69 kB / 0.521 GB, free: 1.801 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 6.331e-06/0.4378, allocations: 26.73 kB / 0.521 GB, free: 1.77 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.908e-06/0.4378, allocations: 80.14 kB / 0.5211 GB, free: 1.688 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.809e-05/0.4378, allocations: 1.031 kB / 0.5211 GB, free: 1.688 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.108e-05/0.4378, allocations: 12.5 kB / 0.5211 GB, free: 1.672 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 4.33e-05/0.4379, allocations: 316.4 kB / 0.5214 GB, free: 1.355 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.167e-06/0.4379, allocations: 1.25 kB / 0.5214 GB, free: 1.355 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.58e-06/0.4379, allocations: 1.062 kB / 0.5214 GB, free: 1.355 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.728e-05/0.4379, allocations: 73.25 kB / 0.5214 GB, free: 1.273 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.683e-06/0.4379, allocations: 0 / 0.5214 GB, free: 1.273 MB / 382.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 5.147e-05/0.438, allocations: 59.22 kB / 0.5215 GB, free: 1.211 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.401e-05/0.438, allocations: 32.31 kB / 0.5215 GB, free: 1.18 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.837e-06/0.438, allocations: 0 / 0.5215 GB, free: 1.18 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.209e-05/0.4381, allocations: 6.234 kB / 0.5215 GB, free: 1.176 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.31e-07/0.4381, allocations: 3.938 kB / 0.5215 GB, free: 1.172 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.998e-06/0.4381, allocations: 0 / 0.5215 GB, free: 1.172 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.611e-05/0.4381, allocations: 1.406 kB / 0.5215 GB, free: 1.172 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.785e-06/0.4381, allocations: 4.875 kB / 0.5215 GB, free: 1.168 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 5.176e-05/0.4382, allocations: 135.1 kB / 0.5217 GB, free: 1.023 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.266e-06/0.4382, allocations: 1.094 kB / 0.5217 GB, free: 1.023 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.056e-05/0.4382, allocations: 15.72 kB / 0.5217 GB, free: 1.008 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.472e-06/0.4382, allocations: 1.219 kB / 0.5217 GB, free: 1.008 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.717e-06/0.4382, allocations: 0.75 kB / 0.5217 GB, free: 1.008 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.134e-06/0.4382, allocations: 0 / 0.5217 GB, free: 1.008 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 4.721e-05/0.4383, allocations: 146.1 kB / 0.5218 GB, free: 0.8203 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.71e-07/0.4383, allocations: 0 / 0.5218 GB, free: 0.8203 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.062e-06/0.4383, allocations: 0.7969 kB / 0.5218 GB, free: 0.8203 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.583e-06/0.4383, allocations: 5 kB / 0.5218 GB, free: 0.8164 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.115e-06/0.4383, allocations: 5.031 kB / 0.5218 GB, free: 0.8125 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.236e-06/0.4383, allocations: 8.672 kB / 0.5219 GB, free: 0.8047 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.01e-07/0.4383, allocations: 0 / 0.5219 GB, free: 0.8047 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.688e-05/0.4384, allocations: 88.67 kB / 0.5219 GB, free: 0.707 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.94e-05/0.4384, allocations: 78.38 kB / 0.522 GB, free: 0.6133 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.296e-05/0.4384, allocations: 9.281 kB / 0.522 GB, free: 0.6055 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.077e-06/0.4384, allocations: 6.125 kB / 0.522 GB, free: 0.6016 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.107e-05/0.4384, allocations: 3.984 kB / 0.522 GB, free: 0.5977 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.866e-06/0.4384, allocations: 2.109 kB / 0.522 GB, free: 0.5977 MB / 382.1 MB Notification: Performance of sorting global known variables: time 1.586e-05/0.4385, allocations: 75.28 kB / 0.5221 GB, free: 0.5234 MB / 382.1 MB Notification: Performance of sort global known variables: time 9e-08/0.4385, allocations: 0 / 0.5221 GB, free: 0.5234 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002541/0.4387, allocations: 34.45 kB / 0.5221 GB, free: 0.5156 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.0005271/0.4393, allocations: 277.1 kB / 0.5224 GB, free: 376 kB / 382.1 MB Notification: Performance of simCode: created initialization part: time 8.871e-05/0.4394, allocations: 65.44 kB / 0.5225 GB, free: 304 kB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.763e-06/0.4394, allocations: 0 / 0.5225 GB, free: 304 kB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 2.016e-05/0.4394, allocations: 56.02 kB / 0.5225 GB, free: 240 kB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001206/0.4395, allocations: 9.594 kB / 0.5225 GB, free: 236 kB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000154/0.4397, allocations: 77.94 kB / 0.5226 GB, free: 140 kB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002336/0.4399, allocations: 0.6758 MB / 0.5233 GB, free: 15.44 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 6.242e-06/0.4399, allocations: 0 / 0.5233 GB, free: 15.44 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.227e-06/0.4399, allocations: 8.406 kB / 0.5233 GB, free: 15.43 MB / 398.1 MB Notification: Performance of SimCode: time 1.91e-07/0.44, allocations: 0 / 0.5233 GB, free: 15.43 MB / 398.1 MB Notification: Performance of Templates: time 0.003658/0.4436, allocations: 0.9867 MB / 0.5242 GB, free: 15.28 MB / 398.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/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_4.0.0_ModelicaTest.Utilities.TestStreams.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches