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.006769/0.006769, allocations: 99.14 kB / 15.73 MB, free: 6.035 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.413/1.413, allocations: 222.9 MB / 239.4 MB, free: 4.551 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.001309/0.001309, allocations: 192.5 kB / 289.7 MB, free: 2.266 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03433/0.03433, allocations: 8.805 MB / 348.7 MB, free: 4.621 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001532/0.001532, allocations: 75.88 kB / 463.4 MB, free: 13.59 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1207/0.1223, allocations: 51.56 MB / 0.5029 GB, free: 10 MB / 350.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.InductionMachines.IMC_Inverter2): time 0.01655/0.1389, allocations: 13.15 MB / 0.5158 GB, free: 12.79 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01019/0.1491, allocations: 4.337 MB / 0.52 GB, free: 8.434 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003044/0.1522, allocations: 83.69 kB / 0.5201 GB, free: 8.352 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003715/0.1559, allocations: 1.029 MB / 0.5211 GB, free: 7.316 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005254/0.1613, allocations: 1.285 MB / 0.5223 GB, free: 6.023 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003191/0.1645, allocations: 0.8569 MB / 0.5232 GB, free: 5.168 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.006519/0.171, allocations: 4.037 MB / 0.5271 GB, free: 1.109 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.2967/0.4677, allocations: 3.515 MB / 0.5306 GB, free: 5.059 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003108/0.4709, allocations: 1.936 MB / 0.5324 GB, free: 4.922 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003141/0.4741, allocations: 2.123 MB / 0.5345 GB, free: 4.551 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0009472/0.475, allocations: 0.5272 MB / 0.535 GB, free: 4.547 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001717/0.4767, allocations: 0.7265 MB / 0.5357 GB, free: 4.547 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009836/0.4777, allocations: 1.148 MB / 0.5369 GB, free: 4.414 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002532/0.4803, allocations: 2.175 MB / 0.539 GB, free: 3.887 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009207/0.4895, allocations: 6.891 MB / 0.5457 GB, free: 3.215 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.841e-06/0.4895, allocations: 0 / 0.5457 GB, free: 3.215 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.886e-06/0.4895, allocations: 1.531 kB / 0.5457 GB, free: 3.215 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001907/0.4897, allocations: 0 / 0.5457 GB, free: 3.215 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.01428/0.504, allocations: 4.449 MB / 0.5501 GB, free: 1.621 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.388e-05/0.5041, allocations: 8.938 kB / 0.5501 GB, free: 1.621 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001064/0.5052, allocations: 0.511 MB / 0.5506 GB, free: 1.555 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004379/0.5096, allocations: 0.8254 MB / 0.5514 GB, free: 1.359 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004628/0.5142, allocations: 2.475 MB / 0.5538 GB, free: 0.6211 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001996/0.5144, allocations: 253.3 kB / 0.554 GB, free: 0.6133 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005742/0.515, allocations: 335.9 kB / 0.5544 GB, free: 0.5156 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009103/0.5241, allocations: 4.508 MB / 0.5588 GB, free: 13.87 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.673e-05/0.5242, allocations: 8.844 kB / 0.5588 GB, free: 13.87 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003429/0.5246, allocations: 132.9 kB / 0.5589 GB, free: 13.77 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001563/0.5247, allocations: 161.8 kB / 0.559 GB, free: 13.74 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007098/0.5318, allocations: 3.811 MB / 0.5628 GB, free: 11.71 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02384/0.5557, allocations: 14.03 MB / 0.5765 GB, free: 480 kB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00682/0.5626, allocations: 6.149 MB / 0.5825 GB, free: 9.531 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002067/0.5647, allocations: 1.177 MB / 0.5836 GB, free: 8.352 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006479/0.5712, allocations: 3.295 MB / 0.5868 GB, free: 5.02 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.058e-05/0.5712, allocations: 47.56 kB / 0.5869 GB, free: 4.965 MB / 398.1 MB Notification: Performance of pre-optimization done (n=115): time 2.926e-06/0.5713, allocations: 0 / 0.5869 GB, free: 4.965 MB / 398.1 MB Notification: Performance of matching and sorting (n=118): time 0.01168/0.5829, allocations: 5.226 MB / 0.592 GB, free: 15.57 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.837e-05/0.583, allocations: 64.41 kB / 0.5921 GB, free: 15.49 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003435/0.5865, allocations: 1.682 MB / 0.5937 GB, free: 13.8 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001559/0.5866, allocations: 53.64 kB / 0.5938 GB, free: 13.75 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001133/0.5878, allocations: 1.499 MB / 0.5952 GB, free: 12.23 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000423/0.5882, allocations: 416.5 kB / 0.5956 GB, free: 11.83 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005445/0.5888, allocations: 287.3 kB / 0.5959 GB, free: 11.54 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001089/0.5889, allocations: 308.8 kB / 0.5962 GB, free: 11.24 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001183/0.5901, allocations: 0.6129 MB / 0.5968 GB, free: 10.62 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001513/0.5916, allocations: 1.138 MB / 0.5979 GB, free: 9.273 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002799/0.5944, allocations: 1.869 MB / 0.5997 GB, free: 7.246 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.698e-05/0.5945, allocations: 11.03 kB / 0.5997 GB, free: 7.238 MB / 414.1 MB Notification: Performance of matching and sorting (n=203) (initialization): time 0.004291/0.5988, allocations: 2.193 MB / 0.6019 GB, free: 5.105 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.786e-05/0.5988, allocations: 12 kB / 0.6019 GB, free: 5.094 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.655e-05/0.5988, allocations: 16.38 kB / 0.6019 GB, free: 5.078 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004401/0.5993, allocations: 134.5 kB / 0.602 GB, free: 4.938 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001558/0.6009, allocations: 393.1 kB / 0.6024 GB, free: 4.578 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003434/0.6043, allocations: 3.365 MB / 0.6057 GB, free: 0.957 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001839/0.6062, allocations: 71.95 kB / 0.6058 GB, free: 0.8867 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002121/0.6064, allocations: 72 kB / 0.6058 GB, free: 0.8164 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.002738/0.6091, allocations: 1.046 MB / 0.6068 GB, free: 15.79 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007664/0.6099, allocations: 177.8 kB / 0.607 GB, free: 15.62 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004582/0.6145, allocations: 2.043 MB / 0.609 GB, free: 13.54 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.417e-05/0.6145, allocations: 12 kB / 0.609 GB, free: 13.52 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.504e-05/0.6146, allocations: 15.92 kB / 0.609 GB, free: 13.51 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.707e-05/0.6146, allocations: 3.984 kB / 0.609 GB, free: 13.5 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01113/0.6257, allocations: 4.781 MB / 0.6137 GB, free: 8.648 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.738e-06/0.6258, allocations: 0 / 0.6137 GB, free: 8.648 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007708/0.6266, allocations: 168 kB / 0.6139 GB, free: 8.492 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001365/0.6279, allocations: 440.6 kB / 0.6143 GB, free: 8.051 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001462/0.6281, allocations: 35.98 kB / 0.6143 GB, free: 8.016 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01158/0.6397, allocations: 11.07 MB / 0.6251 GB, free: 12.31 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.878e-06/0.6397, allocations: 0 / 0.6251 GB, free: 12.31 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005542/0.6453, allocations: 2.861 MB / 0.6279 GB, free: 9.383 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001115/0.6464, allocations: 398.7 kB / 0.6283 GB, free: 8.973 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005696/0.647, allocations: 28 kB / 0.6283 GB, free: 8.945 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001197/0.6482, allocations: 63.94 kB / 0.6284 GB, free: 8.883 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00028/0.6485, allocations: 95.5 kB / 0.6285 GB, free: 8.793 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.357e-05/0.6486, allocations: 35.98 kB / 0.6285 GB, free: 8.758 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002469/0.6511, allocations: 1.15 MB / 0.6296 GB, free: 7.613 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.6511, allocations: 2.625 kB / 0.6296 GB, free: 7.613 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.002744/0.6539, allocations: 0.543 MB / 0.6302 GB, free: 7.07 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.005254/0.6591, allocations: 3.47 MB / 0.6336 GB, free: 3.539 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.00324/0.6624, allocations: 1.845 MB / 0.6354 GB, free: 1.703 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 4.949e-06/0.6624, allocations: 64 / 0.6354 GB, free: 1.703 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002431/0.6649, allocations: 1.498 MB / 0.6368 GB, free: 160 kB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003204/0.6681, allocations: 0.53 MB / 0.6373 GB, free: 15.63 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03525/0.7033, allocations: 18.88 MB / 0.6558 GB, free: 12.15 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002386/0.7058, allocations: 2.358 MB / 0.6581 GB, free: 9.77 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.001383/0.7072, allocations: 388 kB / 0.6585 GB, free: 9.387 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001468/0.7086, allocations: 1.148 MB / 0.6596 GB, free: 8.238 MB / 478.1 MB Notification: Performance of SimCode: time 1.072e-06/0.7087, allocations: 0 / 0.6596 GB, free: 8.238 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1002/0.8088, allocations: 51.26 MB / 0.7096 GB, free: 5.383 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.73/13.54, allocations: 10.73 kB / 0.7096 GB, free: 5.375 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)