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.006177/0.006177, allocations: 99.5 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.359/1.359, allocations: 222.9 MB / 239.4 MB, free: 4.352 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.001462/0.001462, allocations: 188.5 kB / 289.7 MB, free: 2.086 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03544/0.03544, allocations: 8.791 MB / 348.7 MB, free: 4.535 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002208/0.002208, allocations: 87.86 kB / 463.4 MB, free: 13.47 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.105/0.1072, allocations: 51.57 MB / 0.5029 GB, free: 9.859 MB / 350.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.InductionMachines.IMC_Inverter2): time 0.01547/0.1227, allocations: 13.14 MB / 0.5158 GB, free: 12.65 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.008476/0.1312, allocations: 4.337 MB / 0.52 GB, free: 8.301 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002086/0.1333, allocations: 83.69 kB / 0.5201 GB, free: 8.219 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003285/0.1367, allocations: 1.029 MB / 0.5211 GB, free: 7.184 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00455/0.1412, allocations: 1.281 MB / 0.5224 GB, free: 5.895 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002311/0.1436, allocations: 0.8572 MB / 0.5232 GB, free: 5.035 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.005383/0.149, allocations: 4.041 MB / 0.5271 GB, free: 0.9766 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.2023/0.3513, allocations: 3.511 MB / 0.5306 GB, free: 5.027 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002654/0.354, allocations: 1.921 MB / 0.5324 GB, free: 4.895 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003281/0.3573, allocations: 2.126 MB / 0.5345 GB, free: 4.52 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001283/0.3586, allocations: 0.5255 MB / 0.535 GB, free: 4.52 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001867/0.3605, allocations: 0.7254 MB / 0.5357 GB, free: 4.52 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008939/0.3614, allocations: 1.148 MB / 0.5369 GB, free: 4.387 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002562/0.3639, allocations: 2.177 MB / 0.539 GB, free: 3.859 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00839/0.3723, allocations: 6.906 MB / 0.5457 GB, free: 3.125 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.773e-06/0.3724, allocations: 6.438 kB / 0.5457 GB, free: 3.121 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.925e-06/0.3724, allocations: 0.7188 kB / 0.5457 GB, free: 3.121 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0002241/0.3726, allocations: 0 / 0.5457 GB, free: 3.121 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.01321/0.3858, allocations: 4.526 MB / 0.5502 GB, free: 1.434 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.206e-05/0.3859, allocations: 13.66 kB / 0.5502 GB, free: 1.434 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0009678/0.3869, allocations: 0.5189 MB / 0.5507 GB, free: 1.363 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004271/0.3912, allocations: 0.8415 MB / 0.5515 GB, free: 1.152 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004415/0.3956, allocations: 2.498 MB / 0.5539 GB, free: 416 kB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001678/0.3958, allocations: 253.5 kB / 0.5542 GB, free: 408 kB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005484/0.3963, allocations: 332.7 kB / 0.5545 GB, free: 320 kB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008292/0.4046, allocations: 4.51 MB / 0.5589 GB, free: 13.66 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.897e-05/0.4047, allocations: 3.656 kB / 0.5589 GB, free: 13.66 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003436/0.4051, allocations: 141.1 kB / 0.559 GB, free: 13.55 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001263/0.4052, allocations: 157.1 kB / 0.5592 GB, free: 13.53 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006422/0.4116, allocations: 3.817 MB / 0.5629 GB, free: 11.5 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02064/0.4323, allocations: 14.07 MB / 0.5767 GB, free: 240 kB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006622/0.4389, allocations: 6.129 MB / 0.5826 GB, free: 9.312 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002085/0.4411, allocations: 1.184 MB / 0.5838 GB, free: 8.129 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005781/0.4469, allocations: 3.303 MB / 0.587 GB, free: 4.789 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.326e-05/0.4469, allocations: 43.56 kB / 0.5871 GB, free: 4.738 MB / 398.1 MB Notification: Performance of pre-optimization done (n=115): time 6.562e-06/0.4469, allocations: 0 / 0.5871 GB, free: 4.738 MB / 398.1 MB Notification: Performance of matching and sorting (n=118): time 0.01107/0.458, allocations: 5.283 MB / 0.5922 GB, free: 15.29 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.571e-05/0.4581, allocations: 63.88 kB / 0.5923 GB, free: 15.22 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002531/0.4606, allocations: 1.686 MB / 0.5939 GB, free: 13.53 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001018/0.4607, allocations: 52.89 kB / 0.594 GB, free: 13.47 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001117/0.4619, allocations: 1.537 MB / 0.5955 GB, free: 11.93 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003433/0.4622, allocations: 429.4 kB / 0.5959 GB, free: 11.51 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004531/0.4627, allocations: 295.5 kB / 0.5962 GB, free: 11.21 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001149/0.4628, allocations: 308.7 kB / 0.5965 GB, free: 10.91 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001051/0.4639, allocations: 0.6208 MB / 0.5971 GB, free: 10.29 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001459/0.4653, allocations: 1.134 MB / 0.5982 GB, free: 8.945 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002624/0.468, allocations: 1.862 MB / 0.6 GB, free: 6.922 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.155e-05/0.468, allocations: 11.92 kB / 0.6 GB, free: 6.91 MB / 414.1 MB Notification: Performance of matching and sorting (n=203) (initialization): time 0.003764/0.4718, allocations: 2.194 MB / 0.6022 GB, free: 4.777 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.932e-05/0.4718, allocations: 12 kB / 0.6022 GB, free: 4.766 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.802e-05/0.4718, allocations: 19.98 kB / 0.6022 GB, free: 4.746 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000406/0.4722, allocations: 138 kB / 0.6023 GB, free: 4.605 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001425/0.4737, allocations: 401 kB / 0.6027 GB, free: 4.238 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00298/0.4767, allocations: 3.364 MB / 0.606 GB, free: 0.6133 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001356/0.478, allocations: 76.06 kB / 0.6061 GB, free: 0.5391 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001179/0.4782, allocations: 68 kB / 0.6061 GB, free: 484 kB / 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.001859/0.48, allocations: 1.039 MB / 0.6071 GB, free: 15.45 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003234/0.4804, allocations: 186.8 kB / 0.6073 GB, free: 15.27 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00359/0.484, allocations: 2.045 MB / 0.6093 GB, free: 13.18 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.108e-05/0.484, allocations: 16 kB / 0.6093 GB, free: 13.17 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.193e-05/0.484, allocations: 12.06 kB / 0.6093 GB, free: 13.16 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.405e-05/0.484, allocations: 7.969 kB / 0.6093 GB, free: 13.15 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007515/0.4915, allocations: 4.785 MB / 0.614 GB, free: 8.289 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.067e-06/0.4916, allocations: 4 kB / 0.614 GB, free: 8.285 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007154/0.4923, allocations: 160 kB / 0.6142 GB, free: 8.137 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00114/0.4934, allocations: 445.6 kB / 0.6146 GB, free: 7.691 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.738e-05/0.4935, allocations: 35.98 kB / 0.6146 GB, free: 7.656 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01109/0.5046, allocations: 11.06 MB / 0.6254 GB, free: 11.97 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.931e-06/0.5047, allocations: 10.72 kB / 0.6254 GB, free: 11.96 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004979/0.5097, allocations: 2.877 MB / 0.6283 GB, free: 9.023 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009643/0.5107, allocations: 395.8 kB / 0.6286 GB, free: 8.617 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002233/0.5109, allocations: 32 kB / 0.6287 GB, free: 8.586 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008101/0.5117, allocations: 59.95 kB / 0.6287 GB, free: 8.527 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002584/0.512, allocations: 99.48 kB / 0.6288 GB, free: 8.434 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.821e-05/0.5121, allocations: 40.11 kB / 0.6289 GB, free: 8.395 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.001744/0.5138, allocations: 1.147 MB / 0.63 GB, free: 7.254 MB / 446.1 MB Notification: Performance of sort global known variables: time 2.064e-06/0.5138, allocations: 0 / 0.63 GB, free: 7.254 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.002067/0.5159, allocations: 0.5507 MB / 0.6305 GB, free: 6.703 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.005002/0.5209, allocations: 3.484 MB / 0.6339 GB, free: 3.16 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.00312/0.524, allocations: 1.84 MB / 0.6357 GB, free: 1.328 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 3.516e-06/0.5241, allocations: 5.312 kB / 0.6357 GB, free: 1.324 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002284/0.5264, allocations: 1.496 MB / 0.6372 GB, free: 15.79 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002497/0.5289, allocations: 0.5344 MB / 0.6377 GB, free: 15.26 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02938/0.5583, allocations: 18.98 MB / 0.6562 GB, free: 11.68 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002289/0.5606, allocations: 2.358 MB / 0.6585 GB, free: 9.297 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.001315/0.5619, allocations: 388 kB / 0.6589 GB, free: 8.914 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001969/0.5639, allocations: 1.151 MB / 0.66 GB, free: 7.762 MB / 478.1 MB Notification: Performance of SimCode: time 9.82e-07/0.5639, allocations: 0 / 0.66 GB, free: 7.762 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1294/0.6933, allocations: 51 MB / 0.7098 GB, free: 5.156 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.5/13.19, allocations: 9.562 kB / 0.7098 GB, free: 5.148 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_HanserModelica_HanserModelica_InductionMachines_IMC_Inverter2_fmu --startTime=0 --stopTime=3.5 --timeout=50 --tolerance=1e-08 HanserModelica_HanserModelica_InductionMachines_IMC_Inverter2.fmu > HanserModelica_HanserModelica.InductionMachines.IMC_Inverter2.pipe 2>&1)