Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr HanserModelica_HanserModelica.VariablesTypes.ComplexCalculation.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.ComplexCalculation,fileNamePrefix="HanserModelica_HanserModelica_VariablesTypes_ComplexCalculation",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HanserModelica.VariablesTypes.ComplexCalculation,fileNamePrefix="HanserModelica_HanserModelica_VariablesTypes_ComplexCalculation",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.008982/0.008982, allocations: 99.45 kB / 15.73 MB, free: 6.059 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.416/1.416, allocations: 222.9 MB / 239.4 MB, free: 4.543 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.001683/0.001683, allocations: 200.4 kB / 289.7 MB, free: 2.25 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03393/0.03393, allocations: 8.802 MB / 348.7 MB, free: 4.598 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001831/0.001831, allocations: 83.86 kB / 463.4 MB, free: 13.59 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1281/0.1299, allocations: 51.56 MB / 0.5029 GB, free: 9.992 MB / 350.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.VariablesTypes.ComplexCalculation): time 0.002796/0.1327, allocations: 1.38 MB / 0.5042 GB, free: 8.602 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001486/0.1343, allocations: 0.8682 MB / 0.5051 GB, free: 7.727 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.005e-05/0.1344, allocations: 0 / 0.5051 GB, free: 7.727 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003688/0.1348, allocations: 91.61 kB / 0.5052 GB, free: 7.637 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001091/0.1349, allocations: 11.92 kB / 0.5052 GB, free: 7.625 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00103/0.1359, allocations: 446 kB / 0.5056 GB, free: 7.188 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001572/0.1361, allocations: 43.8 kB / 0.5057 GB, free: 7.145 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.298e-05/0.1362, allocations: 16.27 kB / 0.5057 GB, free: 7.129 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.625e-05/0.1363, allocations: 11.98 kB / 0.5057 GB, free: 7.117 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.322e-05/0.1363, allocations: 11.94 kB / 0.5057 GB, free: 7.105 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.153e-05/0.1363, allocations: 0 / 0.5057 GB, free: 7.105 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003052/0.1366, allocations: 119.8 kB / 0.5058 GB, free: 6.988 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.719e-05/0.1367, allocations: 7.938 kB / 0.5058 GB, free: 6.98 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.874e-05/0.1367, allocations: 11.94 kB / 0.5058 GB, free: 6.969 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002781/0.137, allocations: 127.6 kB / 0.506 GB, free: 6.844 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.103e-06/0.137, allocations: 4 kB / 0.506 GB, free: 6.84 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.794e-06/0.137, allocations: 3.938 kB / 0.506 GB, free: 6.836 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.37e-06/0.137, allocations: 0 / 0.506 GB, free: 6.836 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: 6 * Number of variables: 6 Notification: Performance of Generate backend data structure: time 0.0009215/0.1379, allocations: 427 kB / 0.5064 GB, free: 6.371 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.293e-05/0.138, allocations: 12.03 kB / 0.5064 GB, free: 6.359 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.41e-05/0.1381, allocations: 34.75 kB / 0.5064 GB, free: 6.316 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.946e-05/0.1381, allocations: 8.922 kB / 0.5064 GB, free: 6.309 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001217/0.1382, allocations: 172.2 kB / 0.5066 GB, free: 6.102 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.197e-05/0.1382, allocations: 4.375 kB / 0.5066 GB, free: 6.098 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.695e-05/0.1383, allocations: 4.375 kB / 0.5066 GB, free: 6.094 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001347/0.1384, allocations: 65.8 kB / 0.5067 GB, free: 6.023 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.384e-06/0.1384, allocations: 0 / 0.5067 GB, free: 6.023 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.678e-06/0.1384, allocations: 0 / 0.5067 GB, free: 6.023 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.957e-06/0.1384, allocations: 0 / 0.5067 GB, free: 6.023 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.408e-05/0.1385, allocations: 35.98 kB / 0.5067 GB, free: 5.988 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002979/0.1388, allocations: 181.6 kB / 0.5069 GB, free: 5.762 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001835/0.139, allocations: 70.58 kB / 0.5069 GB, free: 5.684 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.394e-05/0.1391, allocations: 28.97 kB / 0.507 GB, free: 5.652 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.035e-05/0.1391, allocations: 4 kB / 0.507 GB, free: 5.648 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.074e-05/0.1392, allocations: 34.5 kB / 0.507 GB, free: 5.605 MB / 350.1 MB Notification: Performance of pre-optimization done (n=6): time 1.183e-06/0.1392, allocations: 0 / 0.507 GB, free: 5.605 MB / 350.1 MB Notification: Performance of matching and sorting (n=6): time 0.0002496/0.1394, allocations: 93.69 kB / 0.5071 GB, free: 5.508 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.957e-05/0.1395, allocations: 59.34 kB / 0.5071 GB, free: 5.438 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.012e-05/0.1396, allocations: 105.8 kB / 0.5072 GB, free: 5.324 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.161e-05/0.1396, allocations: 29.7 kB / 0.5073 GB, free: 5.289 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.349e-05/0.1396, allocations: 88.08 kB / 0.5074 GB, free: 5.199 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.54e-05/0.1397, allocations: 19.78 kB / 0.5074 GB, free: 5.18 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.029e-05/0.1397, allocations: 17.72 kB / 0.5074 GB, free: 5.156 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001262/0.1399, allocations: 322.8 kB / 0.5077 GB, free: 4.832 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.094e-05/0.1399, allocations: 15.94 kB / 0.5077 GB, free: 4.816 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.8e-05/0.14, allocations: 20 kB / 0.5077 GB, free: 4.797 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001052/0.1401, allocations: 52.84 kB / 0.5078 GB, free: 4.742 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.535e-06/0.1401, allocations: 0 / 0.5078 GB, free: 4.742 MB / 350.1 MB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0002161/0.1403, allocations: 86.2 kB / 0.5079 GB, free: 4.652 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.037e-05/0.1403, allocations: 8 kB / 0.5079 GB, free: 4.645 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.2e-06/0.1403, allocations: 3.938 kB / 0.5079 GB, free: 4.641 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.367e-05/0.1404, allocations: 0 / 0.5079 GB, free: 4.641 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001175/0.1405, allocations: 12.06 kB / 0.5079 GB, free: 4.629 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.792e-06/0.1405, allocations: 0 / 0.5079 GB, free: 4.629 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.671e-05/0.1406, allocations: 0 / 0.5079 GB, free: 4.629 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.004e-05/0.1406, allocations: 4 kB / 0.5079 GB, free: 4.625 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * 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 initialization (6): * Single equations (assignments): 6 * 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 prepare postOptimizeDAE: time 9.241e-05/0.1407, allocations: 117.8 kB / 0.508 GB, free: 4.5 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.011e-05/0.1407, allocations: 15.88 kB / 0.508 GB, free: 4.484 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002221/0.1409, allocations: 102 kB / 0.5081 GB, free: 4.375 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.034e-06/0.1409, allocations: 0 / 0.5081 GB, free: 4.375 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.611e-06/0.1409, allocations: 0 / 0.5081 GB, free: 4.375 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.976e-06/0.1409, allocations: 0 / 0.5081 GB, free: 4.375 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001569/0.1411, allocations: 185.6 kB / 0.5083 GB, free: 4.145 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.332e-06/0.1411, allocations: 0 / 0.5083 GB, free: 4.145 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.992e-05/0.1412, allocations: 15.92 kB / 0.5083 GB, free: 4.129 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.973e-06/0.1412, allocations: 4 kB / 0.5083 GB, free: 4.125 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.25e-05/0.1412, allocations: 8 kB / 0.5083 GB, free: 4.117 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.513e-06/0.1413, allocations: 0 / 0.5083 GB, free: 4.117 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.252e-06/0.1413, allocations: 0 / 0.5083 GB, free: 4.117 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001916/0.1415, allocations: 113.1 kB / 0.5084 GB, free: 3.988 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.491e-05/0.1415, allocations: 88.97 kB / 0.5085 GB, free: 3.883 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.306e-05/0.1415, allocations: 8 kB / 0.5085 GB, free: 3.875 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.937e-05/0.1416, allocations: 3.938 kB / 0.5085 GB, free: 3.871 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.135e-05/0.1416, allocations: 3.938 kB / 0.5085 GB, free: 3.867 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.565e-06/0.1416, allocations: 8 kB / 0.5085 GB, free: 3.859 MB / 350.1 MB Notification: Performance of sorting global known variables: time 5.265e-05/0.1417, allocations: 87.27 kB / 0.5086 GB, free: 3.773 MB / 350.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1417, allocations: 0 / 0.5086 GB, free: 3.773 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002138/0.1419, allocations: 16 kB / 0.5086 GB, free: 3.758 MB / 350.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 (8): * Single equations (assignments): 8 * 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.0004986/0.1424, allocations: 0.6592 MB / 0.5093 GB, free: 3.07 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0001754/0.1426, allocations: 55.92 kB / 0.5093 GB, free: 3.016 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.286e-06/0.1426, allocations: 0 / 0.5093 GB, free: 3.016 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 5.175e-05/0.1427, allocations: 24 kB / 0.5094 GB, free: 2.992 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001694/0.1429, allocations: 13.56 kB / 0.5094 GB, free: 2.98 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004992/0.1434, allocations: 201.8 kB / 0.5096 GB, free: 2.742 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002802/0.1437, allocations: 0.6922 MB / 0.5102 GB, free: 2.023 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 3.767e-05/0.1437, allocations: 3.984 kB / 0.5102 GB, free: 2.02 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.352e-05/0.1438, allocations: 15.44 kB / 0.5103 GB, free: 2.004 MB / 350.1 MB Notification: Performance of SimCode: time 6.12e-07/0.1438, allocations: 4 kB / 0.5103 GB, free: 2 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01839/0.1622, allocations: 1.936 MB / 0.5121 GB, free: 148 kB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.634/7.796, allocations: 4.344 kB / 0.5122 GB, free: 148 kB / 350.1 MB (rm -f HanserModelica_HanserModelica.VariablesTypes.ComplexCalculation.pipe ; mkfifo HanserModelica_HanserModelica.VariablesTypes.ComplexCalculation.pipe ; head -c 1048576 < HanserModelica_HanserModelica.VariablesTypes.ComplexCalculation.pipe >> ../files/HanserModelica_HanserModelica.VariablesTypes.ComplexCalculation.sim & python3 -m fmpy simulate --output-file HanserModelica_HanserModelica.VariablesTypes.ComplexCalculation_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_ComplexCalculation.fmu > HanserModelica_HanserModelica.VariablesTypes.ComplexCalculation.pipe 2>&1)