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.001173/0.001173, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.391/1.391, allocations: 222.9 MB / 239.2 MB, free: 4.645 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.001516/0.001516, allocations: 195.7 kB / 289.6 MB, free: 2.363 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03441/0.03441, allocations: 8.797 MB / 348.5 MB, free: 4.734 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001574/0.001574, allocations: 79.92 kB / 411.2 MB, free: 42.09 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09464/0.09623, allocations: 51.57 MB / 462.8 MB, free: 14.3 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.VariablesTypes.ComplexCalculation): time 0.002446/0.09873, allocations: 1.375 MB / 464.1 MB, free: 12.91 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001296/0.1, allocations: 0.8605 MB / 465 MB, free: 12.04 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.943e-05/0.1001, allocations: 4 kB / 465 MB, free: 12.04 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002825/0.1004, allocations: 87.61 kB / 465.1 MB, free: 11.95 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 7.582e-05/0.1005, allocations: 11.92 kB / 465.1 MB, free: 11.94 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008777/0.1014, allocations: 446 kB / 465.5 MB, free: 11.5 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001768/0.1016, allocations: 39.8 kB / 465.6 MB, free: 11.46 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.474e-05/0.1016, allocations: 7.984 kB / 465.6 MB, free: 11.45 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.136e-05/0.1017, allocations: 15.94 kB / 465.6 MB, free: 11.44 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.202e-05/0.1018, allocations: 11.92 kB / 465.6 MB, free: 11.43 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 1.562e-05/0.1018, allocations: 3.938 kB / 465.6 MB, free: 11.42 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002839/0.1021, allocations: 119.9 kB / 465.7 MB, free: 11.3 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 1.419e-05/0.1021, allocations: 3.938 kB / 465.7 MB, free: 11.3 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 2.545e-05/0.1021, allocations: 15.94 kB / 465.7 MB, free: 11.29 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002374/0.1024, allocations: 131.7 kB / 465.9 MB, free: 11.16 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.967e-06/0.1024, allocations: 0 / 465.9 MB, free: 11.16 MB / 302.1 MB Notification: Performance of FrontEnd: time 3.026e-06/0.1024, allocations: 0 / 465.9 MB, free: 11.16 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.272e-06/0.1024, allocations: 3.938 kB / 465.9 MB, free: 11.15 MB / 302.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.0009134/0.1033, allocations: 423.5 kB / 466.3 MB, free: 10.69 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.353e-05/0.1034, allocations: 8.031 kB / 466.3 MB, free: 10.68 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.634e-05/0.1034, allocations: 38.75 kB / 466.3 MB, free: 10.64 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.892e-05/0.1035, allocations: 8.938 kB / 466.3 MB, free: 10.63 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001219/0.1036, allocations: 168.3 kB / 466.5 MB, free: 10.43 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.336e-05/0.1036, allocations: 4.375 kB / 466.5 MB, free: 10.42 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.017e-05/0.1036, allocations: 384 / 466.5 MB, free: 10.42 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001422/0.1038, allocations: 61.75 kB / 466.6 MB, free: 10.36 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.654e-06/0.1038, allocations: 0 / 466.6 MB, free: 10.36 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.196e-05/0.1038, allocations: 3.984 kB / 466.6 MB, free: 10.35 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.17e-06/0.1038, allocations: 4 kB / 466.6 MB, free: 10.35 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.836e-05/0.1039, allocations: 28 kB / 466.6 MB, free: 10.32 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001818/0.1041, allocations: 189.5 kB / 466.8 MB, free: 10.09 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001634/0.1043, allocations: 70.62 kB / 466.9 MB, free: 10.01 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.431e-05/0.1043, allocations: 28.97 kB / 466.9 MB, free: 9.977 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.783e-05/0.1043, allocations: 0 / 466.9 MB, free: 9.977 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.309e-05/0.1044, allocations: 42.42 kB / 466.9 MB, free: 9.926 MB / 302.1 MB Notification: Performance of pre-optimization done (n=6): time 8.32e-07/0.1044, allocations: 0 / 466.9 MB, free: 9.926 MB / 302.1 MB Notification: Performance of matching and sorting (n=6): time 0.0002361/0.1046, allocations: 97.69 kB / 467 MB, free: 9.824 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.861e-05/0.1047, allocations: 55.41 kB / 467.1 MB, free: 9.758 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.341e-05/0.1048, allocations: 105.8 kB / 467.2 MB, free: 9.645 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.535e-05/0.1048, allocations: 25.7 kB / 467.2 MB, free: 9.613 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.254e-05/0.1048, allocations: 88.08 kB / 467.3 MB, free: 9.523 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.538e-05/0.1049, allocations: 23.64 kB / 467.3 MB, free: 9.5 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.886e-05/0.1049, allocations: 17.72 kB / 467.3 MB, free: 9.477 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001191/0.105, allocations: 318.8 kB / 467.6 MB, free: 9.156 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.659e-05/0.1051, allocations: 27.98 kB / 467.7 MB, free: 9.129 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.604e-05/0.1051, allocations: 12 kB / 467.7 MB, free: 9.117 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.08e-05/0.1052, allocations: 57.41 kB / 467.7 MB, free: 9.059 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.646e-05/0.1053, allocations: 0 / 467.7 MB, free: 9.059 MB / 302.1 MB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0001356/0.1054, allocations: 81.64 kB / 467.8 MB, free: 8.973 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.705e-05/0.1054, allocations: 7.984 kB / 467.8 MB, free: 8.965 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.308e-06/0.1054, allocations: 0 / 467.8 MB, free: 8.965 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.227e-05/0.1054, allocations: 0 / 467.8 MB, free: 8.965 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001071/0.1056, allocations: 11.94 kB / 467.8 MB, free: 8.953 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.102e-06/0.1056, allocations: 0 / 467.8 MB, free: 8.953 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.845e-05/0.1056, allocations: 11.91 kB / 467.8 MB, free: 8.941 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.011e-06/0.1056, allocations: 0 / 467.8 MB, free: 8.941 MB / 302.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 8.188e-05/0.1057, allocations: 121.7 kB / 468 MB, free: 8.812 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.221e-05/0.1057, allocations: 7.938 kB / 468 MB, free: 8.805 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002421/0.106, allocations: 102 kB / 468.1 MB, free: 8.695 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.593e-06/0.106, allocations: 0 / 468.1 MB, free: 8.695 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.498e-06/0.106, allocations: 0 / 468.1 MB, free: 8.695 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.566e-06/0.106, allocations: 4 kB / 468.1 MB, free: 8.691 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002232/0.1063, allocations: 181.6 kB / 468.3 MB, free: 8.465 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.042e-06/0.1063, allocations: 4 kB / 468.3 MB, free: 8.461 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.574e-05/0.1064, allocations: 27.86 kB / 468.3 MB, free: 8.434 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.364e-06/0.1064, allocations: 0 / 468.3 MB, free: 8.434 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.137e-06/0.1064, allocations: 0 / 468.3 MB, free: 8.434 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.563e-06/0.1064, allocations: 0 / 468.3 MB, free: 8.434 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.012e-06/0.1064, allocations: 0 / 468.3 MB, free: 8.434 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001534/0.1065, allocations: 113 kB / 468.4 MB, free: 8.305 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001484/0.1067, allocations: 92.89 kB / 468.5 MB, free: 8.195 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.606e-05/0.1067, allocations: 4 kB / 468.5 MB, free: 8.191 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.747e-05/0.1068, allocations: 3.984 kB / 468.5 MB, free: 8.188 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.163e-05/0.1068, allocations: 4 kB / 468.5 MB, free: 8.184 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.708e-06/0.1068, allocations: 3.938 kB / 468.5 MB, free: 8.18 MB / 302.1 MB Notification: Performance of sorting global known variables: time 4.103e-05/0.1069, allocations: 87.34 kB / 468.6 MB, free: 8.094 MB / 302.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1069, allocations: 0 / 468.6 MB, free: 8.094 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002193/0.1071, allocations: 19.98 kB / 468.6 MB, free: 8.074 MB / 302.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.0005659/0.1077, allocations: 0.6594 MB / 469.3 MB, free: 7.387 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0001845/0.1079, allocations: 59.91 kB / 469.3 MB, free: 7.328 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.675e-06/0.1079, allocations: 4 kB / 469.3 MB, free: 7.324 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 4.97e-05/0.1079, allocations: 32 kB / 469.4 MB, free: 7.293 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001446/0.1081, allocations: 2.5 kB / 469.4 MB, free: 7.293 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000591/0.1087, allocations: 209.8 kB / 469.6 MB, free: 7.047 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003097/0.109, allocations: 0.6884 MB / 470.3 MB, free: 6.332 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 3.435e-05/0.109, allocations: 7.984 kB / 470.3 MB, free: 6.324 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.313e-05/0.1091, allocations: 11.44 kB / 470.3 MB, free: 6.316 MB / 302.1 MB Notification: Performance of SimCode: time 3.9e-07/0.1091, allocations: 4 kB / 470.3 MB, free: 6.312 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02024/0.1294, allocations: 1.902 MB / 472.2 MB, free: 4.473 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.42/7.549, allocations: 18.58 kB / 472.2 MB, free: 4.457 MB / 302.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)