Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr HanserModelica_HanserModelica.InductionMachines.IMC_Inverter2.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_Inverter2,fileNamePrefix="HanserModelica_HanserModelica_InductionMachines_IMC_Inverter2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HanserModelica.InductionMachines.IMC_Inverter2,fileNamePrefix="HanserModelica_HanserModelica_InductionMachines_IMC_Inverter2",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.008441/0.008441, allocations: 98.7 kB / 15.73 MB, free: 6.055 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.528/1.528, 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.001847/0.001847, allocations: 184.5 kB / 289.7 MB, free: 2.242 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03735/0.03735, allocations: 8.8 MB / 348.7 MB, free: 4.602 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002315/0.002315, allocations: 79.88 kB / 463.4 MB, free: 13.55 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1139/0.1162, allocations: 51.58 MB / 0.5029 GB, free: 9.938 MB / 350.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.InductionMachines.IMC_Inverter2): time 0.0163/0.1326, allocations: 13.14 MB / 0.5158 GB, free: 12.73 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.009518/0.1422, allocations: 4.341 MB / 0.52 GB, free: 8.379 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003072/0.1453, allocations: 87.62 kB / 0.5201 GB, free: 8.293 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00367/0.149, allocations: 1.029 MB / 0.5211 GB, free: 7.258 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004933/0.1539, allocations: 1.281 MB / 0.5224 GB, free: 5.973 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002585/0.1565, allocations: 0.8573 MB / 0.5232 GB, free: 5.113 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.006151/0.1627, allocations: 4.029 MB / 0.5271 GB, free: 1.062 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.2351/0.3978, allocations: 3.519 MB / 0.5306 GB, free: 5.105 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00364/0.4015, allocations: 1.925 MB / 0.5324 GB, free: 4.969 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006073/0.4076, allocations: 2.123 MB / 0.5345 GB, free: 4.598 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0025/0.4102, allocations: 0.5281 MB / 0.535 GB, free: 4.598 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00393/0.4141, allocations: 0.7218 MB / 0.5357 GB, free: 4.594 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002455/0.4166, allocations: 1.149 MB / 0.5369 GB, free: 4.461 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005853/0.4225, allocations: 2.18 MB / 0.539 GB, free: 3.934 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01164/0.4341, allocations: 6.905 MB / 0.5457 GB, free: 3.199 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.524e-06/0.4342, allocations: 0.8438 kB / 0.5457 GB, free: 3.199 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.635e-06/0.4342, allocations: 0 / 0.5457 GB, free: 3.199 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0003177/0.4345, allocations: 0 / 0.5457 GB, free: 3.199 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.01879/0.4533, allocations: 4.539 MB / 0.5502 GB, free: 1.508 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.144e-05/0.4534, allocations: 9 kB / 0.5502 GB, free: 1.508 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002395/0.4558, allocations: 0.5165 MB / 0.5507 GB, free: 1.438 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006003/0.4618, allocations: 0.8407 MB / 0.5515 GB, free: 1.23 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007535/0.4694, allocations: 2.493 MB / 0.5539 GB, free: 0.4922 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004786/0.4699, allocations: 255.8 kB / 0.5542 GB, free: 464 kB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001982/0.4719, allocations: 332.9 kB / 0.5545 GB, free: 352 kB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01759/0.4895, allocations: 4.517 MB / 0.5589 GB, free: 13.7 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001872/0.4897, allocations: 0 / 0.5589 GB, free: 13.7 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001718/0.4915, allocations: 141.3 kB / 0.559 GB, free: 13.59 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001978/0.4917, allocations: 155.3 kB / 0.5592 GB, free: 13.57 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.012/0.5037, allocations: 3.809 MB / 0.5629 GB, free: 11.54 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03568/0.5394, allocations: 14.07 MB / 0.5767 GB, free: 272 kB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008193/0.5477, allocations: 6.139 MB / 0.5826 GB, free: 9.332 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002519/0.5502, allocations: 1.181 MB / 0.5838 GB, free: 8.152 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007056/0.5573, allocations: 3.299 MB / 0.587 GB, free: 4.812 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.332e-05/0.5574, allocations: 55.03 kB / 0.5871 GB, free: 4.754 MB / 398.1 MB Notification: Performance of pre-optimization done (n=115): time 3.546e-06/0.5574, allocations: 0 / 0.5871 GB, free: 4.754 MB / 398.1 MB Notification: Performance of matching and sorting (n=118): time 0.01315/0.5706, allocations: 5.271 MB / 0.5922 GB, free: 15.32 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.907e-05/0.5707, allocations: 67.88 kB / 0.5923 GB, free: 15.24 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004228/0.5749, allocations: 1.686 MB / 0.5939 GB, free: 13.55 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003046/0.5753, allocations: 49.7 kB / 0.594 GB, free: 13.5 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00167/0.5769, allocations: 1.538 MB / 0.5955 GB, free: 11.95 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000638/0.5776, allocations: 437.8 kB / 0.5959 GB, free: 11.53 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007046/0.5783, allocations: 283.5 kB / 0.5962 GB, free: 11.24 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.000166/0.5785, allocations: 308.7 kB / 0.5965 GB, free: 10.94 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001351/0.5798, allocations: 0.6207 MB / 0.5971 GB, free: 10.32 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00179/0.5816, allocations: 1.134 MB / 0.5982 GB, free: 8.973 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003327/0.585, allocations: 1.869 MB / 0.6 GB, free: 6.945 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.171e-05/0.585, allocations: 7.938 kB / 0.6 GB, free: 6.938 MB / 414.1 MB Notification: Performance of matching and sorting (n=203) (initialization): time 0.004575/0.5896, allocations: 2.198 MB / 0.6022 GB, free: 4.801 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.58e-05/0.5897, allocations: 12 kB / 0.6022 GB, free: 4.789 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.632e-05/0.5897, allocations: 16 kB / 0.6022 GB, free: 4.773 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004895/0.5902, allocations: 138.3 kB / 0.6023 GB, free: 4.633 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001584/0.5918, allocations: 396.7 kB / 0.6027 GB, free: 4.27 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003596/0.5954, allocations: 3.373 MB / 0.606 GB, free: 0.6367 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00168/0.5971, allocations: 71.92 kB / 0.6061 GB, free: 0.5664 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001999/0.5973, allocations: 72.11 kB / 0.6061 GB, free: 0.4961 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.00246/0.5998, allocations: 1.048 MB / 0.6071 GB, free: 15.46 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000559/0.6004, allocations: 182.8 kB / 0.6073 GB, free: 15.28 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004285/0.6047, allocations: 2.052 MB / 0.6093 GB, free: 13.2 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.745e-05/0.6047, allocations: 12 kB / 0.6093 GB, free: 13.18 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.002e-05/0.6047, allocations: 7.938 kB / 0.6093 GB, free: 13.18 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.551e-05/0.6047, allocations: 7.969 kB / 0.6094 GB, free: 13.17 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01078/0.6155, allocations: 4.782 MB / 0.614 GB, free: 8.312 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.051e-05/0.6156, allocations: 0 / 0.614 GB, free: 8.312 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008123/0.6164, allocations: 164 kB / 0.6142 GB, free: 8.16 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001343/0.6178, allocations: 449.4 kB / 0.6146 GB, free: 7.715 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000117/0.6179, allocations: 35.98 kB / 0.6146 GB, free: 7.68 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0126/0.6305, allocations: 11.06 MB / 0.6254 GB, free: 12 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.815e-06/0.6306, allocations: 3.984 kB / 0.6254 GB, free: 11.99 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006306/0.6369, allocations: 2.881 MB / 0.6283 GB, free: 9.047 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001567/0.6385, allocations: 399.8 kB / 0.6286 GB, free: 8.637 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007715/0.6393, allocations: 32 kB / 0.6287 GB, free: 8.605 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001326/0.6406, allocations: 59.95 kB / 0.6287 GB, free: 8.547 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000327/0.641, allocations: 95.48 kB / 0.6288 GB, free: 8.457 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001065/0.6411, allocations: 43.98 kB / 0.6289 GB, free: 8.414 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.003192/0.6443, allocations: 1.15 MB / 0.63 GB, free: 7.27 MB / 446.1 MB Notification: Performance of sort global known variables: time 3.01e-07/0.6443, allocations: 0 / 0.63 GB, free: 7.27 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.004502/0.6488, allocations: 0.5429 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.009492/0.6584, allocations: 3.49 MB / 0.6339 GB, free: 3.18 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.005197/0.6636, allocations: 1.838 MB / 0.6357 GB, free: 1.352 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 9.398e-06/0.6637, allocations: 448 / 0.6357 GB, free: 1.352 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003778/0.6675, allocations: 1.497 MB / 0.6372 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.004041/0.6715, allocations: 0.5247 MB / 0.6377 GB, free: 15.29 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03509/0.7066, 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.002571/0.7093, allocations: 2.365 MB / 0.6585 GB, free: 9.324 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.001427/0.7107, allocations: 392 kB / 0.6589 GB, free: 8.938 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001601/0.7123, allocations: 1.144 MB / 0.66 GB, free: 7.793 MB / 478.1 MB Notification: Performance of SimCode: time 8.91e-07/0.7123, allocations: 0 / 0.66 GB, free: 7.793 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1232/0.8356, allocations: 51.01 MB / 0.7098 GB, free: 5.188 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 13.09/13.93, allocations: 11.84 kB / 0.7099 GB, free: 5.176 MB / 0.5137 GB (rm -f HanserModelica_HanserModelica.InductionMachines.IMC_Inverter2.pipe ; mkfifo HanserModelica_HanserModelica.InductionMachines.IMC_Inverter2.pipe ; head -c 1048576 < HanserModelica_HanserModelica.InductionMachines.IMC_Inverter2.pipe >> ../files/HanserModelica_HanserModelica.InductionMachines.IMC_Inverter2.sim & python3 -m fmpy simulate --output-file HanserModelica_HanserModelica.InductionMachines.IMC_Inverter2_res.csv --start-time 0 --stop-time 3.5 --timeout 50 --relative-tolerance 1e-08 --interface-type ModelExchange --solver CVode --output-interval 0.0001 HanserModelica_HanserModelica_InductionMachines_IMC_Inverter2.fmu > HanserModelica_HanserModelica.InductionMachines.IMC_Inverter2.pipe 2>&1)