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.005058/0.005058, allocations: 97.95 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.361/1.361, allocations: 222.9 MB / 239.4 MB, free: 4.508 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.001469/0.001469, allocations: 188.5 kB / 289.7 MB, free: 2.227 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03518/0.03518, allocations: 8.803 MB / 348.7 MB, free: 4.609 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002214/0.002214, allocations: 75.86 kB / 463.4 MB, free: 13.59 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09935/0.1016, allocations: 51.57 MB / 0.5029 GB, free: 9.984 MB / 350.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.InductionMachines.IMC_Inverter1): time 0.01514/0.1168, allocations: 13.13 MB / 0.5157 GB, free: 12.79 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.008854/0.1257, allocations: 4.337 MB / 0.52 GB, free: 8.441 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002832/0.1285, allocations: 87.62 kB / 0.5201 GB, free: 8.355 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003517/0.1321, allocations: 1.021 MB / 0.5211 GB, free: 7.328 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004848/0.137, allocations: 1.289 MB / 0.5223 GB, free: 6.031 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002473/0.1395, allocations: 0.8544 MB / 0.5232 GB, free: 5.18 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.00603/0.1456, allocations: 4.035 MB / 0.5271 GB, free: 1.121 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.2304/0.376, allocations: 3.519 MB / 0.5305 GB, free: 5.16 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002948/0.379, allocations: 1.917 MB / 0.5324 GB, free: 5.027 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00297/0.382, allocations: 2.133 MB / 0.5345 GB, free: 4.652 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0009648/0.383, allocations: 0.5246 MB / 0.535 GB, free: 4.652 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001687/0.3847, allocations: 0.7244 MB / 0.5357 GB, free: 4.652 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009706/0.3857, allocations: 1.145 MB / 0.5368 GB, free: 4.52 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003034/0.3887, allocations: 2.179 MB / 0.5389 GB, free: 3.992 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009889/0.3986, allocations: 6.9 MB / 0.5457 GB, free: 3.258 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.791e-06/0.3986, allocations: 0.8438 kB / 0.5457 GB, free: 3.258 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.413e-06/0.3986, allocations: 0 / 0.5457 GB, free: 3.258 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001957/0.3989, allocations: 2.203 kB / 0.5457 GB, free: 3.258 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.0141/0.413, allocations: 4.538 MB / 0.5501 GB, free: 1.566 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.249e-05/0.413, allocations: 8.844 kB / 0.5501 GB, free: 1.566 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0009607/0.414, allocations: 0.5204 MB / 0.5506 GB, free: 1.496 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004335/0.4183, allocations: 0.8339 MB / 0.5515 GB, free: 1.289 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004799/0.4231, allocations: 2.5 MB / 0.5539 GB, free: 0.5195 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002076/0.4234, allocations: 251.5 kB / 0.5541 GB, free: 0.5 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006204/0.424, allocations: 333.9 kB / 0.5545 GB, free: 400 kB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008843/0.4328, allocations: 4.514 MB / 0.5589 GB, free: 13.75 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.088e-05/0.4329, allocations: 3.984 kB / 0.5589 GB, free: 13.74 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003425/0.4333, allocations: 140.2 kB / 0.559 GB, free: 13.64 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001277/0.4334, allocations: 159.2 kB / 0.5591 GB, free: 13.61 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006684/0.4401, allocations: 3.81 MB / 0.5629 GB, free: 11.58 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02308/0.4632, allocations: 14.07 MB / 0.5766 GB, free: 312 kB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0069/0.4702, allocations: 6.139 MB / 0.5826 GB, free: 9.375 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002046/0.4723, allocations: 1.181 MB / 0.5838 GB, free: 8.191 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006794/0.4791, allocations: 3.305 MB / 0.587 GB, free: 4.852 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.258e-05/0.4792, allocations: 43.56 kB / 0.587 GB, free: 4.801 MB / 398.1 MB Notification: Performance of pre-optimization done (n=115): time 7.294e-06/0.4792, allocations: 0 / 0.587 GB, free: 4.801 MB / 398.1 MB Notification: Performance of matching and sorting (n=118): time 0.01199/0.4912, allocations: 5.278 MB / 0.5922 GB, free: 15.36 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.692e-05/0.4913, allocations: 68.25 kB / 0.5922 GB, free: 15.29 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003421/0.4947, allocations: 1.686 MB / 0.5939 GB, free: 13.59 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001291/0.4949, allocations: 49.7 kB / 0.5939 GB, free: 13.54 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001396/0.4963, allocations: 1.538 MB / 0.5954 GB, free: 11.99 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004359/0.4967, allocations: 429.8 kB / 0.5959 GB, free: 11.58 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005365/0.4973, allocations: 291.5 kB / 0.5961 GB, free: 11.29 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001278/0.4974, allocations: 305.1 kB / 0.5964 GB, free: 10.98 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001196/0.4986, allocations: 0.6286 MB / 0.597 GB, free: 10.36 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00155/0.5002, allocations: 1.133 MB / 0.5981 GB, free: 9.012 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002818/0.503, allocations: 1.867 MB / 0.6 GB, free: 6.984 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.748e-05/0.503, allocations: 7.938 kB / 0.6 GB, free: 6.977 MB / 414.1 MB Notification: Performance of matching and sorting (n=203) (initialization): time 0.004254/0.5073, allocations: 2.191 MB / 0.6021 GB, free: 4.848 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.639e-05/0.5073, allocations: 23.86 kB / 0.6021 GB, free: 4.828 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.491e-05/0.5074, allocations: 16 kB / 0.6021 GB, free: 4.812 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004523/0.5078, allocations: 130.5 kB / 0.6023 GB, free: 4.676 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001473/0.5093, allocations: 395.9 kB / 0.6027 GB, free: 4.312 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003213/0.5126, allocations: 3.373 MB / 0.6059 GB, free: 0.6836 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00154/0.5141, allocations: 71.92 kB / 0.606 GB, free: 0.6133 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001667/0.5143, allocations: 71.98 kB / 0.6061 GB, free: 0.543 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.002182/0.5165, allocations: 1.04 MB / 0.6071 GB, free: 15.52 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005241/0.517, allocations: 186.8 kB / 0.6073 GB, free: 15.33 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004219/0.5212, allocations: 2.042 MB / 0.6093 GB, free: 13.25 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.36e-05/0.5213, allocations: 12 kB / 0.6093 GB, free: 13.24 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.771e-05/0.5213, allocations: 11.94 kB / 0.6093 GB, free: 13.23 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.767e-05/0.5213, allocations: 7.969 kB / 0.6093 GB, free: 13.22 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009921/0.5313, allocations: 4.786 MB / 0.614 GB, free: 8.363 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.315e-05/0.5313, allocations: 8.031 kB / 0.614 GB, free: 8.355 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007456/0.5321, allocations: 159.9 kB / 0.6141 GB, free: 8.207 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001304/0.5334, allocations: 443.3 kB / 0.6146 GB, free: 7.766 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001175/0.5335, allocations: 35.98 kB / 0.6146 GB, free: 7.73 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01172/0.5453, allocations: 11.07 MB / 0.6254 GB, free: 12.04 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.601e-06/0.5453, allocations: 7.969 kB / 0.6254 GB, free: 12.03 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005104/0.5504, allocations: 2.885 MB / 0.6282 GB, free: 9.082 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00107/0.5515, allocations: 395.8 kB / 0.6286 GB, free: 8.676 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002338/0.5517, allocations: 32 kB / 0.6286 GB, free: 8.645 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008132/0.5526, allocations: 55.95 kB / 0.6287 GB, free: 8.59 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002794/0.5528, allocations: 103.6 kB / 0.6288 GB, free: 8.492 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.691e-05/0.5529, allocations: 35.98 kB / 0.6288 GB, free: 8.457 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.001789/0.5547, allocations: 1.147 MB / 0.6299 GB, free: 7.316 MB / 446.1 MB Notification: Performance of sort global known variables: time 2.064e-06/0.5547, allocations: 0 / 0.6299 GB, free: 7.316 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.002072/0.5568, allocations: 0.5507 MB / 0.6305 GB, free: 6.766 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.005259/0.5621, allocations: 3.484 MB / 0.6339 GB, free: 3.223 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.003368/0.5655, allocations: 1.842 MB / 0.6357 GB, free: 1.391 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 4.999e-06/0.5655, allocations: 6.625 kB / 0.6357 GB, free: 1.387 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002396/0.5679, allocations: 1.49 MB / 0.6371 GB, free: 15.85 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002754/0.5707, allocations: 0.5268 MB / 0.6377 GB, free: 15.32 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03197/0.6027, allocations: 18.98 MB / 0.6562 GB, free: 11.75 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003519/0.6062, allocations: 2.358 MB / 0.6585 GB, free: 9.367 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.001589/0.6078, allocations: 384 kB / 0.6589 GB, free: 8.988 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001911/0.6098, allocations: 1.155 MB / 0.66 GB, free: 7.832 MB / 478.1 MB Notification: Performance of SimCode: time 8.81e-07/0.6098, allocations: 0 / 0.66 GB, free: 7.832 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1109/0.7207, allocations: 51.01 MB / 0.7098 GB, free: 5.227 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.48/13.2, allocations: 14.72 kB / 0.7098 GB, free: 5.215 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_HanserModelica_HanserModelica_InductionMachines_IMC_Inverter1_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-08 HanserModelica_HanserModelica_InductionMachines_IMC_Inverter1.fmu > HanserModelica_HanserModelica.InductionMachines.IMC_Inverter1.pipe 2>&1)