Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.2_ModelicaTest.Utilities.TestStreams.conf.json Using package ModelicaTest with version 3.2.2 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.2+maint.om/package.mo) Using package ModelicaServices with version 3.2.2 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo) Using package Modelica with version 3.2.2 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo) Using package Complex with version 3.2.2 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Utilities.TestStreams,fileNamePrefix="ModelicaTest_3_2_2_ModelicaTest_Utilities_TestStreams",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo): time 0.01316/0.01317, allocations: 177.4 kB / 15.13 MB, free: 5.953 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 2.124/2.124, allocations: 194.5 MB / 210.3 MB, free: 7.609 MB / 170.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.001847/0.001846, allocations: 124.1 kB / 255.6 MB, free: 10.21 MB / 218.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.2+maint.om/package.mo): time 0.321/0.321, allocations: 40.01 MB / 340.8 MB, free: 11.4 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001061/0.001062, allocations: 11.72 kB / 406.3 MB, free: 51.82 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09798/0.09911, allocations: 54.88 MB / 461.1 MB, free: 3.203 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestStreams): time 0.0005701/0.09974, allocations: 218.3 kB / 461.4 MB, free: 2.988 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0007932/0.1006, allocations: 296.1 kB / 461.6 MB, free: 2.699 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.88e-05/0.1006, allocations: 0 / 461.6 MB, free: 2.699 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 1.009e-05/0.1006, allocations: 0 / 461.6 MB, free: 2.699 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 6.302e-06/0.1006, allocations: 0 / 461.6 MB, free: 2.699 MB / 298.7 MB [/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/Utilities/Streams.mo:47:3-68:15:writable] Warning: Pure function ‘Modelica.Utilities.Streams.readFile‘ contains a call to impure function ‘Modelica.Utilities.Streams.countLines‘. [/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.2+maint.om/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.0005446/0.1012, allocations: 67.86 kB / 461.7 MB, free: 2.633 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 3.305e-05/0.1012, allocations: 4 kB / 461.7 MB, free: 2.629 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.871e-05/0.1013, allocations: 7.938 kB / 461.7 MB, free: 2.621 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 1.752e-05/0.1013, allocations: 3.984 kB / 461.7 MB, free: 2.617 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 2.592e-05/0.1013, allocations: 3.984 kB / 461.7 MB, free: 2.613 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 6.562e-06/0.1014, allocations: 0 / 461.7 MB, free: 2.613 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002002/0.1016, allocations: 95.91 kB / 461.8 MB, free: 2.52 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 6.763e-06/0.1016, allocations: 0 / 461.8 MB, free: 2.52 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 2.532e-05/0.1016, allocations: 25.7 kB / 461.9 MB, free: 2.488 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001315/0.1018, allocations: 51.92 kB / 461.9 MB, free: 2.438 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.202e-06/0.1018, allocations: 0 / 461.9 MB, free: 2.438 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.793e-06/0.1018, allocations: 0 / 461.9 MB, free: 2.438 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.789e-06/0.1018, allocations: 4 kB / 461.9 MB, free: 2.434 MB / 298.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.0002713/0.1021, allocations: 369 kB / 462.3 MB, free: 2.02 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.441e-05/0.1021, allocations: 8.031 kB / 462.3 MB, free: 2.012 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.409e-05/0.1022, allocations: 34.55 kB / 462.3 MB, free: 1.969 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.5e-05/0.1022, allocations: 3.953 kB / 462.3 MB, free: 1.965 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 6.391e-05/0.1023, allocations: 163 kB / 462.5 MB, free: 1.766 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.315e-05/0.1023, allocations: 0 / 462.5 MB, free: 1.766 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.158e-05/0.1023, allocations: 4 kB / 462.5 MB, free: 1.762 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.499e-05/0.1024, allocations: 29.7 kB / 462.5 MB, free: 1.727 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.105e-06/0.1024, allocations: 0 / 462.5 MB, free: 1.727 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.895e-06/0.1025, allocations: 3.938 kB / 462.5 MB, free: 1.723 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.198e-06/0.1025, allocations: 4 kB / 462.5 MB, free: 1.719 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.04e-05/0.1025, allocations: 3.953 kB / 462.5 MB, free: 1.715 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001011/0.1026, allocations: 153.7 kB / 462.7 MB, free: 1.516 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 3.612e-05/0.1027, allocations: 22.55 kB / 462.7 MB, free: 1.484 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.405e-05/0.1027, allocations: 4.859 kB / 462.7 MB, free: 1.477 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.007e-06/0.1027, allocations: 4 kB / 462.7 MB, free: 1.473 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.088e-05/0.1027, allocations: 56.27 kB / 462.7 MB, free: 1.402 MB / 298.7 MB Notification: Performance of pre-optimization done (n=1): time 1.493e-06/0.1028, allocations: 0 / 462.7 MB, free: 1.402 MB / 298.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001582/0.1029, allocations: 67.45 kB / 462.8 MB, free: 1.324 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.894e-05/0.103, allocations: 81.11 kB / 462.9 MB, free: 1.227 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.212e-05/0.103, allocations: 89.86 kB / 463 MB, free: 1.129 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 8.196e-06/0.103, allocations: 25.7 kB / 463 MB, free: 1.098 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 1.55e-05/0.1031, allocations: 80.27 kB / 463.1 MB, free: 1.016 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.549e-05/0.1031, allocations: 4 kB / 463.1 MB, free: 1.012 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.525e-06/0.1031, allocations: 3.938 kB / 463.1 MB, free: 1.008 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.19e-05/0.1031, allocations: 314.8 kB / 463.4 MB, free: 0.6914 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.154e-05/0.1032, allocations: 4 kB / 463.4 MB, free: 0.6875 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.867e-06/0.1032, allocations: 0 / 463.4 MB, free: 0.6875 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.594e-05/0.1032, allocations: 29.69 kB / 463.4 MB, free: 0.6523 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.976e-06/0.1032, allocations: 0 / 463.4 MB, free: 0.6523 MB / 298.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 8.101e-05/0.1033, allocations: 67.34 kB / 463.5 MB, free: 0.5742 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.072e-05/0.1034, allocations: 33.8 kB / 463.5 MB, free: 0.5352 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.991e-06/0.1034, allocations: 0 / 463.5 MB, free: 0.5352 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.276e-05/0.1034, allocations: 4 kB / 463.5 MB, free: 0.5312 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.433e-06/0.1034, allocations: 0 / 463.5 MB, free: 0.5312 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.531e-06/0.1034, allocations: 0 / 463.5 MB, free: 0.5312 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.374e-05/0.1035, allocations: 3.984 kB / 463.5 MB, free: 0.5273 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.096e-06/0.1035, allocations: 0 / 463.5 MB, free: 0.5273 MB / 298.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 6.96e-05/0.1036, allocations: 139.5 kB / 463.7 MB, free: 384 kB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.688e-06/0.1036, allocations: 0 / 463.7 MB, free: 384 kB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.348e-05/0.1036, allocations: 11.08 kB / 463.7 MB, free: 376 kB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.525e-06/0.1036, allocations: 3.938 kB / 463.7 MB, free: 372 kB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.889e-06/0.1036, allocations: 0 / 463.7 MB, free: 372 kB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.945e-06/0.1036, allocations: 0 / 463.7 MB, free: 372 kB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.554e-05/0.1037, allocations: 157.6 kB / 463.8 MB, free: 164 kB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.444e-06/0.1037, allocations: 0 / 463.8 MB, free: 164 kB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.092e-06/0.1037, allocations: 0 / 463.8 MB, free: 164 kB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.455e-06/0.1037, allocations: 0 / 463.8 MB, free: 164 kB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.514e-06/0.1038, allocations: 0 / 463.8 MB, free: 164 kB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.803e-06/0.1038, allocations: 0 / 463.8 MB, free: 164 kB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.014e-06/0.1038, allocations: 8 kB / 463.9 MB, free: 156 kB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.87e-05/0.1039, allocations: 98.72 kB / 463.9 MB, free: 32 kB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.901e-05/0.104, allocations: 77.11 kB / 464 MB, free: 15.94 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.839e-05/0.104, allocations: 4 kB / 464 MB, free: 15.93 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.306e-05/0.104, allocations: 0 / 464 MB, free: 15.93 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.934e-05/0.104, allocations: 0 / 464 MB, free: 15.93 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.2e-06/0.1041, allocations: 0 / 464 MB, free: 15.93 MB / 314.7 MB Notification: Performance of sorting global known variables: time 2.907e-05/0.1041, allocations: 75.28 kB / 464.1 MB, free: 15.86 MB / 314.7 MB Notification: Performance of sort global known variables: time 4e-07/0.1041, allocations: 4.031 kB / 464.1 MB, free: 15.86 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0003554/0.1045, allocations: 35.98 kB / 464.1 MB, free: 15.82 MB / 314.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0009875/0.1055, allocations: 0.7915 MB / 464.9 MB, free: 15.05 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0001147/0.1056, allocations: 67.33 kB / 465 MB, free: 14.98 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.675e-06/0.1056, allocations: 0 / 465 MB, free: 14.98 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 4.154e-05/0.1057, allocations: 55.41 kB / 465.1 MB, free: 14.91 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001601/0.1059, allocations: 3.938 kB / 465.1 MB, free: 14.91 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003626/0.1062, allocations: 124.3 kB / 465.2 MB, free: 14.74 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002376/0.1065, allocations: 0.677 MB / 465.9 MB, free: 14.04 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 6.573e-06/0.1065, allocations: 0 / 465.9 MB, free: 14.04 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.966e-05/0.1065, allocations: 11.56 kB / 465.9 MB, free: 14.03 MB / 314.7 MB Notification: Performance of SimCode: time 9.92e-07/0.1065, allocations: 3.938 kB / 465.9 MB, free: 14.02 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02468/0.1312, allocations: 1.546 MB / 467.4 MB, free: 12.52 MB / 314.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002366/0.1315, allocations: 215.9 kB / 467.6 MB, free: 12.27 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.538/2.67, allocations: 0 / 467.6 MB, free: 12.27 MB / 314.7 MB