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.001043/0.001043, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.25/1.25, allocations: 222.9 MB / 238.8 MB, free: 4.754 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.001295/0.001295, allocations: 188.5 kB / 289.1 MB, free: 2.496 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03155/0.03155, allocations: 8.792 MB / 348.1 MB, free: 4.875 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001273/0.001273, allocations: 72.23 kB / 410.4 MB, free: 42.48 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1023/0.1036, allocations: 51.56 MB / 461.9 MB, free: 14.88 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.InductionMachines.IMC_Inverter1): time 0.0131/0.1167, allocations: 13 MB / 474.9 MB, free: 1.809 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.008552/0.1253, allocations: 4.283 MB / 479.2 MB, free: 13.51 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003307/0.1287, allocations: 79.69 kB / 479.3 MB, free: 13.43 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003259/0.132, allocations: 0.9018 MB / 480.2 MB, free: 12.53 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004333/0.1364, allocations: 1.166 MB / 481.4 MB, free: 11.36 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002318/0.1387, allocations: 0.795 MB / 482.2 MB, free: 10.56 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.006074/0.1448, allocations: 4.312 MB / 486.5 MB, free: 6.238 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003614/0.1485, allocations: 2.916 MB / 489.4 MB, free: 3.25 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002184/0.1507, allocations: 1.541 MB / 490.9 MB, free: 1.703 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001956/0.1526, allocations: 1.961 MB / 492.9 MB, free: 15.73 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004732/0.1531, allocations: 316 kB / 493.2 MB, free: 15.43 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001138/0.1543, allocations: 0.5076 MB / 493.7 MB, free: 14.92 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006885/0.155, allocations: 0.9226 MB / 494.6 MB, free: 13.99 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001975/0.1569, allocations: 1.936 MB / 496.6 MB, free: 12.05 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005733/0.1627, allocations: 6.671 MB / 0.4915 GB, free: 5.355 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.692e-06/0.1627, allocations: 3.984 kB / 0.4915 GB, free: 5.352 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.873e-06/0.1627, allocations: 0 / 0.4915 GB, free: 5.352 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0001703/0.1629, allocations: 4 kB / 0.4915 GB, free: 5.348 MB / 334.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.01198/0.1749, allocations: 4.43 MB / 0.4958 GB, free: 0.8477 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.743e-05/0.175, allocations: 8.031 kB / 0.4958 GB, free: 0.8398 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004337/0.1793, allocations: 0.8279 MB / 0.4966 GB, free: 8 kB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005249/0.1846, allocations: 2.36 MB / 0.4989 GB, free: 13.59 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002334/0.1849, allocations: 255.1 kB / 0.4991 GB, free: 13.34 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009109/0.1858, allocations: 332 kB / 0.4995 GB, free: 13.02 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008519/0.1943, allocations: 4.515 MB / 0.5039 GB, free: 8.457 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.488e-05/0.1944, allocations: 3.938 kB / 0.5039 GB, free: 8.453 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000286/0.1947, allocations: 136 kB / 0.504 GB, free: 8.32 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001408/0.1949, allocations: 158.7 kB / 0.5042 GB, free: 8.164 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006643/0.2015, allocations: 3.813 MB / 0.5079 GB, free: 4.344 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02844/0.23, allocations: 14.19 MB / 0.5217 GB, free: 5.738 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.2165/0.4465, allocations: 6.142 MB / 0.5277 GB, free: 63.3 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002309/0.4489, allocations: 1.201 MB / 0.5289 GB, free: 63.28 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006224/0.4551, allocations: 3.306 MB / 0.5321 GB, free: 62.71 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.108e-05/0.4552, allocations: 43.05 kB / 0.5322 GB, free: 62.67 MB / 366.1 MB Notification: Performance of pre-optimization done (n=115): time 4.028e-06/0.4552, allocations: 0.625 kB / 0.5322 GB, free: 62.67 MB / 366.1 MB Notification: Performance of matching and sorting (n=118): time 0.01043/0.4657, allocations: 5.236 MB / 0.5373 GB, free: 61.24 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.958e-05/0.4657, allocations: 64.78 kB / 0.5374 GB, free: 61.18 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002664/0.4684, allocations: 1.694 MB / 0.539 GB, free: 60.99 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001224/0.4685, allocations: 46.08 kB / 0.5391 GB, free: 60.96 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009642/0.4695, allocations: 1.487 MB / 0.5405 GB, free: 60.23 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000313/0.4698, allocations: 419.6 kB / 0.5409 GB, free: 59.97 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000419/0.4703, allocations: 289 kB / 0.5412 GB, free: 59.94 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 5.419e-05/0.4703, allocations: 302.4 kB / 0.5415 GB, free: 59.64 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001055/0.4714, allocations: 0.6273 MB / 0.5421 GB, free: 59.41 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00124/0.4726, allocations: 1.138 MB / 0.5432 GB, free: 58.55 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002424/0.4751, allocations: 1.865 MB / 0.545 GB, free: 57.33 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.241e-05/0.4751, allocations: 4.375 kB / 0.545 GB, free: 57.33 MB / 366.1 MB Notification: Performance of matching and sorting (n=203) (initialization): time 0.003369/0.4785, allocations: 2.193 MB / 0.5472 GB, free: 56.32 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.333e-05/0.4785, allocations: 11.75 kB / 0.5472 GB, free: 56.32 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.875e-05/0.4786, allocations: 18.23 kB / 0.5472 GB, free: 56.32 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003862/0.4789, allocations: 137.8 kB / 0.5473 GB, free: 56.27 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001391/0.4803, allocations: 391.8 kB / 0.5477 GB, free: 56.23 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002002/0.4824, allocations: 3.088 MB / 0.5507 GB, free: 53.31 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001272/0.4836, allocations: 82.94 kB / 0.5508 GB, free: 53.27 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001397/0.4838, allocations: 71.84 kB / 0.5509 GB, free: 53.26 MB / 366.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.001703/0.4855, allocations: 1.039 MB / 0.5519 GB, free: 52.67 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002781/0.4858, allocations: 176.5 kB / 0.552 GB, free: 52.58 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002922/0.4887, allocations: 2.047 MB / 0.554 GB, free: 51.55 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.416e-06/0.4887, allocations: 15.84 kB / 0.5541 GB, free: 51.55 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.377e-06/0.4888, allocations: 3.969 kB / 0.5541 GB, free: 51.55 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.229e-05/0.4888, allocations: 8.188 kB / 0.5541 GB, free: 51.55 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005986/0.4948, allocations: 4.779 MB / 0.5587 GB, free: 48.94 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.38e-06/0.4948, allocations: 1.938 kB / 0.5587 GB, free: 48.94 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007111/0.4955, allocations: 166.2 kB / 0.5589 GB, free: 48.89 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001051/0.4966, allocations: 444.2 kB / 0.5593 GB, free: 48.65 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.298e-05/0.4967, allocations: 35.36 kB / 0.5594 GB, free: 48.62 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007124/0.5038, allocations: 10.1 MB / 0.5692 GB, free: 39.5 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.645e-06/0.5038, allocations: 0 / 0.5692 GB, free: 39.5 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003975/0.5078, allocations: 2.861 MB / 0.572 GB, free: 36.91 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008589/0.5087, allocations: 386.8 kB / 0.5724 GB, free: 36.51 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002076/0.5089, allocations: 39.92 kB / 0.5724 GB, free: 36.47 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007647/0.5097, allocations: 59.95 kB / 0.5725 GB, free: 36.41 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002513/0.51, allocations: 101 kB / 0.5726 GB, free: 36.31 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.178e-05/0.51, allocations: 32 kB / 0.5726 GB, free: 36.28 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001345/0.5114, allocations: 1.162 MB / 0.5737 GB, free: 35.12 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.5114, allocations: 0 / 0.5737 GB, free: 35.12 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001885/0.5133, allocations: 0.5416 MB / 0.5743 GB, free: 34.59 MB / 366.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.0002831/0.5136, allocations: 161.8 kB / 0.5744 GB, free: 34.43 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002432/0.516, allocations: 1.83 MB / 0.5762 GB, free: 32.55 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.008e-06/0.516, allocations: 0 / 0.5762 GB, free: 32.55 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001725/0.5178, allocations: 1.489 MB / 0.5777 GB, free: 31 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002148/0.5199, allocations: 0.5018 MB / 0.5782 GB, free: 30.52 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008853/0.5288, allocations: 7.085 MB / 0.5851 GB, free: 23.44 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001474/0.5303, allocations: 2.362 MB / 0.5874 GB, free: 21.05 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.001402/0.5317, allocations: 388.1 kB / 0.5877 GB, free: 20.67 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002703/0.532, allocations: 119.4 kB / 0.5879 GB, free: 20.55 MB / 366.1 MB Notification: Performance of SimCode: time 8.82e-07/0.532, allocations: 0 / 0.5879 GB, free: 20.55 MB / 366.1 MB Notification: Performance of Templates: time 0.03981/0.5718, allocations: 26.58 MB / 0.6138 GB, free: 10.23 MB / 382.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)