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: translateModel(HanserModelica.InductionMachines.IMC_Inverter1,tolerance=1e-08,outputFormat="empty",numberOfIntervals=40000,variableFilter="",fileNamePrefix="HanserModelica_HanserModelica.InductionMachines.IMC_Inverter1") translateModel(HanserModelica.InductionMachines.IMC_Inverter1,tolerance=1e-08,outputFormat="empty",numberOfIntervals=40000,variableFilter="",fileNamePrefix="HanserModelica_HanserModelica.InductionMachines.IMC_Inverter1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.006615/0.006615, allocations: 99.66 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.385/1.385, allocations: 222.9 MB / 239.4 MB, free: 4.559 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.001564/0.001564, allocations: 192.5 kB / 289.7 MB, free: 2.262 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03378/0.03378, allocations: 8.785 MB / 348.6 MB, free: 4.625 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001498/0.001498, allocations: 79.88 kB / 463.9 MB, free: 13.1 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.121/0.1225, allocations: 51.57 MB / 0.5034 GB, free: 9.496 MB / 350.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.InductionMachines.IMC_Inverter1): time 0.01384/0.1363, allocations: 13.13 MB / 0.5162 GB, free: 12.3 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.009443/0.1458, allocations: 4.337 MB / 0.5204 GB, free: 7.953 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002558/0.1484, allocations: 87.62 kB / 0.5205 GB, free: 7.867 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003696/0.1522, allocations: 1.021 MB / 0.5215 GB, free: 6.84 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005552/0.1578, allocations: 1.285 MB / 0.5228 GB, free: 5.547 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002701/0.1605, allocations: 0.8495 MB / 0.5236 GB, free: 4.695 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.006103/0.1666, allocations: 4.043 MB / 0.5276 GB, free: 0.6328 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.2967/0.4633, allocations: 3.512 MB / 0.531 GB, free: 5.57 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003783/0.4672, allocations: 1.937 MB / 0.5329 GB, free: 5.438 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005033/0.4722, allocations: 2.132 MB / 0.535 GB, free: 5.062 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002496/0.4748, allocations: 0.5249 MB / 0.5355 GB, free: 5.062 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003299/0.4781, allocations: 0.7234 MB / 0.5362 GB, free: 5.062 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001432/0.4795, allocations: 1.145 MB / 0.5373 GB, free: 4.93 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005102/0.4847, allocations: 2.172 MB / 0.5394 GB, free: 4.402 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01177/0.4964, allocations: 6.894 MB / 0.5462 GB, free: 3.734 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.765e-06/0.4965, allocations: 0.5 kB / 0.5462 GB, free: 3.734 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.445e-06/0.4965, allocations: 0.6875 kB / 0.5462 GB, free: 3.734 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0002601/0.4968, allocations: 0 / 0.5462 GB, free: 3.734 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.01614/0.5129, allocations: 4.442 MB / 0.5505 GB, free: 2.141 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.232e-05/0.513, allocations: 9.438 kB / 0.5505 GB, free: 2.141 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004786/0.5178, allocations: 0.8234 MB / 0.5513 GB, free: 1.949 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006468/0.5243, allocations: 2.482 MB / 0.5537 GB, free: 1.148 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003036/0.5246, allocations: 253.7 kB / 0.554 GB, free: 1.035 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001291/0.5259, allocations: 326.8 kB / 0.5543 GB, free: 0.9297 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01123/0.5372, allocations: 4.512 MB / 0.5587 GB, free: 14.28 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.977e-05/0.5373, allocations: 3.906 kB / 0.5587 GB, free: 14.28 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003578/0.5376, allocations: 137.2 kB / 0.5588 GB, free: 14.17 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001633/0.5378, allocations: 162 kB / 0.559 GB, free: 14.14 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00786/0.5457, allocations: 3.807 MB / 0.5627 GB, free: 12.12 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03058/0.5763, allocations: 14.02 MB / 0.5764 GB, free: 0.8672 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007726/0.5841, allocations: 6.137 MB / 0.5824 GB, free: 9.934 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002334/0.5864, allocations: 1.184 MB / 0.5835 GB, free: 8.75 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007781/0.5943, allocations: 3.307 MB / 0.5868 GB, free: 5.406 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.907e-05/0.5944, allocations: 43.56 kB / 0.5868 GB, free: 5.355 MB / 398.1 MB Notification: Performance of pre-optimization done (n=115): time 3.737e-06/0.5944, allocations: 0 / 0.5868 GB, free: 5.355 MB / 398.1 MB Notification: Performance of matching and sorting (n=118): time 0.01221/0.6066, allocations: 5.223 MB / 0.5919 GB, free: 15.96 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.86e-05/0.6067, allocations: 64.41 kB / 0.592 GB, free: 15.89 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003863/0.6105, allocations: 1.689 MB / 0.5936 GB, free: 14.2 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000108/0.6107, allocations: 49.7 kB / 0.5937 GB, free: 14.14 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001221/0.6119, allocations: 1.484 MB / 0.5951 GB, free: 12.64 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004455/0.6124, allocations: 422.6 kB / 0.5955 GB, free: 12.23 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005414/0.6129, allocations: 299.2 kB / 0.5958 GB, free: 11.93 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001219/0.613, allocations: 301.1 kB / 0.5961 GB, free: 11.64 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001118/0.6142, allocations: 0.6246 MB / 0.5967 GB, free: 11.01 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001469/0.6157, allocations: 1.133 MB / 0.5978 GB, free: 9.668 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002689/0.6184, allocations: 1.864 MB / 0.5996 GB, free: 7.645 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.826e-05/0.6184, allocations: 12 kB / 0.5996 GB, free: 7.633 MB / 414.1 MB Notification: Performance of matching and sorting (n=203) (initialization): time 0.004106/0.6225, allocations: 2.184 MB / 0.6018 GB, free: 5.508 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.376e-05/0.6225, allocations: 15.09 kB / 0.6018 GB, free: 5.496 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.909e-05/0.6226, allocations: 20 kB / 0.6018 GB, free: 5.477 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004693/0.6231, allocations: 134.5 kB / 0.6019 GB, free: 5.336 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001462/0.6245, allocations: 391.6 kB / 0.6023 GB, free: 4.977 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003151/0.6277, allocations: 3.368 MB / 0.6056 GB, free: 1.352 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001884/0.6296, allocations: 79.81 kB / 0.6057 GB, free: 1.273 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001686/0.6298, allocations: 71.98 kB / 0.6057 GB, free: 1.203 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.002663/0.6325, allocations: 1.036 MB / 0.6068 GB, free: 184 kB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000606/0.6331, allocations: 177.8 kB / 0.6069 GB, free: 4 kB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004193/0.6373, allocations: 2.045 MB / 0.6089 GB, free: 13.92 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.509e-05/0.6373, allocations: 12 kB / 0.6089 GB, free: 13.91 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.478e-05/0.6373, allocations: 8 kB / 0.6089 GB, free: 13.9 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.42e-05/0.6374, allocations: 11.91 kB / 0.609 GB, free: 13.89 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01135/0.6487, allocations: 4.776 MB / 0.6136 GB, free: 9.039 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.884e-06/0.6487, allocations: 192 / 0.6136 GB, free: 9.039 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007261/0.6495, allocations: 167.8 kB / 0.6138 GB, free: 8.883 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00121/0.6507, allocations: 442.6 kB / 0.6142 GB, free: 8.438 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001077/0.6508, allocations: 35.98 kB / 0.6142 GB, free: 8.402 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01163/0.6625, allocations: 11.07 MB / 0.6251 GB, free: 12.7 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.276e-06/0.6625, allocations: 0 / 0.6251 GB, free: 12.7 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005787/0.6683, allocations: 2.865 MB / 0.6278 GB, free: 9.77 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001489/0.6698, allocations: 398.7 kB / 0.6282 GB, free: 9.355 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008229/0.6707, allocations: 28 kB / 0.6283 GB, free: 9.328 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001399/0.6721, allocations: 59.95 kB / 0.6283 GB, free: 9.27 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003514/0.6724, allocations: 100.3 kB / 0.6284 GB, free: 9.176 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001053/0.6726, allocations: 35.98 kB / 0.6284 GB, free: 9.141 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002959/0.6755, allocations: 1.15 MB / 0.6296 GB, free: 7.996 MB / 446.1 MB Notification: Performance of sort global known variables: time 6.71e-07/0.6755, allocations: 0 / 0.6296 GB, free: 7.996 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.003471/0.679, allocations: 0.543 MB / 0.6301 GB, free: 7.453 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.0004907/0.6795, allocations: 153.8 kB / 0.6302 GB, free: 7.301 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.003469/0.683, allocations: 1.852 MB / 0.6321 GB, free: 5.465 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 7.284e-06/0.683, allocations: 2.719 kB / 0.6321 GB, free: 5.465 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002526/0.6855, allocations: 1.498 MB / 0.6335 GB, free: 3.918 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003081/0.6886, allocations: 0.5305 MB / 0.634 GB, free: 3.391 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01311/0.7018, allocations: 5.644 MB / 0.6395 GB, free: 13.72 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003269/0.7051, allocations: 2.366 MB / 0.6419 GB, free: 11.33 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.001553/0.7066, allocations: 388 kB / 0.6422 GB, free: 10.95 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004333/0.7071, allocations: 119.4 kB / 0.6423 GB, free: 10.83 MB / 462.1 MB Notification: Performance of SimCode: time 1.152e-06/0.7071, allocations: 0 / 0.6423 GB, free: 10.83 MB / 462.1 MB Notification: Performance of Templates: time 0.04968/0.7568, allocations: 28.09 MB / 0.6698 GB, free: 15.07 MB / 494.1 MB make -j1 -f HanserModelica_HanserModelica.InductionMachines.IMC_Inverter1.makefile (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 & ./HanserModelica_HanserModelica.InductionMachines.IMC_Inverter1 -abortSlowSimulation -alarm=480 -lv LOG_STATS > HanserModelica_HanserModelica.InductionMachines.IMC_Inverter1.pipe 2>&1)