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.001269/0.001269, allocations: 113.2 kB / 17.78 MB, free: 5.242 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.001423/0.001423, allocations: 184.2 kB / 18.71 MB, free: 4.32 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.472/1.472, allocations: 222.9 MB / 242.4 MB, free: 15.16 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.2129/0.2129, allocations: 44.18 MB / 336.7 MB, free: 2.684 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001596/0.001596, allocations: 55.91 kB / 470.5 MB, free: 13.21 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.348/0.3496, allocations: 60.82 MB / 0.5189 GB, free: 3.863 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestStreams): time 0.001483/0.3511, allocations: 497.4 kB / 0.5193 GB, free: 3.57 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006955/0.3518, allocations: 299.8 kB / 0.5196 GB, free: 3.391 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.699e-05/0.3519, allocations: 0 / 0.5196 GB, free: 3.391 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 1.459e-05/0.3519, allocations: 0 / 0.5196 GB, free: 3.391 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 8.035e-06/0.3519, allocations: 0 / 0.5196 GB, free: 3.391 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.0009374/0.3529, allocations: 93.48 kB / 0.5197 GB, free: 3.348 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 6.95e-05/0.3529, allocations: 9.25 kB / 0.5197 GB, free: 3.34 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.561e-05/0.353, allocations: 2.594 kB / 0.5197 GB, free: 3.34 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.975e-05/0.353, allocations: 1.594 kB / 0.5197 GB, free: 3.34 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.64e-05/0.3531, allocations: 3.984 kB / 0.5197 GB, free: 3.336 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 6.853e-06/0.3531, allocations: 5.344 kB / 0.5197 GB, free: 3.332 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002502/0.3533, allocations: 109.5 kB / 0.5198 GB, free: 3.297 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 8.606e-06/0.3533, allocations: 0 / 0.5198 GB, free: 3.297 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 2.455e-05/0.3534, allocations: 1.25 kB / 0.5198 GB, free: 3.297 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002078/0.3536, allocations: 83.34 kB / 0.5199 GB, free: 3.27 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.233e-06/0.3536, allocations: 0.6094 kB / 0.5199 GB, free: 3.27 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.984e-06/0.3536, allocations: 4 kB / 0.5199 GB, free: 3.266 MB / 382.1 MB Notification: Performance of Transformations before backend: time 2.467e-05/0.3536, allocations: 1.531 kB / 0.5199 GB, free: 3.266 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.00037/0.354, allocations: 359.7 kB / 0.5203 GB, free: 2.871 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.805e-05/0.3541, allocations: 9.938 kB / 0.5203 GB, free: 2.871 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.949e-05/0.3541, allocations: 1.594 kB / 0.5203 GB, free: 2.871 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 6.569e-05/0.3542, allocations: 166.3 kB / 0.5204 GB, free: 2.672 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.382e-05/0.3542, allocations: 4.375 kB / 0.5204 GB, free: 2.668 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.221e-05/0.3542, allocations: 1.469 kB / 0.5205 GB, free: 2.668 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.562e-05/0.3543, allocations: 38.48 kB / 0.5205 GB, free: 2.629 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.334e-05/0.3543, allocations: 0.7969 kB / 0.5205 GB, free: 2.629 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.264e-05/0.3544, allocations: 3.938 kB / 0.5205 GB, free: 2.625 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.268e-06/0.3544, allocations: 0 / 0.5205 GB, free: 2.625 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.126e-05/0.3544, allocations: 2.469 kB / 0.5205 GB, free: 2.625 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001162/0.3545, allocations: 144.4 kB / 0.5206 GB, free: 2.438 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.428e-05/0.3546, allocations: 16.77 kB / 0.5206 GB, free: 2.414 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.6e-05/0.3546, allocations: 10.33 kB / 0.5207 GB, free: 2.402 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.068e-05/0.3546, allocations: 10.34 kB / 0.5207 GB, free: 2.395 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.688e-05/0.3546, allocations: 56.27 kB / 0.5207 GB, free: 2.324 MB / 382.1 MB Notification: Performance of pre-optimization done (n=1): time 1.322e-06/0.3546, allocations: 0 / 0.5207 GB, free: 2.324 MB / 382.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001806/0.3548, allocations: 65.41 kB / 0.5208 GB, free: 2.258 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.604e-05/0.3549, allocations: 78.66 kB / 0.5209 GB, free: 2.164 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.8e-05/0.3549, allocations: 90.42 kB / 0.5209 GB, free: 2.066 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 9.958e-06/0.3549, allocations: 26.89 kB / 0.521 GB, free: 2.035 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 1.577e-05/0.3549, allocations: 84.27 kB / 0.5211 GB, free: 1.949 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.137e-05/0.355, allocations: 9.453 kB / 0.5211 GB, free: 1.941 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.719e-05/0.355, allocations: 12.16 kB / 0.5211 GB, free: 1.926 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 5.657e-05/0.3551, allocations: 312.8 kB / 0.5214 GB, free: 1.613 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.246e-05/0.3551, allocations: 5.281 kB / 0.5214 GB, free: 1.609 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.304e-06/0.3551, allocations: 5.031 kB / 0.5214 GB, free: 1.605 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.966e-05/0.3552, allocations: 60.59 kB / 0.5214 GB, free: 1.535 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.914e-06/0.3552, allocations: 0 / 0.5214 GB, free: 1.535 MB / 382.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 5.942e-05/0.3552, allocations: 68.39 kB / 0.5215 GB, free: 1.465 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.965e-05/0.3553, allocations: 31.95 kB / 0.5215 GB, free: 1.434 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.328e-06/0.3553, allocations: 0 / 0.5215 GB, free: 1.434 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.681e-05/0.3553, allocations: 5.703 kB / 0.5215 GB, free: 1.43 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.21e-07/0.3553, allocations: 0 / 0.5215 GB, free: 1.43 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.8e-06/0.3553, allocations: 3.938 kB / 0.5215 GB, free: 1.426 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.842e-05/0.3553, allocations: 1.812 kB / 0.5215 GB, free: 1.426 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.576e-06/0.3553, allocations: 1 kB / 0.5215 GB, free: 1.426 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.789e-05/0.3554, allocations: 134.5 kB / 0.5217 GB, free: 1.281 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.013e-05/0.3554, allocations: 5.844 kB / 0.5217 GB, free: 1.277 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.377e-05/0.3554, allocations: 15.75 kB / 0.5217 GB, free: 1.262 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.175e-06/0.3555, allocations: 5.234 kB / 0.5217 GB, free: 1.258 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.937e-06/0.3555, allocations: 0 / 0.5217 GB, free: 1.258 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.554e-06/0.3555, allocations: 0 / 0.5217 GB, free: 1.258 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 6.867e-05/0.3555, allocations: 150.1 kB / 0.5218 GB, free: 1.066 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.513e-06/0.3555, allocations: 0.6562 kB / 0.5218 GB, free: 1.066 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.42e-07/0.3556, allocations: 0 / 0.5218 GB, free: 1.066 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.082e-06/0.3556, allocations: 1.094 kB / 0.5218 GB, free: 1.066 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.486e-06/0.3556, allocations: 5.859 kB / 0.5218 GB, free: 1.062 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.72e-07/0.3556, allocations: 0 / 0.5218 GB, free: 1.062 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.002e-06/0.3556, allocations: 4 kB / 0.5219 GB, free: 1.059 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.661e-05/0.3557, allocations: 89.14 kB / 0.5219 GB, free: 0.9609 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.126e-05/0.3557, allocations: 78.14 kB / 0.522 GB, free: 0.8672 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.669e-05/0.3557, allocations: 9.625 kB / 0.522 GB, free: 0.8594 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.197e-06/0.3557, allocations: 1.188 kB / 0.522 GB, free: 0.8594 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.907e-05/0.3558, allocations: 1.844 kB / 0.522 GB, free: 0.8594 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.535e-06/0.3558, allocations: 0 / 0.522 GB, free: 0.8594 MB / 382.1 MB Notification: Performance of sorting global known variables: time 1.54e-05/0.3558, allocations: 80.41 kB / 0.5221 GB, free: 0.7812 MB / 382.1 MB Notification: Performance of sort global known variables: time 9.31e-07/0.3558, allocations: 0 / 0.5221 GB, free: 0.7812 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002791/0.3561, allocations: 38.7 kB / 0.5221 GB, free: 0.7695 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.0005082/0.3566, allocations: 280.4 kB / 0.5224 GB, free: 0.6172 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 8.042e-05/0.3567, allocations: 58.23 kB / 0.5225 GB, free: 0.5547 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.964e-06/0.3567, allocations: 4 kB / 0.5225 GB, free: 0.5508 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 1.779e-05/0.3567, allocations: 55.53 kB / 0.5225 GB, free: 500 kB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001223/0.3568, allocations: 3.359 kB / 0.5225 GB, free: 500 kB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001486/0.357, allocations: 80.86 kB / 0.5226 GB, free: 400 kB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001646/0.3572, allocations: 0.6748 MB / 0.5233 GB, free: 15.69 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 5.791e-06/0.3572, allocations: 0.7031 kB / 0.5233 GB, free: 15.69 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.648e-06/0.3572, allocations: 8.844 kB / 0.5233 GB, free: 15.68 MB / 398.1 MB Notification: Performance of SimCode: time 2e-07/0.3572, allocations: 0 / 0.5233 GB, free: 15.68 MB / 398.1 MB Notification: Performance of Templates: time 0.003947/0.3611, allocations: 0.9808 MB / 0.5242 GB, free: 15.54 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