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.006877/0.006878, allocations: 101 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.519/1.519, allocations: 222.9 MB / 239.4 MB, free: 4.523 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.001625/0.001625, allocations: 195.4 kB / 289.7 MB, free: 2.238 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03721/0.03721, allocations: 8.802 MB / 348.7 MB, free: 4.598 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002325/0.002325, allocations: 75.88 kB / 463.4 MB, free: 13.59 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1202/0.1226, allocations: 51.56 MB / 0.5029 GB, free: 9.996 MB / 350.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.VariablesTypes.ComplexCalculation): time 0.00271/0.1253, allocations: 1.388 MB / 0.5042 GB, free: 8.598 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001457/0.1268, allocations: 0.8643 MB / 0.5051 GB, free: 7.727 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.199e-05/0.1268, allocations: 0 / 0.5051 GB, free: 7.727 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003102/0.1272, allocations: 87.67 kB / 0.5052 GB, free: 7.641 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 7.537e-05/0.1273, allocations: 11.86 kB / 0.5052 GB, free: 7.629 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009593/0.1282, allocations: 454 kB / 0.5056 GB, free: 7.184 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001668/0.1284, allocations: 43.78 kB / 0.5057 GB, free: 7.141 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.554e-05/0.1285, allocations: 8.281 kB / 0.5057 GB, free: 7.133 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.414e-05/0.1285, allocations: 15.98 kB / 0.5057 GB, free: 7.117 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.953e-05/0.1286, allocations: 7.938 kB / 0.5057 GB, free: 7.109 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.276e-05/0.1286, allocations: 4 kB / 0.5057 GB, free: 7.105 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002607/0.1289, allocations: 119.8 kB / 0.5058 GB, free: 6.988 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.192e-05/0.1289, allocations: 3.938 kB / 0.5058 GB, free: 6.984 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 3.05e-05/0.1289, allocations: 19.94 kB / 0.5058 GB, free: 6.965 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002466/0.1292, allocations: 127.6 kB / 0.506 GB, free: 6.84 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.402e-06/0.1292, allocations: 0 / 0.506 GB, free: 6.84 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.563e-06/0.1292, allocations: 3.938 kB / 0.506 GB, free: 6.836 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.899e-06/0.1292, 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.0009499/0.1302, allocations: 427 kB / 0.5064 GB, free: 6.371 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.564e-05/0.1302, allocations: 8.031 kB / 0.5064 GB, free: 6.363 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.785e-05/0.1303, allocations: 38.75 kB / 0.5064 GB, free: 6.316 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.828e-05/0.1303, allocations: 4.938 kB / 0.5064 GB, free: 6.312 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001586/0.1305, allocations: 184.2 kB / 0.5066 GB, free: 6.094 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.205e-05/0.1305, allocations: 384 / 0.5066 GB, free: 6.094 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.13e-05/0.1305, allocations: 4.375 kB / 0.5066 GB, free: 6.09 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001475/0.1307, allocations: 61.8 kB / 0.5067 GB, free: 6.023 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.137e-06/0.1307, allocations: 0 / 0.5067 GB, free: 6.023 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.05e-05/0.1307, allocations: 0 / 0.5067 GB, free: 6.023 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.639e-06/0.1307, allocations: 0 / 0.5067 GB, free: 6.023 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.507e-05/0.1308, allocations: 35.98 kB / 0.5067 GB, free: 5.988 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002315/0.131, allocations: 177.7 kB / 0.5069 GB, free: 5.766 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001835/0.1312, allocations: 70.5 kB / 0.5069 GB, free: 5.688 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.862e-05/0.1313, allocations: 36.95 kB / 0.507 GB, free: 5.648 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.155e-05/0.1313, allocations: 0 / 0.507 GB, free: 5.648 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.604e-05/0.1314, allocations: 38.5 kB / 0.507 GB, free: 5.602 MB / 350.1 MB Notification: Performance of pre-optimization done (n=6): time 9.61e-07/0.1314, allocations: 0 / 0.507 GB, free: 5.602 MB / 350.1 MB Notification: Performance of matching and sorting (n=6): time 0.0002618/0.1317, allocations: 93.69 kB / 0.5071 GB, free: 5.504 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.74e-05/0.1317, allocations: 55.41 kB / 0.5071 GB, free: 5.438 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001827/0.1319, allocations: 105.8 kB / 0.5072 GB, free: 5.324 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.96e-05/0.1319, allocations: 25.7 kB / 0.5073 GB, free: 5.293 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.228e-05/0.132, allocations: 88.08 kB / 0.5074 GB, free: 5.203 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.599e-05/0.132, allocations: 27.72 kB / 0.5074 GB, free: 5.176 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.178e-05/0.1321, allocations: 17.72 kB / 0.5074 GB, free: 5.152 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001465/0.1322, allocations: 318.8 kB / 0.5077 GB, free: 4.832 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.605e-05/0.1323, allocations: 19.98 kB / 0.5077 GB, free: 4.812 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.884e-05/0.1323, allocations: 20 kB / 0.5077 GB, free: 4.793 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001074/0.1325, allocations: 52.84 kB / 0.5078 GB, free: 4.738 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.663e-06/0.1325, allocations: 0 / 0.5078 GB, free: 4.738 MB / 350.1 MB Notification: Performance of matching and sorting (n=6) (initialization): time 0.000153/0.1326, allocations: 85.58 kB / 0.5079 GB, free: 4.648 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.61e-05/0.1326, allocations: 4 kB / 0.5079 GB, free: 4.645 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.408e-06/0.1327, allocations: 0 / 0.5079 GB, free: 4.645 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.802e-05/0.1327, allocations: 4 kB / 0.5079 GB, free: 4.641 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001126/0.1328, allocations: 11.94 kB / 0.5079 GB, free: 4.629 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.1e-06/0.1328, allocations: 0 / 0.5079 GB, free: 4.629 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.183e-05/0.1329, allocations: 0.6875 kB / 0.5079 GB, free: 4.629 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.123e-06/0.1329, 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.616e-05/0.133, allocations: 117.8 kB / 0.508 GB, free: 4.5 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.612e-05/0.133, allocations: 7.891 kB / 0.508 GB, free: 4.492 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002226/0.1332, allocations: 102 kB / 0.5081 GB, free: 4.383 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.168e-06/0.1332, allocations: 4 kB / 0.5081 GB, free: 4.379 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.028e-06/0.1332, allocations: 0 / 0.5081 GB, free: 4.379 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.086e-06/0.1333, allocations: 0 / 0.5081 GB, free: 4.379 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001811/0.1334, allocations: 189.6 kB / 0.5083 GB, free: 4.145 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.112e-06/0.1334, allocations: 3.938 kB / 0.5083 GB, free: 4.141 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.202e-05/0.1335, allocations: 19.92 kB / 0.5083 GB, free: 4.121 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.814e-06/0.1335, allocations: 0 / 0.5083 GB, free: 4.121 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.081e-05/0.1336, allocations: 4 kB / 0.5083 GB, free: 4.117 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.212e-06/0.1336, allocations: 0 / 0.5083 GB, free: 4.117 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.21e-07/0.1336, allocations: 0 / 0.5083 GB, free: 4.117 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001868/0.1338, allocations: 117.1 kB / 0.5084 GB, free: 3.984 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.86e-05/0.1338, allocations: 84.98 kB / 0.5085 GB, free: 3.883 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.705e-05/0.1338, allocations: 3.984 kB / 0.5085 GB, free: 3.879 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.884e-05/0.1339, allocations: 8 kB / 0.5085 GB, free: 3.871 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.86e-05/0.1339, allocations: 7.938 kB / 0.5085 GB, free: 3.863 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.357e-06/0.1339, allocations: 4 kB / 0.5085 GB, free: 3.859 MB / 350.1 MB Notification: Performance of sorting global known variables: time 5.074e-05/0.134, allocations: 91.2 kB / 0.5086 GB, free: 3.77 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.134, allocations: 0 / 0.5086 GB, free: 3.77 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002068/0.1342, allocations: 12 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.0005432/0.1348, allocations: 0.6631 MB / 0.5093 GB, free: 3.066 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0001744/0.1349, allocations: 51.92 kB / 0.5093 GB, free: 3.016 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.558e-06/0.135, allocations: 4 kB / 0.5093 GB, free: 3.012 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 5.421e-05/0.135, allocations: 28 kB / 0.5094 GB, free: 2.984 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00015/0.1352, allocations: 11.92 kB / 0.5094 GB, free: 2.973 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004873/0.1357, allocations: 197.9 kB / 0.5096 GB, free: 2.738 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000353/0.136, allocations: 0.6882 MB / 0.5102 GB, free: 2.023 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 3.835e-05/0.1361, allocations: 8 kB / 0.5102 GB, free: 2.016 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.463e-05/0.1361, allocations: 19.42 kB / 0.5103 GB, free: 1.996 MB / 350.1 MB Notification: Performance of SimCode: time 3.61e-07/0.1361, allocations: 0 / 0.5103 GB, free: 1.996 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02359/0.1597, allocations: 1.932 MB / 0.5121 GB, free: 148 kB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.823/7.983, allocations: 12.33 kB / 0.5122 GB, free: 140 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)