Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Utilities.TestStreams.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package ModelicaServices with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 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(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009971/0.0009971, allocations: 195.7 kB / 17.43 MB, free: 4.371 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.294/1.294, allocations: 229.5 MB / 247.7 MB, free: 6.352 MB / 202.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007594/0.0007595, allocations: 96.95 kB / 299.8 MB, free: 5.359 MB / 234.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.3058/0.3058, allocations: 45.01 MB / 397 MB, free: 31.48 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003059/0.000306, allocations: 8 kB / 470.8 MB, free: 7.121 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3134/0.3137, allocations: 63.1 MB / 0.5214 GB, free: 38.5 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestStreams): time 0.0005813/0.3143, allocations: 212.2 kB / 0.5216 GB, free: 38.36 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.0006713/0.315, allocations: 0.5157 MB / 0.5221 GB, free: 37.9 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.157e-05/0.315, allocations: 0 / 0.5221 GB, free: 37.9 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 1.334e-05/0.315, allocations: 0 / 0.5221 GB, free: 37.9 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 5.491e-06/0.315, allocations: 0 / 0.5221 GB, free: 37.9 MB / 378.7 MB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-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.0007226/0.3158, allocations: 72.48 kB / 0.5221 GB, free: 37.87 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 2.57e-05/0.3158, allocations: 2.969 kB / 0.5221 GB, free: 37.87 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.227e-05/0.3158, allocations: 3.047 kB / 0.5221 GB, free: 37.87 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 1.547e-05/0.3159, allocations: 3.938 kB / 0.5221 GB, free: 37.86 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 2.041e-05/0.3159, allocations: 4 kB / 0.5222 GB, free: 37.86 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 5.079e-06/0.3159, allocations: 2.938 kB / 0.5222 GB, free: 37.86 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001522/0.3161, allocations: 100.3 kB / 0.5223 GB, free: 37.82 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 7.694e-06/0.3161, allocations: 3.984 kB / 0.5223 GB, free: 37.82 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 2.675e-05/0.3161, allocations: 28.2 kB / 0.5223 GB, free: 37.79 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001585/0.3163, allocations: 83.14 kB / 0.5224 GB, free: 37.77 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.36e-06/0.3163, allocations: 0 / 0.5224 GB, free: 37.77 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.412e-06/0.3163, allocations: 0 / 0.5224 GB, free: 37.77 MB / 378.7 MB Notification: Performance of Transformations before backend: time 3.707e-06/0.3163, allocations: 0 / 0.5224 GB, free: 37.77 MB / 378.7 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.0002419/0.3166, allocations: 364.9 kB / 0.5227 GB, free: 37.36 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.899e-05/0.3166, allocations: 12.25 kB / 0.5227 GB, free: 37.36 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.385e-05/0.3166, allocations: 3.688 kB / 0.5227 GB, free: 37.36 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 6.623e-05/0.3167, allocations: 160.4 kB / 0.5229 GB, free: 37.16 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.424e-05/0.3167, allocations: 384 / 0.5229 GB, free: 37.16 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.141e-05/0.3167, allocations: 384 / 0.5229 GB, free: 37.16 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.968e-05/0.3168, allocations: 39.56 kB / 0.5229 GB, free: 37.12 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.346e-06/0.3168, allocations: 192 / 0.5229 GB, free: 37.12 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.013e-05/0.3169, allocations: 6.188 kB / 0.5229 GB, free: 37.12 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.069e-06/0.3169, allocations: 0 / 0.5229 GB, free: 37.12 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.604e-05/0.3169, allocations: 0 / 0.5229 GB, free: 37.12 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001036/0.317, allocations: 152.3 kB / 0.5231 GB, free: 36.93 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 3.129e-05/0.317, allocations: 20.56 kB / 0.5231 GB, free: 36.9 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.061e-05/0.3171, allocations: 4.859 kB / 0.5231 GB, free: 36.89 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.696e-06/0.3171, allocations: 0 / 0.5231 GB, free: 36.89 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.434e-05/0.3171, allocations: 62.58 kB / 0.5231 GB, free: 36.82 MB / 378.7 MB Notification: Performance of pre-optimization done (n=1): time 7.91e-07/0.3171, allocations: 0 / 0.5231 GB, free: 36.82 MB / 378.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001668/0.3173, allocations: 73.88 kB / 0.5232 GB, free: 36.75 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.03e-05/0.3173, allocations: 77.11 kB / 0.5233 GB, free: 36.65 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.651e-05/0.3174, allocations: 89.86 kB / 0.5234 GB, free: 36.55 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 8.716e-06/0.3174, allocations: 28.33 kB / 0.5234 GB, free: 36.52 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 1.431e-05/0.3174, allocations: 80.14 kB / 0.5235 GB, free: 36.44 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.752e-05/0.3174, allocations: 0 / 0.5235 GB, free: 36.44 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.614e-06/0.3174, allocations: 0 / 0.5235 GB, free: 36.44 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 5.32e-05/0.3175, allocations: 310.8 kB / 0.5238 GB, free: 36.13 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.137e-06/0.3175, allocations: 6.688 kB / 0.5238 GB, free: 36.12 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.401e-06/0.3175, allocations: 4 kB / 0.5238 GB, free: 36.12 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.627e-05/0.3176, allocations: 66.06 kB / 0.5239 GB, free: 36.05 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.685e-06/0.3176, allocations: 7.281 kB / 0.5239 GB, free: 36.04 MB / 378.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 5.083e-05/0.3176, allocations: 56.66 kB / 0.5239 GB, free: 35.98 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.01e-05/0.3177, allocations: 34.58 kB / 0.5239 GB, free: 35.95 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.952e-06/0.3177, allocations: 0 / 0.5239 GB, free: 35.95 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.947e-05/0.3177, allocations: 3.938 kB / 0.524 GB, free: 35.95 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.32e-07/0.3177, allocations: 0 / 0.524 GB, free: 35.95 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.661e-06/0.3177, allocations: 4.094 kB / 0.524 GB, free: 35.94 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.884e-05/0.3177, allocations: 3.062 kB / 0.524 GB, free: 35.94 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.864e-06/0.3177, allocations: 0 / 0.524 GB, free: 35.94 MB / 378.7 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 6.872e-05/0.3178, allocations: 138.6 kB / 0.5241 GB, free: 35.79 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.163e-06/0.3178, allocations: 2.906 kB / 0.5241 GB, free: 35.79 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.025e-05/0.3178, allocations: 10.66 kB / 0.5241 GB, free: 35.79 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.152e-06/0.3179, allocations: 0 / 0.5241 GB, free: 35.79 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.057e-06/0.3179, allocations: 0 / 0.5241 GB, free: 35.79 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.565e-06/0.3179, allocations: 0 / 0.5241 GB, free: 35.79 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 6.876e-05/0.3179, allocations: 155.5 kB / 0.5243 GB, free: 35.59 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.12e-07/0.3179, allocations: 0 / 0.5243 GB, free: 35.59 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.453e-06/0.318, allocations: 3.938 kB / 0.5243 GB, free: 35.59 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.052e-06/0.318, allocations: 0 / 0.5243 GB, free: 35.59 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.204e-06/0.318, allocations: 6.781 kB / 0.5243 GB, free: 35.59 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.51e-07/0.318, allocations: 3.938 kB / 0.5243 GB, free: 35.58 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.11e-07/0.318, allocations: 0 / 0.5243 GB, free: 35.58 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.694e-05/0.3181, allocations: 90 kB / 0.5244 GB, free: 35.48 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.899e-05/0.3181, allocations: 81.14 kB / 0.5244 GB, free: 35.39 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.229e-05/0.3181, allocations: 3.938 kB / 0.5244 GB, free: 35.38 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.157e-06/0.3181, allocations: 2.875 kB / 0.5244 GB, free: 35.38 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.251e-05/0.3181, allocations: 11.3 kB / 0.5244 GB, free: 35.38 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.324e-06/0.3181, allocations: 0 / 0.5244 GB, free: 35.38 MB / 378.7 MB Notification: Performance of sorting global known variables: time 1.234e-05/0.3182, allocations: 75.28 kB / 0.5245 GB, free: 35.3 MB / 378.7 MB Notification: Performance of sort global known variables: time 9e-08/0.3182, allocations: 0 / 0.5245 GB, free: 35.3 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0002411/0.3184, allocations: 36.06 kB / 0.5246 GB, free: 35.29 MB / 378.7 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.0004796/0.3189, allocations: 308.5 kB / 0.5248 GB, free: 35.12 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 7.427e-05/0.319, allocations: 65.53 kB / 0.5249 GB, free: 35.05 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.076e-06/0.319, allocations: 4.062 kB / 0.5249 GB, free: 35.04 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 1.785e-05/0.319, allocations: 54.62 kB / 0.525 GB, free: 34.98 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001323/0.3191, allocations: 2.906 kB / 0.525 GB, free: 34.98 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001476/0.3193, allocations: 75.53 kB / 0.525 GB, free: 34.89 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.882e-05/0.3194, allocations: 0.672 MB / 0.5257 GB, free: 34.19 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 6.352e-06/0.3194, allocations: 0 / 0.5257 GB, free: 34.19 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.933e-06/0.3194, allocations: 7.438 kB / 0.5257 GB, free: 34.18 MB / 378.7 MB Notification: Performance of SimCode: time 2e-07/0.3194, allocations: 0 / 0.5257 GB, free: 34.18 MB / 378.7 MB Notification: Performance of Templates: time 0.002745/0.3222, allocations: 0.9691 MB / 0.5266 GB, free: 34.04 MB / 378.7 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Utilities/TestStreams/TestStreams.csv","../files/ModelicaTest_trunk_ModelicaTest.Utilities.TestStreams.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches