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.007178/0.007178, 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.591/1.591, allocations: 222.9 MB / 239.4 MB, free: 4.531 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.001872/0.001872, allocations: 188.5 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.03921/0.03921, allocations: 8.802 MB / 348.7 MB, free: 4.594 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002502/0.002502, allocations: 79.86 kB / 463.4 MB, free: 13.55 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1107/0.1133, allocations: 51.56 MB / 0.5029 GB, free: 9.953 MB / 350.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMR_MTPA): time 0.261/0.3744, allocations: 27.65 MB / 0.5299 GB, free: 4.441 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01734/0.3917, allocations: 8.033 MB / 0.5378 GB, free: 4.312 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006735/0.3985, allocations: 209.2 kB / 0.538 GB, free: 4.312 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.02/0.4186, allocations: 7.91 MB / 0.5457 GB, free: 3.238 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0124/0.431, allocations: 2.693 MB / 0.5483 GB, free: 2.469 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006316/0.4374, allocations: 1.83 MB / 0.5501 GB, free: 2.273 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01452/0.4519, allocations: 9.689 MB / 0.5596 GB, free: 14.27 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.04102/0.493, allocations: 21.2 MB / 0.5803 GB, free: 0.543 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01073/0.5038, allocations: 5.254 MB / 0.5854 GB, free: 11.38 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01319/0.517, allocations: 5.917 MB / 0.5912 GB, free: 5.617 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.004796/0.5219, allocations: 1.52 MB / 0.5927 GB, free: 4.098 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007752/0.5296, allocations: 1.874 MB / 0.5945 GB, free: 2.23 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005543/0.5352, allocations: 2.93 MB / 0.5974 GB, free: 15.33 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01226/0.5475, allocations: 5.725 MB / 0.603 GB, free: 9.625 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.029/0.5766, allocations: 20.32 MB / 0.6228 GB, free: 5.637 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.414e-06/0.5766, allocations: 0 / 0.6228 GB, free: 5.637 MB / 430.1 MB Notification: Performance of FrontEnd: time 2.595e-06/0.5766, allocations: 4 kB / 0.6228 GB, free: 5.633 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0005562/0.5772, allocations: 0 / 0.6228 GB, free: 5.633 MB / 430.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.0371/0.6143, allocations: 11.8 MB / 0.6343 GB, free: 9.812 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.935e-05/0.6144, allocations: 12.03 kB / 0.6343 GB, free: 9.801 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004771/0.6192, allocations: 1.32 MB / 0.6356 GB, free: 8.477 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03262/0.6518, allocations: 5.642 MB / 0.6411 GB, free: 2.891 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01565/0.6675, allocations: 6.203 MB / 0.6472 GB, free: 12.66 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0009224/0.6685, allocations: 0.6889 MB / 0.6479 GB, free: 11.98 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004748/0.6733, allocations: 0.9165 MB / 0.6488 GB, free: 11.08 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04641/0.7197, allocations: 14.86 MB / 0.6633 GB, free: 12.21 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005134/0.7203, allocations: 11.89 kB / 0.6633 GB, free: 12.2 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003441/0.7237, allocations: 387.1 kB / 0.6637 GB, free: 11.83 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006933/0.7245, allocations: 0.5074 MB / 0.6642 GB, free: 11.32 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03328/0.7578, allocations: 13.59 MB / 0.6774 GB, free: 13.73 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.5615/1.319, allocations: 46.21 MB / 0.7226 GB, free: 135.9 MB / 0.5138 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01868/1.338, allocations: 28.3 MB / 0.7502 GB, free: 110.9 MB / 0.5138 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.005174/1.343, allocations: 3.028 MB / 0.7531 GB, free: 110.8 MB / 0.5138 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004287/1.344, allocations: 238.3 kB / 0.7534 GB, free: 110.6 MB / 0.5138 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.136e-05/1.344, allocations: 73.52 kB / 0.7534 GB, free: 110.6 MB / 0.5138 GB Notification: Performance of pre-optimization done (n=375): time 5.971e-06/1.344, allocations: 1.188 kB / 0.7534 GB, free: 110.6 MB / 0.5138 GB Notification: Performance of matching and sorting (n=382): time 0.03287/1.377, allocations: 14.75 MB / 0.7678 GB, free: 109.2 MB / 0.5138 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.213e-05/1.377, allocations: 93.91 kB / 0.7679 GB, free: 109.1 MB / 0.5138 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006392/1.383, allocations: 3.49 MB / 0.7713 GB, free: 108.8 MB / 0.5138 GB Notification: Performance of collectPreVariables (initialization): time 0.0008997/1.384, allocations: 89.03 kB / 0.7714 GB, free: 108.8 MB / 0.5138 GB Notification: Performance of collectInitialEqns (initialization): time 0.00365/1.388, allocations: 4.089 MB / 0.7754 GB, free: 106.4 MB / 0.5138 GB Notification: Performance of collectInitialBindings (initialization): time 0.001825/1.39, allocations: 1.377 MB / 0.7768 GB, free: 105.4 MB / 0.5138 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002185/1.392, allocations: 1.145 MB / 0.7779 GB, free: 104.8 MB / 0.5138 GB Notification: Performance of setup shared object (initialization): time 9.68e-05/1.392, allocations: 308.9 kB / 0.7782 GB, free: 104.5 MB / 0.5138 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004577/1.397, allocations: 2.553 MB / 0.7807 GB, free: 103.5 MB / 0.5138 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006244/1.403, allocations: 5.013 MB / 0.7856 GB, free: 99.37 MB / 0.5138 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.009814/1.413, allocations: 8.21 MB / 0.7936 GB, free: 93.5 MB / 0.5138 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.3e-05/1.413, allocations: 22.62 kB / 0.7936 GB, free: 93.5 MB / 0.5138 GB Notification: Performance of matching and sorting (n=755) (initialization): time 0.01659/1.429, allocations: 8.517 MB / 0.8019 GB, free: 90.08 MB / 0.5138 GB Notification: Performance of prepare postOptimizeDAE: time 9.378e-05/1.43, allocations: 41 kB / 0.802 GB, free: 90.08 MB / 0.5138 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001506/1.43, allocations: 81.06 kB / 0.802 GB, free: 90.08 MB / 0.5138 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002364/1.432, allocations: 0.8545 MB / 0.8029 GB, free: 89.9 MB / 0.5138 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004841/1.437, allocations: 1.343 MB / 0.8042 GB, free: 89.76 MB / 0.5138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01008/1.447, allocations: 7.666 MB / 0.8117 GB, free: 84.89 MB / 0.5138 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005194/1.452, allocations: 328.2 kB / 0.812 GB, free: 84.72 MB / 0.5138 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001291/1.454, allocations: 302.3 kB / 0.8123 GB, free: 84.52 MB / 0.5138 GB 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.007595/1.461, allocations: 3.482 MB / 0.8157 GB, free: 81.03 MB / 0.5138 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001355/1.463, allocations: 413.3 kB / 0.8161 GB, free: 80.62 MB / 0.5138 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01046/1.473, allocations: 5.854 MB / 0.8218 GB, free: 74.73 MB / 0.5138 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.31e-05/1.473, allocations: 36 kB / 0.8218 GB, free: 74.7 MB / 0.5138 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.849e-05/1.473, allocations: 8 kB / 0.8218 GB, free: 74.69 MB / 0.5138 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.984e-05/1.473, allocations: 23.92 kB / 0.8219 GB, free: 74.67 MB / 0.5138 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02843/1.502, allocations: 14.49 MB / 0.836 GB, free: 60.14 MB / 0.5138 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.554e-05/1.502, allocations: 4 kB / 0.836 GB, free: 60.13 MB / 0.5138 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002693/1.505, allocations: 0.6767 MB / 0.8367 GB, free: 59.46 MB / 0.5138 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002024/1.507, allocations: 0.7098 MB / 0.8374 GB, free: 58.75 MB / 0.5138 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005479/1.507, allocations: 87.91 kB / 0.8375 GB, free: 58.66 MB / 0.5138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007955/1.515, allocations: 6.705 MB / 0.844 GB, free: 51.82 MB / 0.5138 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.291e-06/1.515, allocations: 11.94 kB / 0.844 GB, free: 51.8 MB / 0.5138 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01307/1.528, allocations: 8.572 MB / 0.8524 GB, free: 43.11 MB / 0.5138 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002595/1.531, allocations: 0.8731 MB / 0.8532 GB, free: 42.21 MB / 0.5138 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001342/1.532, allocations: 79.89 kB / 0.8533 GB, free: 42.13 MB / 0.5138 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002846/1.535, allocations: 179.8 kB / 0.8535 GB, free: 41.96 MB / 0.5138 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008786/1.536, allocations: 258.7 kB / 0.8537 GB, free: 41.7 MB / 0.5138 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005516/1.537, allocations: 112 kB / 0.8538 GB, free: 41.59 MB / 0.5138 GB Notification: Performance of sorting global known variables: time 0.004513/1.541, allocations: 2.33 MB / 0.8561 GB, free: 39.27 MB / 0.5138 GB Notification: Performance of sort global known variables: time 4.41e-07/1.541, allocations: 4 kB / 0.8561 GB, free: 39.27 MB / 0.5138 GB Notification: Performance of remove unused functions: time 0.008295/1.549, allocations: 1.508 MB / 0.8576 GB, free: 37.76 MB / 0.5138 GB 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.01479/1.564, allocations: 9.287 MB / 0.8667 GB, free: 28.35 MB / 0.5138 GB Notification: Performance of simCode: created initialization part: time 0.01003/1.574, allocations: 6.437 MB / 0.8729 GB, free: 21.91 MB / 0.5138 GB Notification: Performance of simCode: created event and clocks part: time 1.117e-05/1.574, allocations: 0 / 0.8729 GB, free: 21.91 MB / 0.5138 GB Notification: Performance of simCode: created simulation system equations: time 0.004712/1.579, allocations: 2.881 MB / 0.8758 GB, free: 19.02 MB / 0.5138 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005586/1.585, allocations: 0.8965 MB / 0.8766 GB, free: 18.16 MB / 0.5138 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1077/1.692, allocations: 51.37 MB / 0.9268 GB, free: 11.74 MB / 0.5607 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01379/1.706, allocations: 5.898 MB / 0.9326 GB, free: 5.797 MB / 0.5607 GB Notification: Performance of simCode: alias equations: time 0.00701/1.713, allocations: 1.852 MB / 0.9344 GB, free: 3.938 MB / 0.5607 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.007856/1.721, allocations: 3.085 MB / 0.9374 GB, free: 0.8555 MB / 0.5607 GB Notification: Performance of SimCode: time 1.082e-06/1.721, allocations: 4 kB / 0.9374 GB, free: 0.8516 MB / 0.5607 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.387/2.108, allocations: 115.7 MB / 1.05 GB, free: 103.5 MB / 0.5607 GB Notification: Performance of buildModelFMU: Generate platform static: time 19.75/21.86, allocations: 7.188 kB / 1.05 GB, free: 103.5 MB / 0.5607 GB (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)