Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.2_ModelicaTest.Utilities.TestWriteFile.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.TestWriteFile,fileNamePrefix="ModelicaTest_3_2_2_ModelicaTest_Utilities_TestWriteFile",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.01394/0.01395, allocations: 176.5 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 2.019/2.019, allocations: 194.5 MB / 210.3 MB, free: 7.598 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.001831/0.001831, allocations: 112.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.2556/0.2556, allocations: 40.02 MB / 340.8 MB, free: 11.38 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004773/0.0004776, allocations: 13.98 kB / 406.3 MB, free: 51.8 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1006/0.1011, allocations: 54.87 MB / 461.1 MB, free: 3.184 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestWriteFile): time 0.0005893/0.1018, allocations: 218.2 kB / 461.4 MB, free: 2.969 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.000556/0.1024, allocations: 192.4 kB / 461.5 MB, free: 2.781 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.599e-05/0.1024, allocations: 0 / 461.5 MB, free: 2.781 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 1.377e-05/0.1024, allocations: 0 / 461.5 MB, free: 2.781 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 6.212e-06/0.1024, allocations: 8 kB / 461.6 MB, free: 2.773 MB / 298.7 MB [/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.2+maint.om/Utilities.mo:289:3-320:16:writable] Warning: Pure function ‘ModelicaTest.Utilities.WriteFile‘ contains a call to impure function ‘Modelica.Utilities.Streams.print‘. Notification: Performance of NFTyping.typeClassSections: time 0.0002578/0.1027, allocations: 39.89 kB / 461.6 MB, free: 2.734 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 3.146e-05/0.1027, allocations: 4 kB / 461.6 MB, free: 2.73 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.757e-05/0.1028, allocations: 0 / 461.6 MB, free: 2.73 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 1.569e-05/0.1028, allocations: 0 / 461.6 MB, free: 2.73 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 2.357e-05/0.1029, allocations: 7.984 kB / 461.6 MB, free: 2.723 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 6.302e-06/0.1029, allocations: 0 / 461.6 MB, free: 2.723 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000124/0.103, allocations: 51.89 kB / 461.7 MB, free: 2.672 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 6.562e-06/0.103, allocations: 0 / 461.7 MB, free: 2.672 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 2.225e-05/0.1031, allocations: 25.7 kB / 461.7 MB, free: 2.641 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 8.226e-05/0.1031, allocations: 27.95 kB / 461.7 MB, free: 2.613 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.929e-06/0.1032, allocations: 4 kB / 461.7 MB, free: 2.609 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.563e-06/0.1032, allocations: 0 / 461.7 MB, free: 2.609 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.857e-06/0.1032, allocations: 0 / 461.7 MB, free: 2.609 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.0002422/0.1034, allocations: 352.2 kB / 462.1 MB, free: 2.215 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.092e-05/0.1035, allocations: 12.03 kB / 462.1 MB, free: 2.203 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.522e-05/0.1035, allocations: 30.56 kB / 462.1 MB, free: 2.164 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.425e-05/0.1036, allocations: 7.891 kB / 462.1 MB, free: 2.156 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 5.933e-05/0.1036, allocations: 159.1 kB / 462.3 MB, free: 1.961 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.125e-05/0.1036, allocations: 0 / 462.3 MB, free: 1.961 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.043e-05/0.1037, allocations: 4 kB / 462.3 MB, free: 1.957 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.972e-05/0.1038, allocations: 33.7 kB / 462.3 MB, free: 1.918 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.476e-06/0.1038, allocations: 0 / 462.3 MB, free: 1.918 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.398e-06/0.1038, allocations: 3.984 kB / 462.3 MB, free: 1.914 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.683e-06/0.1038, allocations: 7.938 kB / 462.3 MB, free: 1.906 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.96e-05/0.1038, allocations: 11.89 kB / 462.3 MB, free: 1.895 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001229/0.104, allocations: 141.7 kB / 462.5 MB, free: 1.707 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 3.563e-05/0.104, allocations: 14.58 kB / 462.5 MB, free: 1.684 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.603e-05/0.104, allocations: 12.95 kB / 462.5 MB, free: 1.668 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.985e-06/0.1041, allocations: 0 / 462.5 MB, free: 1.668 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.431e-05/0.1041, allocations: 60.27 kB / 462.5 MB, free: 1.594 MB / 298.7 MB Notification: Performance of pre-optimization done (n=1): time 1.582e-06/0.1041, allocations: 0 / 462.5 MB, free: 1.594 MB / 298.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001608/0.1043, allocations: 67.33 kB / 462.6 MB, free: 1.516 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.296e-05/0.1043, allocations: 77.11 kB / 462.7 MB, free: 1.422 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.666e-05/0.1044, allocations: 89.86 kB / 462.8 MB, free: 1.324 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 9.718e-06/0.1044, allocations: 33.83 kB / 462.8 MB, free: 1.285 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 1.575e-05/0.1044, allocations: 80.14 kB / 462.9 MB, free: 1.203 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.566e-05/0.1044, allocations: 0 / 462.9 MB, free: 1.203 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.545e-06/0.1044, allocations: 0 / 462.9 MB, free: 1.203 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.558e-05/0.1045, allocations: 322.8 kB / 463.2 MB, free: 0.8789 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.958e-06/0.1045, allocations: 0 / 463.2 MB, free: 0.8789 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.846e-06/0.1045, allocations: 4 kB / 463.2 MB, free: 0.875 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.423e-05/0.1046, allocations: 25.7 kB / 463.2 MB, free: 0.8438 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.713e-06/0.1046, allocations: 64 / 463.2 MB, free: 0.8438 MB / 298.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.297e-05/0.1047, allocations: 67.34 kB / 463.3 MB, free: 0.7656 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.07e-05/0.1047, allocations: 29.7 kB / 463.3 MB, free: 0.7305 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.502e-06/0.1047, allocations: 7.969 kB / 463.3 MB, free: 0.7227 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.431e-05/0.1047, allocations: 0 / 463.3 MB, free: 0.7227 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.323e-06/0.1048, allocations: 0 / 463.3 MB, free: 0.7227 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.23e-06/0.1048, allocations: 4 kB / 463.3 MB, free: 0.7188 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.962e-05/0.1048, allocations: 3.984 kB / 463.3 MB, free: 0.7148 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.404e-06/0.1048, allocations: 0 / 463.3 MB, free: 0.7148 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 7.109e-05/0.1049, allocations: 147.5 kB / 463.5 MB, free: 0.5547 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.826e-06/0.1049, allocations: 3.938 kB / 463.5 MB, free: 0.5508 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.075e-05/0.1049, allocations: 7.078 kB / 463.5 MB, free: 0.5469 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.004e-06/0.1049, allocations: 0 / 463.5 MB, free: 0.5469 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.288e-06/0.105, allocations: 0 / 463.5 MB, free: 0.5469 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.006e-06/0.105, allocations: 0 / 463.5 MB, free: 0.5469 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 6.779e-05/0.105, allocations: 153.6 kB / 463.6 MB, free: 356 kB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.272e-06/0.1051, allocations: 0 / 463.6 MB, free: 356 kB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.102e-06/0.1051, allocations: 0 / 463.6 MB, free: 356 kB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.074e-06/0.1051, allocations: 0 / 463.6 MB, free: 356 kB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.404e-06/0.1051, allocations: 0 / 463.6 MB, free: 356 kB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.653e-06/0.1051, allocations: 4 kB / 463.6 MB, free: 352 kB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.272e-06/0.1051, allocations: 0 / 463.6 MB, free: 352 kB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.048e-05/0.1052, allocations: 98.72 kB / 463.7 MB, free: 228 kB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.98e-05/0.1052, allocations: 81.05 kB / 463.8 MB, free: 128 kB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.482e-05/0.1053, allocations: 0 / 463.8 MB, free: 128 kB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.21e-05/0.1053, allocations: 4 kB / 463.8 MB, free: 124 kB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.555e-05/0.1053, allocations: 0 / 463.8 MB, free: 124 kB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.059e-06/0.1053, allocations: 8.016 kB / 463.8 MB, free: 116 kB / 298.7 MB Notification: Performance of sorting global known variables: time 1.605e-05/0.1053, allocations: 75.28 kB / 463.9 MB, free: 40 kB / 298.7 MB Notification: Performance of sort global known variables: time 3.31e-07/0.1054, allocations: 0 / 463.9 MB, free: 40 kB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002721/0.1056, allocations: 20 kB / 463.9 MB, free: 20 kB / 298.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.0007956/0.1064, allocations: 0.7251 MB / 464.7 MB, free: 15.3 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0001025/0.1066, allocations: 59.41 kB / 464.7 MB, free: 15.23 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 4.108e-06/0.1066, allocations: 4.062 kB / 464.7 MB, free: 15.22 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 3.995e-05/0.1066, allocations: 55.41 kB / 464.8 MB, free: 15.16 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001583/0.1068, allocations: 1.406 kB / 464.8 MB, free: 15.16 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003288/0.1071, allocations: 120.2 kB / 464.9 MB, free: 15 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002346/0.1074, allocations: 0.677 MB / 465.6 MB, free: 14.29 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 6.412e-06/0.1074, allocations: 0 / 465.6 MB, free: 14.29 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.641e-05/0.1074, allocations: 7.438 kB / 465.6 MB, free: 14.29 MB / 314.7 MB Notification: Performance of SimCode: time 8.92e-07/0.1074, allocations: 0 / 465.6 MB, free: 14.29 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02443/0.1319, allocations: 1.165 MB / 466.7 MB, free: 13.18 MB / 314.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003098/0.1323, allocations: 214.2 kB / 466.9 MB, free: 12.93 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.643/2.776, allocations: 0 / 466.9 MB, free: 12.93 MB / 314.7 MB