Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr HanserModelica_HanserModelica.VariablesTypes.InitializationParameters.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/Modelica 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/HanserModelica 2.0.0-master/package.mo", uses=false) Using package HanserModelica with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/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 Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 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: "" <> buildModelFMU(HanserModelica.VariablesTypes.InitializationParameters,fileNamePrefix="HanserModelica_HanserModelica_VariablesTypes_InitializationParameters",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HanserModelica.VariablesTypes.InitializationParameters,fileNamePrefix="HanserModelica_HanserModelica_VariablesTypes_InitializationParameters",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.006893/0.006893, allocations: 101.2 kB / 15.73 MB, free: 6.051 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.513/1.513, allocations: 222.9 MB / 239.4 MB, free: 4.527 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00272/0.002719, allocations: 192.5 kB / 289.7 MB, free: 2.246 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.04781/0.04781, allocations: 8.798 MB / 348.7 MB, free: 4.605 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001646/0.001647, allocations: 83.88 kB / 463.4 MB, free: 13.6 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.121/0.1227, allocations: 51.55 MB / 0.5029 GB, free: 10.01 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/VariablesTypes/InitializationParameters.mo:5:3-5:28:writable] Warning: Parameter b has no value, and is fixed during initialization (fixed=true), using available start value (start=0) as default value. Notification: Performance of NFInst.instantiate(HanserModelica.VariablesTypes.InitializationParameters): time 0.002205/0.1249, allocations: 0.5124 MB / 0.5034 GB, free: 9.496 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.000704/0.1257, allocations: 300.1 kB / 0.5037 GB, free: 9.199 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.607e-05/0.1257, allocations: 0 / 0.5037 GB, free: 9.199 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 4.169e-05/0.1258, allocations: 0 / 0.5037 GB, free: 9.199 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004577/0.1262, allocations: 63.73 kB / 0.5037 GB, free: 9.137 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 7.675e-05/0.1263, allocations: 8 kB / 0.5037 GB, free: 9.129 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001274/0.1264, allocations: 27.86 kB / 0.5038 GB, free: 9.102 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.846e-05/0.1265, allocations: 11.98 kB / 0.5038 GB, free: 9.09 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.427e-05/0.1266, allocations: 19.92 kB / 0.5038 GB, free: 9.07 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003253/0.1269, allocations: 59.86 kB / 0.5039 GB, free: 9.012 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.769e-05/0.1269, allocations: 0 / 0.5039 GB, free: 9.012 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.356e-05/0.127, allocations: 0 / 0.5039 GB, free: 9.012 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 5.396e-05/0.127, allocations: 15.92 kB / 0.5039 GB, free: 8.996 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 4.22e-05/0.1271, allocations: 19.88 kB / 0.5039 GB, free: 8.977 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001048/0.1272, allocations: 28.12 kB / 0.5039 GB, free: 8.949 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.719e-06/0.1272, allocations: 4 kB / 0.5039 GB, free: 8.945 MB / 350.1 MB Notification: Performance of FrontEnd: time 9.52e-07/0.1272, allocations: 0 / 0.5039 GB, free: 8.945 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.302e-06/0.1272, allocations: 0 / 0.5039 GB, free: 8.945 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 0 * Number of variables: 0 Notification: Performance of Generate backend data structure: time 0.0005574/0.1278, allocations: 404.8 kB / 0.5043 GB, free: 8.492 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.287e-05/0.1278, allocations: 8.031 kB / 0.5043 GB, free: 8.484 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.489e-05/0.1279, allocations: 106 kB / 0.5044 GB, free: 8.371 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.884e-05/0.128, allocations: 84.17 kB / 0.5045 GB, free: 8.289 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002898/0.1283, allocations: 257.2 kB / 0.5047 GB, free: 8 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.555e-05/0.1284, allocations: 150.9 kB / 0.5049 GB, free: 7.852 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.213e-05/0.1285, allocations: 162.9 kB / 0.505 GB, free: 7.691 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.388e-05/0.1286, allocations: 105.5 kB / 0.5051 GB, free: 7.582 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.93e-05/0.1286, allocations: 79.22 kB / 0.5052 GB, free: 7.504 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.846e-05/0.1287, allocations: 154.6 kB / 0.5054 GB, free: 7.352 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.44e-05/0.1288, allocations: 150.6 kB / 0.5055 GB, free: 7.203 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.862e-05/0.1288, allocations: 150.6 kB / 0.5057 GB, free: 7.055 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003675/0.1292, allocations: 477.8 kB / 0.5061 GB, free: 6.539 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.139e-05/0.1293, allocations: 173.1 kB / 0.5063 GB, free: 6.359 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.85e-05/0.1293, allocations: 84.19 kB / 0.5064 GB, free: 6.273 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.3e-05/0.1294, allocations: 75.28 kB / 0.5064 GB, free: 6.199 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.477e-05/0.1294, allocations: 109.8 kB / 0.5065 GB, free: 6.082 MB / 350.1 MB Notification: Performance of pre-optimization done (n=0): time 1.362e-06/0.1294, allocations: 0 / 0.5065 GB, free: 6.082 MB / 350.1 MB Notification: Performance of matching and sorting (n=0): time 0.000125/0.1296, allocations: 41.58 kB / 0.5066 GB, free: 6.035 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.333e-05/0.1297, allocations: 130.7 kB / 0.5067 GB, free: 5.895 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001816/0.1298, allocations: 151.1 kB / 0.5068 GB, free: 5.738 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.739e-05/0.1299, allocations: 25.7 kB / 0.5069 GB, free: 5.707 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.486e-05/0.1299, allocations: 92.08 kB / 0.507 GB, free: 5.613 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.425e-06/0.1299, allocations: 0 / 0.507 GB, free: 5.613 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.868e-05/0.13, allocations: 21.72 kB / 0.507 GB, free: 5.586 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001283/0.1301, allocations: 318.8 kB / 0.5073 GB, free: 5.266 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.569e-05/0.1302, allocations: 15.98 kB / 0.5073 GB, free: 5.25 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.024e-05/0.1303, allocations: 61.14 kB / 0.5074 GB, free: 5.172 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001156/0.1304, allocations: 86.8 kB / 0.5074 GB, free: 5.062 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.072e-06/0.1304, allocations: 8 kB / 0.5074 GB, free: 5.055 MB / 350.1 MB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0005071/0.1309, allocations: 327 kB / 0.5078 GB, free: 4.68 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.257e-05/0.131, allocations: 33.7 kB / 0.5078 GB, free: 4.641 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.334e-06/0.131, allocations: 4.188 kB / 0.5078 GB, free: 4.637 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002163/0.1312, allocations: 45.69 kB / 0.5078 GB, free: 4.586 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002315/0.1315, allocations: 23.98 kB / 0.5079 GB, free: 4.562 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00427/0.1357, allocations: 5.579 MB / 0.5133 GB, free: 14.42 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.818e-05/0.1358, allocations: 11.89 kB / 0.5133 GB, free: 14.41 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.399e-05/0.1359, allocations: 4 kB / 0.5133 GB, free: 14.41 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (6): * Single equations (assignments): 1 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 2 systems {1, 1} * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.000155/0.136, allocations: 209.1 kB / 0.5135 GB, free: 14.19 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.213e-05/0.1361, allocations: 108.9 kB / 0.5136 GB, free: 14.08 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.583e-05/0.1362, allocations: 104.9 kB / 0.5137 GB, free: 13.96 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.538e-05/0.1363, allocations: 188.2 kB / 0.5139 GB, free: 13.77 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.65e-05/0.1364, allocations: 184.2 kB / 0.5141 GB, free: 13.59 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.222e-05/0.1364, allocations: 176.3 kB / 0.5142 GB, free: 13.41 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004272/0.1369, allocations: 417.1 kB / 0.5146 GB, free: 12.94 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.409e-05/0.1369, allocations: 105 kB / 0.5147 GB, free: 12.83 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.157e-05/0.137, allocations: 116.9 kB / 0.5149 GB, free: 12.71 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.707e-05/0.1371, allocations: 176.4 kB / 0.515 GB, free: 12.53 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.209e-05/0.1372, allocations: 184.2 kB / 0.5152 GB, free: 12.34 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.606e-05/0.1372, allocations: 184.2 kB / 0.5154 GB, free: 12.16 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.436e-05/0.1373, allocations: 180.3 kB / 0.5156 GB, free: 11.97 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000169/0.1375, allocations: 315.6 kB / 0.5159 GB, free: 11.64 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001404/0.1376, allocations: 190 kB / 0.516 GB, free: 11.43 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.367e-05/0.1377, allocations: 180.2 kB / 0.5162 GB, free: 11.25 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001032/0.1379, allocations: 105 kB / 0.5163 GB, free: 11.14 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001051/0.138, allocations: 188.2 kB / 0.5165 GB, free: 10.95 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.52e-05/0.138, allocations: 101 kB / 0.5166 GB, free: 10.84 MB / 366.1 MB Notification: Performance of sorting global known variables: time 9.083e-05/0.1381, allocations: 109.1 kB / 0.5167 GB, free: 10.73 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1381, allocations: 4 kB / 0.5167 GB, free: 10.73 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003313/0.1385, allocations: 15.94 kB / 0.5167 GB, free: 10.71 MB / 366.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: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (0): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 0 * 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.0004244/0.1389, allocations: 0.8048 MB / 0.5175 GB, free: 9.883 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0008187/0.1397, allocations: 348.7 kB / 0.5178 GB, free: 9.504 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.146e-06/0.1397, allocations: 0 / 0.5178 GB, free: 9.504 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 2.134e-06/0.1397, allocations: 0 / 0.5178 GB, free: 9.504 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004207/0.1402, allocations: 460.1 kB / 0.5183 GB, free: 9.051 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001931/0.1421, allocations: 1.991 MB / 0.5202 GB, free: 6.855 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002875/0.1424, allocations: 0.6885 MB / 0.5209 GB, free: 6.141 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 3.114e-05/0.1424, allocations: 4 kB / 0.5209 GB, free: 6.137 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.041e-05/0.1425, allocations: 15.42 kB / 0.5209 GB, free: 6.121 MB / 366.1 MB Notification: Performance of SimCode: time 2.81e-07/0.1425, allocations: 4 kB / 0.5209 GB, free: 6.117 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02612/0.1686, allocations: 1.915 MB / 0.5228 GB, free: 4.336 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.04/12.2, allocations: 3.953 kB / 0.5228 GB, free: 4.332 MB / 366.1 MB (rm -f HanserModelica_HanserModelica.VariablesTypes.InitializationParameters.pipe ; mkfifo HanserModelica_HanserModelica.VariablesTypes.InitializationParameters.pipe ; head -c 1048576 < HanserModelica_HanserModelica.VariablesTypes.InitializationParameters.pipe >> ../files/HanserModelica_HanserModelica.VariablesTypes.InitializationParameters.sim & python3 -m fmpy simulate --output-file HanserModelica_HanserModelica.VariablesTypes.InitializationParameters_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.001 HanserModelica_HanserModelica_VariablesTypes_InitializationParameters.fmu > HanserModelica_HanserModelica.VariablesTypes.InitializationParameters.pipe 2>&1)