Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.2_ModelicaTest.Utilities.TestInternal.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.TestInternal,fileNamePrefix="ModelicaTest_3_2_2_ModelicaTest_Utilities_TestInternal",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.009977/0.009983, allocations: 175.1 kB / 15.13 MB, free: 6.031 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 1.947/1.947, allocations: 194.5 MB / 210.3 MB, free: 7.605 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.001773/0.001773, 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.2389/0.2389, allocations: 40 MB / 340.8 MB, free: 11.39 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0007297/0.0007304, allocations: 10.44 kB / 406.3 MB, free: 51.8 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09888/0.09966, allocations: 54.88 MB / 461.1 MB, free: 3.211 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestInternal): time 0.000555/0.1003, allocations: 222.2 kB / 461.4 MB, free: 2.992 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0006334/0.1009, allocations: 228.4 kB / 461.6 MB, free: 2.77 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.571e-05/0.101, allocations: 3.938 kB / 461.6 MB, free: 2.766 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 1.19e-05/0.101, allocations: 0 / 461.6 MB, free: 2.766 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 6.703e-06/0.101, allocations: 4 kB / 461.6 MB, free: 2.762 MB / 298.7 MB [/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.2+maint.om/Utilities.mo:398:3-453:15:writable] Warning: Pure function ‘ModelicaTest.Utilities.Internal‘ contains a call to impure function ‘Modelica.Utilities.Streams.print‘. Notification: Performance of NFTyping.typeClassSections: time 0.0002716/0.1013, allocations: 39.89 kB / 461.6 MB, free: 2.723 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 3.064e-05/0.1013, allocations: 7.984 kB / 461.6 MB, free: 2.715 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.348e-05/0.1014, allocations: 0 / 461.6 MB, free: 2.715 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 1.424e-05/0.1014, allocations: 0 / 461.6 MB, free: 2.715 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 2.221e-05/0.1014, allocations: 4 kB / 461.6 MB, free: 2.711 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 8.336e-06/0.1014, allocations: 0 / 461.6 MB, free: 2.711 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001287/0.1016, allocations: 55.95 kB / 461.7 MB, free: 2.656 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 6.152e-06/0.1016, allocations: 0 / 461.7 MB, free: 2.656 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 1.899e-05/0.1016, allocations: 29.7 kB / 461.7 MB, free: 2.621 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 9.181e-05/0.1017, allocations: 31.95 kB / 461.8 MB, free: 2.59 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.799e-06/0.1018, allocations: 0 / 461.8 MB, free: 2.59 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.623e-06/0.1018, allocations: 0 / 461.8 MB, free: 2.59 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.436e-06/0.1018, allocations: 4 kB / 461.8 MB, free: 2.586 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.0002324/0.102, allocations: 364.1 kB / 462.1 MB, free: 2.18 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.723e-05/0.1021, allocations: 15.91 kB / 462.1 MB, free: 2.164 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.152e-05/0.1021, allocations: 30.56 kB / 462.2 MB, free: 2.125 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.252e-05/0.1021, allocations: 7.953 kB / 462.2 MB, free: 2.117 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 5.909e-05/0.1022, allocations: 163.1 kB / 462.3 MB, free: 1.918 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.094e-05/0.1022, allocations: 0 / 462.3 MB, free: 1.918 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.045e-05/0.1022, allocations: 0 / 462.3 MB, free: 1.918 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.394e-05/0.1023, allocations: 29.7 kB / 462.4 MB, free: 1.883 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.394e-06/0.1023, allocations: 4 kB / 462.4 MB, free: 1.879 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.773e-06/0.1023, allocations: 0 / 462.4 MB, free: 1.879 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.39e-06/0.1024, allocations: 3.984 kB / 462.4 MB, free: 1.875 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.825e-05/0.1024, allocations: 3.953 kB / 462.4 MB, free: 1.871 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 9.503e-05/0.1025, allocations: 153.7 kB / 462.5 MB, free: 1.672 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 3.374e-05/0.1025, allocations: 18.52 kB / 462.5 MB, free: 1.645 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.352e-05/0.1026, allocations: 4.859 kB / 462.5 MB, free: 1.637 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.466e-06/0.1026, allocations: 4 kB / 462.5 MB, free: 1.633 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.235e-05/0.1026, allocations: 60.33 kB / 462.6 MB, free: 1.559 MB / 298.7 MB Notification: Performance of pre-optimization done (n=1): time 1.503e-06/0.1026, allocations: 0 / 462.6 MB, free: 1.559 MB / 298.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001458/0.1028, allocations: 71.33 kB / 462.7 MB, free: 1.477 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.953e-05/0.1028, allocations: 77.11 kB / 462.8 MB, free: 1.383 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.539e-05/0.1029, allocations: 89.86 kB / 462.8 MB, free: 1.285 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 8.025e-06/0.1029, allocations: 25.7 kB / 462.9 MB, free: 1.254 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 1.421e-05/0.1029, allocations: 84.12 kB / 462.9 MB, free: 1.168 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.35e-05/0.1029, allocations: 4.125 kB / 463 MB, free: 1.164 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.605e-06/0.1029, allocations: 0 / 463 MB, free: 1.164 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.241e-05/0.103, allocations: 318.8 kB / 463.3 MB, free: 0.8438 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.406e-06/0.103, allocations: 0 / 463.3 MB, free: 0.8438 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.263e-06/0.103, allocations: 4 kB / 463.3 MB, free: 0.8398 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.32e-05/0.1031, allocations: 29.7 kB / 463.3 MB, free: 0.8047 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.824e-06/0.1031, allocations: 0 / 463.3 MB, free: 0.8047 MB / 298.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.796e-05/0.1031, allocations: 59.39 kB / 463.4 MB, free: 0.7344 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.79e-05/0.1032, allocations: 37.8 kB / 463.4 MB, free: 0.6914 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.999e-06/0.1032, allocations: 0 / 463.4 MB, free: 0.6914 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.163e-05/0.1032, allocations: 0 / 463.4 MB, free: 0.6914 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.164e-06/0.1032, allocations: 3.938 kB / 463.4 MB, free: 0.6875 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.57e-06/0.1032, allocations: 0 / 463.4 MB, free: 0.6875 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.798e-05/0.1033, allocations: 3.938 kB / 463.4 MB, free: 0.6836 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.245e-06/0.1033, allocations: 8 kB / 463.4 MB, free: 0.6758 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 5.971e-05/0.1034, allocations: 139.5 kB / 463.5 MB, free: 0.5234 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.021e-05/0.1034, allocations: 4 kB / 463.5 MB, free: 0.5195 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.031e-05/0.1034, allocations: 11.08 kB / 463.6 MB, free: 0.5117 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.295e-06/0.1034, allocations: 4 kB / 463.6 MB, free: 0.5078 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.747e-06/0.1034, allocations: 0 / 463.6 MB, free: 0.5078 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.344e-06/0.1034, allocations: 3.938 kB / 463.6 MB, free: 0.5039 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 6.131e-05/0.1035, allocations: 149.6 kB / 463.7 MB, free: 316 kB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.372e-06/0.1035, allocations: 0 / 463.7 MB, free: 316 kB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.32e-07/0.1035, allocations: 0 / 463.7 MB, free: 316 kB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.024e-06/0.1035, allocations: 0 / 463.7 MB, free: 316 kB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.782e-06/0.1035, allocations: 4 kB / 463.7 MB, free: 312 kB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.583e-06/0.1035, allocations: 0 / 463.7 MB, free: 312 kB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.122e-06/0.1036, allocations: 0 / 463.7 MB, free: 312 kB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.328e-05/0.1036, allocations: 98.78 kB / 463.8 MB, free: 188 kB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.809e-05/0.1037, allocations: 77.11 kB / 463.9 MB, free: 92 kB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.35e-05/0.1037, allocations: 3.938 kB / 463.9 MB, free: 88 kB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.132e-05/0.1037, allocations: 0 / 463.9 MB, free: 88 kB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.595e-05/0.1037, allocations: 0 / 463.9 MB, free: 88 kB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.19e-06/0.1038, allocations: 4 kB / 463.9 MB, free: 84 kB / 298.7 MB Notification: Performance of sorting global known variables: time 1.34e-05/0.1038, allocations: 75.28 kB / 464 MB, free: 8 kB / 298.7 MB Notification: Performance of sort global known variables: time 3.2e-07/0.1038, allocations: 4.031 kB / 464 MB, free: 4 kB / 298.7 MB Notification: Performance of remove unused functions: time 0.0003358/0.1041, allocations: 28.12 kB / 464 MB, free: 15.97 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.0008902/0.105, allocations: 0.7832 MB / 464.8 MB, free: 15.22 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.000104/0.1052, allocations: 67.34 kB / 464.8 MB, free: 15.14 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.134e-06/0.1052, allocations: 3.938 kB / 464.9 MB, free: 15.14 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 3.432e-05/0.1052, allocations: 51.41 kB / 464.9 MB, free: 15.07 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001549/0.1054, allocations: 4 kB / 464.9 MB, free: 15.07 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003134/0.1057, allocations: 116.3 kB / 465 MB, free: 14.91 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002215/0.106, allocations: 0.6811 MB / 465.7 MB, free: 14.21 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 5.641e-06/0.106, allocations: 0 / 465.7 MB, free: 14.21 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.38e-05/0.106, allocations: 7.438 kB / 465.7 MB, free: 14.2 MB / 314.7 MB Notification: Performance of SimCode: time 5.91e-07/0.106, allocations: 0 / 465.7 MB, free: 14.2 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02365/0.1297, allocations: 1.386 MB / 467.1 MB, free: 12.84 MB / 314.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002733/0.13, allocations: 229.1 kB / 467.3 MB, free: 12.59 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.494/2.624, allocations: 3.938 kB / 467.3 MB, free: 12.58 MB / 314.7 MB