Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr HanserModelica_HanserModelica.SynchronousMachines.SMR_Inverter.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_Inverter,fileNamePrefix="HanserModelica_HanserModelica_SynchronousMachines_SMR_Inverter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HanserModelica.SynchronousMachines.SMR_Inverter,fileNamePrefix="HanserModelica_HanserModelica_SynchronousMachines_SMR_Inverter",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.006061/0.00606, allocations: 99.81 kB / 15.73 MB, free: 6.062 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.357/1.357, allocations: 222.9 MB / 239.4 MB, free: 4.527 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.001509/0.001509, allocations: 180.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.03522/0.03522, allocations: 8.8 MB / 348.7 MB, free: 4.602 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001609/0.001609, allocations: 75.89 kB / 463.4 MB, free: 13.55 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1041/0.1058, allocations: 51.56 MB / 0.5029 GB, free: 9.957 MB / 350.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMR_Inverter): time 0.01518/0.121, allocations: 13.39 MB / 0.516 GB, free: 12.5 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.009774/0.1308, allocations: 4.434 MB / 0.5203 GB, free: 8.055 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003092/0.1339, allocations: 83.69 kB / 0.5204 GB, free: 7.973 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003755/0.1377, allocations: 1.068 MB / 0.5215 GB, free: 6.898 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005064/0.1428, allocations: 1.343 MB / 0.5228 GB, free: 5.551 MB / 366.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/SynchronousMachines/SMR_Inverter.mo:88:3-88:33:writable] Warning: Conditional component 'ir' is used in a non-connect context. Notification: Performance of NFTyping.typeClassSections: time 0.002714/0.1455, allocations: 0.8573 MB / 0.5236 GB, free: 4.691 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.005703/0.1512, allocations: 3.812 MB / 0.5273 GB, free: 0.8672 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.2533/0.4046, allocations: 3.337 MB / 0.5306 GB, free: 5.145 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003015/0.4077, allocations: 1.787 MB / 0.5323 GB, free: 5.027 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003759/0.4114, allocations: 2.005 MB / 0.5343 GB, free: 4.672 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001306/0.4128, allocations: 498.6 kB / 0.5348 GB, free: 4.672 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002041/0.4148, allocations: 0.6922 MB / 0.5354 GB, free: 4.668 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001058/0.4159, allocations: 1.073 MB / 0.5365 GB, free: 4.543 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002915/0.4188, allocations: 2.043 MB / 0.5385 GB, free: 4.043 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009872/0.4287, allocations: 6.422 MB / 0.5448 GB, free: 3.344 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.292e-06/0.4288, allocations: 1.219 kB / 0.5448 GB, free: 3.344 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.833e-06/0.4288, allocations: 0 / 0.5448 GB, free: 3.344 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001911/0.429, allocations: 0 / 0.5448 GB, free: 3.344 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: 826 * Number of variables: 826 Notification: Performance of Generate backend data structure: time 0.01573/0.4447, allocations: 4.266 MB / 0.5489 GB, free: 1.719 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.248e-05/0.4448, allocations: 13.12 kB / 0.5489 GB, free: 1.715 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001683/0.4465, allocations: 494.7 kB / 0.5494 GB, free: 1.645 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004545/0.451, allocations: 0.7706 MB / 0.5502 GB, free: 1.445 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005024/0.4561, allocations: 2.324 MB / 0.5524 GB, free: 0.8984 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002663/0.4564, allocations: 238.7 kB / 0.5527 GB, free: 0.8906 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001184/0.4575, allocations: 317.2 kB / 0.553 GB, free: 0.8828 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01122/0.4688, allocations: 4.173 MB / 0.557 GB, free: 14.91 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001087/0.4689, allocations: 5.391 kB / 0.557 GB, free: 14.9 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007097/0.4697, allocations: 130.4 kB / 0.5572 GB, free: 14.8 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002056/0.4699, allocations: 140.7 kB / 0.5573 GB, free: 14.79 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01005/0.4799, allocations: 3.51 MB / 0.5607 GB, free: 12.92 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02828/0.5083, allocations: 13.07 MB / 0.5735 GB, free: 3.184 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006461/0.5148, allocations: 5.507 MB / 0.5789 GB, free: 13.25 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002144/0.517, allocations: 1.06 MB / 0.5799 GB, free: 12.2 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006495/0.5235, allocations: 3.036 MB / 0.5829 GB, free: 9.121 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.54e-05/0.5236, allocations: 47.5 kB / 0.5829 GB, free: 9.062 MB / 398.1 MB Notification: Performance of pre-optimization done (n=107): time 3.566e-06/0.5236, allocations: 0 / 0.5829 GB, free: 9.062 MB / 398.1 MB Notification: Performance of matching and sorting (n=110): time 0.01037/0.534, allocations: 4.668 MB / 0.5875 GB, free: 4.25 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.926e-05/0.5341, allocations: 64.41 kB / 0.5875 GB, free: 4.176 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00295/0.537, allocations: 1.601 MB / 0.5891 GB, free: 2.57 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001593/0.5372, allocations: 49.7 kB / 0.5891 GB, free: 2.516 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001026/0.5382, allocations: 1.468 MB / 0.5906 GB, free: 1.039 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003925/0.5386, allocations: 406.3 kB / 0.591 GB, free: 0.6484 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004733/0.5391, allocations: 275.4 kB / 0.5912 GB, free: 380 kB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001079/0.5393, allocations: 309.1 kB / 0.5915 GB, free: 68 kB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001033/0.5403, allocations: 0.5622 MB / 0.5921 GB, free: 15.5 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001349/0.5417, allocations: 1.058 MB / 0.5931 GB, free: 14.23 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002459/0.5441, allocations: 1.728 MB / 0.5948 GB, free: 12.35 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.142e-05/0.5442, allocations: 4 kB / 0.5948 GB, free: 12.35 MB / 414.1 MB Notification: Performance of matching and sorting (n=192) (initialization): time 0.003656/0.5478, allocations: 2.045 MB / 0.5968 GB, free: 10.36 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.297e-05/0.5479, allocations: 13.56 kB / 0.5968 GB, free: 10.35 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.963e-05/0.5479, allocations: 16 kB / 0.5968 GB, free: 10.34 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004182/0.5483, allocations: 138.1 kB / 0.597 GB, free: 10.2 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001395/0.5497, allocations: 369.2 kB / 0.5973 GB, free: 9.859 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002899/0.5527, allocations: 3.374 MB / 0.6006 GB, free: 6.23 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001555/0.5542, allocations: 67.92 kB / 0.6007 GB, free: 6.164 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001969/0.5544, allocations: 68.12 kB / 0.6007 GB, free: 6.098 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 70 * 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 (185): * Single equations (assignments): 182 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 1 system {(2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,1,100.0%), (1,5,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.002099/0.5566, allocations: 0.9662 MB / 0.6017 GB, free: 5.145 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004709/0.557, allocations: 182.8 kB / 0.6018 GB, free: 4.965 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003626/0.5607, allocations: 1.808 MB / 0.6036 GB, free: 3.113 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.685e-05/0.5607, allocations: 12 kB / 0.6036 GB, free: 3.102 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.957e-05/0.5607, allocations: 10.66 kB / 0.6036 GB, free: 3.094 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.962e-05/0.5608, allocations: 7.969 kB / 0.6036 GB, free: 3.086 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00929/0.5701, allocations: 4.348 MB / 0.6079 GB, free: 14.66 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.112e-05/0.5701, allocations: 4 kB / 0.6079 GB, free: 14.66 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008691/0.571, allocations: 175.9 kB / 0.6081 GB, free: 14.49 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009613/0.572, allocations: 310.1 kB / 0.6084 GB, free: 14.18 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001249/0.5721, allocations: 31.98 kB / 0.6084 GB, free: 14.15 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008405/0.5805, allocations: 8.207 MB / 0.6164 GB, free: 5.434 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.278e-06/0.5806, allocations: 2.625 kB / 0.6164 GB, free: 5.434 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004982/0.5856, allocations: 2.571 MB / 0.6189 GB, free: 2.793 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001262/0.5869, allocations: 375.8 kB / 0.6193 GB, free: 2.406 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007287/0.5876, allocations: 26.62 kB / 0.6193 GB, free: 2.383 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001389/0.5891, allocations: 55.95 kB / 0.6193 GB, free: 2.328 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000322/0.5894, allocations: 83.94 kB / 0.6194 GB, free: 2.25 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001157/0.5895, allocations: 35.98 kB / 0.6195 GB, free: 2.215 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.002595/0.5921, allocations: 1.095 MB / 0.6205 GB, free: 1.125 MB / 430.1 MB Notification: Performance of sort global known variables: time 3.9e-07/0.5922, allocations: 2.625 kB / 0.6205 GB, free: 1.125 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.003288/0.5955, allocations: 0.5039 MB / 0.621 GB, free: 0.6211 MB / 430.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 8 (smr.inertiaRotor.w,smr.stator.zeroInductor.i0,smr.stator.core.Phi.re,smr.stator.core.Phi.im,smr.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.re,smr.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.im,vfController.x,loadInertia.phi) * 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 (86): * Single equations (assignments): 82 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(1,5,100.0%), (1,1,100.0%), (1,8,100.0%), (2,12,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.005741/0.6012, allocations: 3.187 MB / 0.6241 GB, free: 13.37 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.003465/0.6047, allocations: 1.716 MB / 0.6258 GB, free: 11.66 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 7.775e-06/0.6048, allocations: 0 / 0.6258 GB, free: 11.66 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002315/0.6071, allocations: 1.226 MB / 0.627 GB, free: 10.41 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003826/0.611, allocations: 0.4924 MB / 0.6275 GB, free: 9.918 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04077/0.6518, allocations: 17.97 MB / 0.645 GB, free: 7.324 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004731/0.6566, allocations: 2.236 MB / 0.6472 GB, free: 5.062 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.002188/0.6588, allocations: 379.3 kB / 0.6476 GB, free: 4.688 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002989/0.6618, allocations: 1.109 MB / 0.6487 GB, free: 3.578 MB / 462.1 MB Notification: Performance of SimCode: time 1.683e-06/0.6619, allocations: 0 / 0.6487 GB, free: 3.578 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1068/0.7687, allocations: 47.44 MB / 0.695 GB, free: 4.535 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 13.3/14.07, allocations: 11.86 kB / 0.695 GB, free: 4.523 MB / 0.4981 GB (rm -f HanserModelica_HanserModelica.SynchronousMachines.SMR_Inverter.pipe ; mkfifo HanserModelica_HanserModelica.SynchronousMachines.SMR_Inverter.pipe ; head -c 1048576 < HanserModelica_HanserModelica.SynchronousMachines.SMR_Inverter.pipe >> ../files/HanserModelica_HanserModelica.SynchronousMachines.SMR_Inverter.sim & python3 -m fmpy simulate --output-file HanserModelica_HanserModelica.SynchronousMachines.SMR_Inverter_res.csv --start-time 0 --stop-time 2 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0001 HanserModelica_HanserModelica_SynchronousMachines_SMR_Inverter.fmu > HanserModelica_HanserModelica.SynchronousMachines.SMR_Inverter.pipe 2>&1)