Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr HanserModelica_HanserModelica.SynchronousMachines.SMR_MTPA.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.SynchronousMachines.SMR_MTPA,fileNamePrefix="HanserModelica_HanserModelica_SynchronousMachines_SMR_MTPA",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HanserModelica.SynchronousMachines.SMR_MTPA,fileNamePrefix="HanserModelica_HanserModelica_SynchronousMachines_SMR_MTPA",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.001137/0.001137, 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.34/1.34, allocations: 222.9 MB / 239.3 MB, free: 4.59 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.001363/0.001363, allocations: 200.4 kB / 289.6 MB, free: 2.32 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03694/0.03694, allocations: 8.8 MB / 348.5 MB, free: 4.688 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002909/0.002909, allocations: 79.3 kB / 411.2 MB, free: 41.94 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09577/0.0987, allocations: 51.57 MB / 462.8 MB, free: 14.23 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMR_MTPA): time 0.02831/0.1271, allocations: 27.64 MB / 490.4 MB, free: 2.449 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0168/0.1439, allocations: 8.037 MB / 498.4 MB, free: 10.39 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006149/0.1501, allocations: 207.4 kB / 498.6 MB, free: 10.18 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0189/0.169, allocations: 7.925 MB / 0.4947 GB, free: 2.238 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009358/0.1784, allocations: 2.695 MB / 0.4973 GB, free: 15.54 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00559/0.184, allocations: 1.828 MB / 0.4991 GB, free: 13.71 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.01211/0.1962, allocations: 9.593 MB / 0.5085 GB, free: 4.082 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.2236/0.4198, allocations: 21.27 MB / 0.5292 GB, free: 13.32 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.007214/0.427, allocations: 5.237 MB / 0.5344 GB, free: 13.02 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00932/0.4364, allocations: 5.944 MB / 0.5402 GB, free: 12.07 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.004258/0.4407, allocations: 1.519 MB / 0.5416 GB, free: 12.07 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00621/0.4469, allocations: 1.881 MB / 0.5435 GB, free: 12.07 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004119/0.4511, allocations: 2.944 MB / 0.5464 GB, free: 11.74 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.007447/0.4585, allocations: 5.731 MB / 0.552 GB, free: 10.42 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01526/0.4738, allocations: 20.16 MB / 0.5716 GB, free: 3.219 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.823e-06/0.4739, allocations: 4 kB / 0.5716 GB, free: 3.215 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.553e-06/0.4739, allocations: 0 / 0.5716 GB, free: 3.215 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0004912/0.4744, allocations: 0 / 0.5716 GB, free: 3.215 MB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2552 * Number of variables: 2552 Notification: Performance of Generate backend data structure: time 0.03277/0.5071, allocations: 11.62 MB / 0.583 GB, free: 11.86 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.69e-05/0.5072, allocations: 14.91 kB / 0.583 GB, free: 11.86 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004827/0.5121, allocations: 1.323 MB / 0.5843 GB, free: 10.92 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03034/0.5424, allocations: 5.566 MB / 0.5897 GB, free: 8.414 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01226/0.5547, allocations: 6.008 MB / 0.5956 GB, free: 2.883 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006826/0.5554, allocations: 0.6952 MB / 0.5963 GB, free: 2.195 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003086/0.5585, allocations: 0.9073 MB / 0.5972 GB, free: 1.297 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03632/0.5949, allocations: 14.87 MB / 0.6117 GB, free: 2.418 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004581/0.5954, allocations: 12.47 kB / 0.6117 GB, free: 2.406 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002816/0.5982, allocations: 388.9 kB / 0.6121 GB, free: 2.035 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005412/0.5988, allocations: 0.5036 MB / 0.6126 GB, free: 1.531 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02906/0.6278, allocations: 13.57 MB / 0.6258 GB, free: 3.957 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08297/0.7108, allocations: 46.63 MB / 0.6714 GB, free: 5.074 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.022/0.7329, allocations: 28.31 MB / 0.699 GB, free: 5.109 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00561/0.7385, allocations: 3.028 MB / 0.702 GB, free: 2.078 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0006484/0.7392, allocations: 233.5 kB / 0.7022 GB, free: 1.824 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001187/0.7394, allocations: 85.5 kB / 0.7023 GB, free: 1.73 MB / 494.1 MB Notification: Performance of pre-optimization done (n=375): time 1.052e-05/0.7394, allocations: 0 / 0.7023 GB, free: 1.73 MB / 494.1 MB Notification: Performance of matching and sorting (n=382): time 0.2129/0.9523, allocations: 14.62 MB / 0.7165 GB, free: 160.6 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.659e-05/0.9524, allocations: 90.62 kB / 0.7166 GB, free: 160.5 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005256/0.9576, allocations: 3.48 MB / 0.72 GB, free: 160.2 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004682/0.9581, allocations: 85.89 kB / 0.7201 GB, free: 160.1 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002097/0.9602, allocations: 3.945 MB / 0.724 GB, free: 157.9 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001236/0.9615, allocations: 1.313 MB / 0.7252 GB, free: 157.1 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00152/0.963, allocations: 1.144 MB / 0.7264 GB, free: 157 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 4.627e-05/0.963, allocations: 305.1 kB / 0.7267 GB, free: 156.7 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003273/0.9663, allocations: 2.549 MB / 0.7291 GB, free: 156.7 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004896/0.9712, allocations: 5.015 MB / 0.734 GB, free: 153.1 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009019/0.9803, allocations: 8.214 MB / 0.7421 GB, free: 147.2 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001172/0.9804, allocations: 24.25 kB / 0.7421 GB, free: 147.2 MB / 494.1 MB Notification: Performance of matching and sorting (n=755) (initialization): time 0.01442/0.9949, allocations: 8.501 MB / 0.7504 GB, free: 143.8 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.92e-05/0.995, allocations: 40.25 kB / 0.7504 GB, free: 143.8 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001354/0.9951, allocations: 80.59 kB / 0.7505 GB, free: 143.8 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002134/0.9973, allocations: 0.8513 MB / 0.7513 GB, free: 143.6 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004171/1.001, allocations: 1.338 MB / 0.7526 GB, free: 143.5 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008787/1.01, allocations: 7.666 MB / 0.7601 GB, free: 138.2 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004174/1.014, allocations: 329.8 kB / 0.7604 GB, free: 137.9 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006045/1.015, allocations: 299.6 kB / 0.7607 GB, free: 137.6 MB / 494.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 373 * 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 (708): * Single equations (assignments): 707 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(8,40,65.6%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.005228/1.02, allocations: 3.483 MB / 0.7641 GB, free: 134.6 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009814/1.021, allocations: 392.4 kB / 0.7645 GB, free: 134.3 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008431/1.03, allocations: 5.86 MB / 0.7702 GB, free: 129.3 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.206e-05/1.03, allocations: 36 kB / 0.7703 GB, free: 129.3 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.256e-05/1.03, allocations: 8 kB / 0.7703 GB, free: 129.3 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.289e-05/1.03, allocations: 23.45 kB / 0.7703 GB, free: 129.3 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02216/1.052, allocations: 14.8 MB / 0.7847 GB, free: 114.5 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.489e-05/1.052, allocations: 4 kB / 0.7847 GB, free: 114.5 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002614/1.055, allocations: 0.6723 MB / 0.7854 GB, free: 113.8 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001869/1.057, allocations: 0.7093 MB / 0.7861 GB, free: 113.1 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003953/1.057, allocations: 87.97 kB / 0.7862 GB, free: 113 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00747/1.064, allocations: 6.702 MB / 0.7927 GB, free: 106.2 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.292e-06/1.065, allocations: 15.92 kB / 0.7927 GB, free: 106.2 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01062/1.075, allocations: 8.547 MB / 0.8011 GB, free: 97.53 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001834/1.077, allocations: 0.8552 MB / 0.8019 GB, free: 96.65 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005611/1.078, allocations: 75.84 kB / 0.802 GB, free: 96.58 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001776/1.079, allocations: 179.8 kB / 0.8022 GB, free: 96.41 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004734/1.08, allocations: 258.7 kB / 0.8024 GB, free: 96.15 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002071/1.08, allocations: 119.7 kB / 0.8025 GB, free: 96.04 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.003133/1.083, allocations: 2.334 MB / 0.8048 GB, free: 93.71 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.6e-07/1.083, allocations: 0 / 0.8048 GB, free: 93.71 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.005661/1.089, allocations: 1.508 MB / 0.8063 GB, free: 92.21 MB / 494.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 19 * Number of states: 1 (smr.phiMechanical) * 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 (365): * Single equations (assignments): 364 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(8,38,62.5%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.01085/1.1, allocations: 9.263 MB / 0.8153 GB, free: 82.82 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.02461/1.124, allocations: 12.58 MB / 0.8276 GB, free: 70.28 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.161e-05/1.124, allocations: 1.938 kB / 0.8276 GB, free: 70.28 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004933/1.129, allocations: 2.885 MB / 0.8304 GB, free: 67.39 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006791/1.136, allocations: 0.8931 MB / 0.8313 GB, free: 66.54 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2382/1.374, allocations: 59.05 MB / 0.889 GB, free: 163.5 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01028/1.385, allocations: 5.896 MB / 0.8947 GB, free: 162.6 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.005153/1.39, allocations: 1.852 MB / 0.8965 GB, free: 162.6 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004368/1.394, allocations: 3.09 MB / 0.8995 GB, free: 162.6 MB / 494.1 MB Notification: Performance of SimCode: time 9.82e-07/1.394, allocations: 1.5 kB / 0.8995 GB, free: 162.6 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1405/1.535, allocations: 117.2 MB / 1.014 GB, free: 59.61 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.61/13.14, allocations: 15.22 kB / 1.014 GB, free: 59.6 MB / 494.1 MB (rm -f HanserModelica_HanserModelica.SynchronousMachines.SMR_MTPA.pipe ; mkfifo HanserModelica_HanserModelica.SynchronousMachines.SMR_MTPA.pipe ; head -c 1048576 < HanserModelica_HanserModelica.SynchronousMachines.SMR_MTPA.pipe >> ../files/HanserModelica_HanserModelica.SynchronousMachines.SMR_MTPA.sim & python3 -m fmpy simulate --output-file HanserModelica_HanserModelica.SynchronousMachines.SMR_MTPA_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_SynchronousMachines_SMR_MTPA.fmu > HanserModelica_HanserModelica.SynchronousMachines.SMR_MTPA.pipe 2>&1)