Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr HanserModelica_HanserModelica.InductionMachines.IMC_Inverter1.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.InductionMachines.IMC_Inverter1,fileNamePrefix="HanserModelica_HanserModelica_InductionMachines_IMC_Inverter1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HanserModelica.InductionMachines.IMC_Inverter1,fileNamePrefix="HanserModelica_HanserModelica_InductionMachines_IMC_Inverter1",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.005976/0.005976, allocations: 95.7 kB / 15.73 MB, free: 6.039 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.562/1.562, 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.001489/0.001489, allocations: 180.5 kB / 289.7 MB, free: 2.258 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03695/0.03695, allocations: 8.797 MB / 348.7 MB, free: 4.609 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00226/0.00226, allocations: 83.86 kB / 463.4 MB, free: 13.57 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1066/0.1088, allocations: 51.55 MB / 0.5029 GB, free: 9.984 MB / 350.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.InductionMachines.IMC_Inverter1): time 0.0163/0.1252, allocations: 13.14 MB / 0.5157 GB, free: 12.78 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.009673/0.135, allocations: 4.333 MB / 0.52 GB, free: 8.434 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003294/0.1383, allocations: 87.69 kB / 0.5201 GB, free: 8.348 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00421/0.1425, allocations: 1.025 MB / 0.5211 GB, free: 7.316 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005832/0.1484, allocations: 1.289 MB / 0.5223 GB, free: 6.02 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002568/0.151, allocations: 0.8456 MB / 0.5231 GB, free: 5.172 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0069/0.1579, allocations: 4.043 MB / 0.5271 GB, free: 1.109 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.2839/0.4419, allocations: 3.513 MB / 0.5305 GB, free: 5.062 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00294/0.4448, allocations: 1.918 MB / 0.5324 GB, free: 4.926 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003684/0.4486, allocations: 2.127 MB / 0.5345 GB, free: 4.555 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001283/0.4499, allocations: 0.5245 MB / 0.535 GB, free: 4.555 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002361/0.4522, allocations: 0.7339 MB / 0.5357 GB, free: 4.551 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001193/0.4534, allocations: 1.145 MB / 0.5368 GB, free: 4.418 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003633/0.4571, allocations: 2.176 MB / 0.5389 GB, free: 3.891 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009955/0.467, allocations: 6.906 MB / 0.5457 GB, free: 3.156 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.781e-06/0.4671, allocations: 3.656 kB / 0.5457 GB, free: 3.156 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.983e-06/0.4671, allocations: 0 / 0.5457 GB, free: 3.156 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.000228/0.4673, allocations: 1.5 kB / 0.5457 GB, free: 3.156 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: 880 * Number of variables: 880 Notification: Performance of Generate backend data structure: time 0.01691/0.4843, allocations: 4.536 MB / 0.5501 GB, free: 1.465 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.494e-05/0.4843, allocations: 10.34 kB / 0.5501 GB, free: 1.465 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002109/0.4864, allocations: 0.5107 MB / 0.5506 GB, free: 1.395 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005904/0.4924, allocations: 0.8427 MB / 0.5515 GB, free: 1.188 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006976/0.4994, allocations: 2.493 MB / 0.5539 GB, free: 436 kB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002955/0.4997, allocations: 252.3 kB / 0.5541 GB, free: 428 kB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001341/0.501, allocations: 342.3 kB / 0.5545 GB, free: 324 kB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0119/0.5129, allocations: 4.506 MB / 0.5589 GB, free: 13.68 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.339e-05/0.5131, allocations: 7.016 kB / 0.5589 GB, free: 13.68 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003702/0.5134, allocations: 140.2 kB / 0.559 GB, free: 13.57 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001468/0.5136, allocations: 156.4 kB / 0.5591 GB, free: 13.55 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006944/0.5206, allocations: 3.811 MB / 0.5629 GB, free: 11.52 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02506/0.5456, allocations: 14.07 MB / 0.5766 GB, free: 268 kB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007456/0.5531, allocations: 6.148 MB / 0.5826 GB, free: 9.32 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002107/0.5553, allocations: 1.179 MB / 0.5838 GB, free: 8.141 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006951/0.5623, allocations: 3.307 MB / 0.587 GB, free: 4.797 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.619e-05/0.5623, allocations: 47.56 kB / 0.587 GB, free: 4.742 MB / 398.1 MB Notification: Performance of pre-optimization done (n=115): time 4.138e-06/0.5624, allocations: 0 / 0.587 GB, free: 4.742 MB / 398.1 MB Notification: Performance of matching and sorting (n=118): time 0.0122/0.5746, allocations: 5.273 MB / 0.5922 GB, free: 15.31 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.793e-05/0.5747, allocations: 67.41 kB / 0.5922 GB, free: 15.23 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003054/0.5777, allocations: 1.69 MB / 0.5939 GB, free: 13.54 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001558/0.5779, allocations: 49.7 kB / 0.5939 GB, free: 13.48 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001318/0.5792, allocations: 1.535 MB / 0.5954 GB, free: 11.94 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004426/0.5797, allocations: 438.1 kB / 0.5959 GB, free: 11.52 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005252/0.5802, allocations: 287.5 kB / 0.5961 GB, free: 11.23 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001563/0.5804, allocations: 301.1 kB / 0.5964 GB, free: 10.93 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001187/0.5816, allocations: 0.6246 MB / 0.597 GB, free: 10.3 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001606/0.5832, allocations: 1.133 MB / 0.5981 GB, free: 8.961 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00281/0.586, allocations: 1.866 MB / 0.6 GB, free: 6.934 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.239e-05/0.586, allocations: 7.938 kB / 0.6 GB, free: 6.926 MB / 414.1 MB Notification: Performance of matching and sorting (n=203) (initialization): time 0.004039/0.5901, allocations: 2.196 MB / 0.6021 GB, free: 4.793 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.094e-05/0.5901, allocations: 12 kB / 0.6021 GB, free: 4.781 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.664e-05/0.5902, allocations: 16 kB / 0.6021 GB, free: 4.766 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004201/0.5906, allocations: 142.9 kB / 0.6023 GB, free: 4.617 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001475/0.5921, allocations: 390.8 kB / 0.6027 GB, free: 4.262 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003203/0.5953, allocations: 3.376 MB / 0.6059 GB, free: 0.6289 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001641/0.5969, allocations: 71.92 kB / 0.606 GB, free: 0.5586 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001435/0.5971, allocations: 68 kB / 0.6061 GB, free: 0.4922 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 72 * 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 (196): * Single equations (assignments): 193 * 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.002464/0.5996, allocations: 1.049 MB / 0.6071 GB, free: 15.46 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000504/0.6001, allocations: 186.8 kB / 0.6073 GB, free: 15.27 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004424/0.6045, allocations: 2.045 MB / 0.6093 GB, free: 13.19 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.378e-05/0.6045, allocations: 12 kB / 0.6093 GB, free: 13.18 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.438e-05/0.6046, allocations: 11.94 kB / 0.6093 GB, free: 13.17 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.39e-05/0.6046, allocations: 3.984 kB / 0.6093 GB, free: 13.16 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009622/0.6142, allocations: 4.776 MB / 0.614 GB, free: 8.312 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.068e-05/0.6143, allocations: 0 / 0.614 GB, free: 8.312 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008194/0.6151, allocations: 167.9 kB / 0.6141 GB, free: 8.156 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001323/0.6164, allocations: 448.8 kB / 0.6146 GB, free: 7.711 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.361e-05/0.6165, allocations: 31.98 kB / 0.6146 GB, free: 7.68 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01305/0.6296, allocations: 11.07 MB / 0.6254 GB, free: 11.99 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.905e-06/0.6296, allocations: 0 / 0.6254 GB, free: 11.99 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005477/0.6351, allocations: 2.878 MB / 0.6282 GB, free: 9.047 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001207/0.6363, allocations: 399.8 kB / 0.6286 GB, free: 8.637 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003056/0.6367, allocations: 31.98 kB / 0.6286 GB, free: 8.605 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008471/0.6375, allocations: 59.95 kB / 0.6287 GB, free: 8.547 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003312/0.6379, allocations: 99.67 kB / 0.6288 GB, free: 8.453 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.338e-05/0.6379, allocations: 36 kB / 0.6288 GB, free: 8.418 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002166/0.6401, allocations: 1.15 MB / 0.6299 GB, free: 7.273 MB / 446.1 MB Notification: Performance of sort global known variables: time 2.7e-07/0.6401, allocations: 0 / 0.6299 GB, free: 7.273 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.002357/0.6425, allocations: 0.5468 MB / 0.6305 GB, free: 6.727 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 8 (imc.inertiaRotor.w,imc.stator.zeroInductor.i0,imc.stator.core.Phi.re,imc.stator.core.Phi.im,imc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[3].Phi.re,imc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[3].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 (81): * Single equations (assignments): 76 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 5 systems {(1,5,100.0%), (1,1,100.0%), (1,8,100.0%), (1,13,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.005576/0.6481, allocations: 3.492 MB / 0.6339 GB, free: 3.18 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.003479/0.6516, allocations: 1.834 MB / 0.6357 GB, free: 1.355 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 4.509e-06/0.6516, allocations: 384 / 0.6357 GB, free: 1.355 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002611/0.6542, allocations: 1.502 MB / 0.6371 GB, free: 15.81 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002705/0.6569, allocations: 0.5339 MB / 0.6377 GB, free: 15.28 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0346/0.6915, allocations: 18.98 MB / 0.6562 GB, free: 11.71 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002689/0.6943, allocations: 2.362 MB / 0.6585 GB, free: 9.32 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.001531/0.6958, allocations: 384.1 kB / 0.6589 GB, free: 8.941 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001824/0.6977, allocations: 1.148 MB / 0.66 GB, free: 7.793 MB / 478.1 MB Notification: Performance of SimCode: time 1.664e-06/0.6977, allocations: 0 / 0.66 GB, free: 7.793 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1192/0.8169, allocations: 51.01 MB / 0.7098 GB, free: 5.188 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.94/13.76, allocations: 15.83 kB / 0.7098 GB, free: 5.172 MB / 0.5137 GB (rm -f HanserModelica_HanserModelica.InductionMachines.IMC_Inverter1.pipe ; mkfifo HanserModelica_HanserModelica.InductionMachines.IMC_Inverter1.pipe ; head -c 1048576 < HanserModelica_HanserModelica.InductionMachines.IMC_Inverter1.pipe >> ../files/HanserModelica_HanserModelica.InductionMachines.IMC_Inverter1.sim & python3 -m fmpy simulate --output-file HanserModelica_HanserModelica.InductionMachines.IMC_Inverter1_res.csv --start-time 0 --stop-time 2 --timeout 50 --relative-tolerance 1e-08 --interface-type ModelExchange --solver CVode --output-interval 0.0001 HanserModelica_HanserModelica_InductionMachines_IMC_Inverter1.fmu > HanserModelica_HanserModelica.InductionMachines.IMC_Inverter1.pipe 2>&1)