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.001191/0.001191, allocations: 113.6 kB / 16.37 MB, free: 6.012 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.446/1.446, allocations: 222.9 MB / 240 MB, free: 4.512 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.001315/0.001315, allocations: 192.5 kB / 290.3 MB, free: 2.238 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03447/0.03447, allocations: 8.794 MB / 349.3 MB, free: 4.617 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001713/0.001713, allocations: 77.62 kB / 412.5 MB, free: 41.73 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1121/0.1138, allocations: 51.56 MB / 464.1 MB, free: 13.56 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.InductionMachines.IMC_Inverter1): time 0.01399/0.1279, allocations: 13.13 MB / 477.2 MB, free: 364 kB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.009789/0.1377, allocations: 4.337 MB / 481.6 MB, free: 12 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003277/0.1411, allocations: 83.69 kB / 481.6 MB, free: 11.92 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004091/0.1452, allocations: 1.029 MB / 482.7 MB, free: 10.89 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006045/0.1512, allocations: 1.289 MB / 484 MB, free: 9.59 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002974/0.1542, allocations: 0.8573 MB / 484.8 MB, free: 8.734 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.006299/0.1606, allocations: 4.039 MB / 488.9 MB, free: 4.684 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005564/0.1661, allocations: 3.529 MB / 492.4 MB, free: 1.082 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003732/0.1699, allocations: 1.912 MB / 494.3 MB, free: 15.16 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004027/0.1739, allocations: 2.129 MB / 496.4 MB, free: 13.03 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001152/0.1751, allocations: 0.5312 MB / 497 MB, free: 12.5 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002066/0.1772, allocations: 0.7263 MB / 497.7 MB, free: 11.77 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001067/0.1783, allocations: 1.138 MB / 498.8 MB, free: 10.63 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004987/0.1833, allocations: 2.175 MB / 0.4893 GB, free: 8.445 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007459/0.1908, allocations: 6.886 MB / 0.496 GB, free: 1.539 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.616e-06/0.1908, allocations: 3.984 kB / 0.496 GB, free: 1.535 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.214e-06/0.1908, allocations: 0 / 0.496 GB, free: 1.535 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0001373/0.191, allocations: 4 kB / 0.496 GB, free: 1.531 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.01026/0.2012, allocations: 4.438 MB / 0.5003 GB, free: 13.02 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.34e-05/0.2013, allocations: 15.95 kB / 0.5003 GB, free: 13.01 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003941/0.2052, allocations: 0.8201 MB / 0.5011 GB, free: 12.18 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004359/0.2096, allocations: 2.477 MB / 0.5036 GB, free: 9.648 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000161/0.2098, allocations: 251.1 kB / 0.5038 GB, free: 9.402 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004774/0.2103, allocations: 332 kB / 0.5041 GB, free: 9.078 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00728/0.2176, allocations: 4.511 MB / 0.5085 GB, free: 4.523 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.563e-05/0.2176, allocations: 0 / 0.5085 GB, free: 4.523 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000309/0.2179, allocations: 144 kB / 0.5087 GB, free: 4.383 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001737/0.2181, allocations: 154.7 kB / 0.5088 GB, free: 4.23 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005926/0.2241, allocations: 3.813 MB / 0.5125 GB, free: 420 kB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01992/0.244, allocations: 14.01 MB / 0.5262 GB, free: 1.98 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.2709/0.5149, allocations: 6.141 MB / 0.5322 GB, free: 59.98 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00257/0.5176, allocations: 1.199 MB / 0.5334 GB, free: 59.97 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006383/0.524, allocations: 3.301 MB / 0.5366 GB, free: 59.39 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.668e-05/0.5241, allocations: 45.91 kB / 0.5366 GB, free: 59.36 MB / 366.1 MB Notification: Performance of pre-optimization done (n=115): time 3.206e-06/0.5241, allocations: 0 / 0.5366 GB, free: 59.36 MB / 366.1 MB Notification: Performance of matching and sorting (n=118): time 0.01166/0.5358, allocations: 5.233 MB / 0.5418 GB, free: 57.93 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.305e-05/0.5358, allocations: 64.78 kB / 0.5418 GB, free: 57.86 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003301/0.5391, allocations: 1.692 MB / 0.5435 GB, free: 57.68 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001756/0.5393, allocations: 45.67 kB / 0.5435 GB, free: 57.64 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001287/0.5406, allocations: 1.494 MB / 0.545 GB, free: 56.8 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.00039/0.541, allocations: 422.2 kB / 0.5454 GB, free: 56.48 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000499/0.5415, allocations: 284.9 kB / 0.5456 GB, free: 56.34 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 5.509e-05/0.5416, allocations: 302.7 kB / 0.5459 GB, free: 56.05 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001135/0.5427, allocations: 0.6256 MB / 0.5465 GB, free: 55.81 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00131/0.5441, allocations: 1.134 MB / 0.5477 GB, free: 54.95 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002514/0.5466, allocations: 1.871 MB / 0.5495 GB, free: 53.75 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.334e-05/0.5466, allocations: 4.344 kB / 0.5495 GB, free: 53.75 MB / 366.1 MB Notification: Performance of matching and sorting (n=203) (initialization): time 0.004291/0.5509, allocations: 2.184 MB / 0.5516 GB, free: 52.77 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.456e-05/0.551, allocations: 14.56 kB / 0.5516 GB, free: 52.77 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.297e-05/0.551, allocations: 16.28 kB / 0.5516 GB, free: 52.77 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004623/0.5515, allocations: 139.9 kB / 0.5518 GB, free: 52.71 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001634/0.5531, allocations: 396.6 kB / 0.5522 GB, free: 52.68 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002679/0.5558, allocations: 3.362 MB / 0.5554 GB, free: 49.49 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001614/0.5575, allocations: 70.5 kB / 0.5555 GB, free: 49.46 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001347/0.5576, allocations: 70.23 kB / 0.5556 GB, free: 49.45 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.002254/0.5599, allocations: 1.055 MB / 0.5566 GB, free: 48.85 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004169/0.5603, allocations: 179.7 kB / 0.5568 GB, free: 48.76 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00323/0.5635, allocations: 2.046 MB / 0.5588 GB, free: 47.73 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.769e-06/0.5635, allocations: 11.88 kB / 0.5588 GB, free: 47.73 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.075e-06/0.5636, allocations: 3.938 kB / 0.5588 GB, free: 47.73 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.195e-05/0.5636, allocations: 9.938 kB / 0.5588 GB, free: 47.73 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007219/0.5708, allocations: 4.773 MB / 0.5635 GB, free: 45.16 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.326e-06/0.5708, allocations: 2.219 kB / 0.5635 GB, free: 45.16 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006915/0.5715, allocations: 165.3 kB / 0.5636 GB, free: 45.11 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001061/0.5726, allocations: 449.2 kB / 0.564 GB, free: 44.86 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.958e-05/0.5727, allocations: 31.45 kB / 0.5641 GB, free: 44.84 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008642/0.5813, allocations: 11.06 MB / 0.5749 GB, free: 34.84 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.44e-06/0.5814, allocations: 3.75 kB / 0.5749 GB, free: 34.84 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004803/0.5862, allocations: 2.872 MB / 0.5777 GB, free: 32.71 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001226/0.5875, allocations: 395.8 kB / 0.5781 GB, free: 32.31 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000218/0.5877, allocations: 28 kB / 0.5781 GB, free: 32.28 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007815/0.5885, allocations: 61.39 kB / 0.5781 GB, free: 32.22 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002967/0.5888, allocations: 104.7 kB / 0.5782 GB, free: 32.12 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.823e-05/0.5889, allocations: 39.98 kB / 0.5783 GB, free: 32.08 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001532/0.5904, allocations: 1.15 MB / 0.5794 GB, free: 30.93 MB / 366.1 MB Notification: Performance of sort global known variables: time 2.3e-07/0.5904, allocations: 0 / 0.5794 GB, free: 30.93 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.002557/0.593, allocations: 0.5391 MB / 0.5799 GB, free: 30.39 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.000484/0.5935, allocations: 166.9 kB / 0.5801 GB, free: 30.23 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.003042/0.5965, allocations: 1.842 MB / 0.5819 GB, free: 28.34 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 6.732e-06/0.5966, allocations: 0 / 0.5819 GB, free: 28.34 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002036/0.5986, allocations: 1.485 MB / 0.5833 GB, free: 26.8 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002223/0.6008, allocations: 0.5356 MB / 0.5839 GB, free: 26.29 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009525/0.6104, allocations: 5.644 MB / 0.5894 GB, free: 20.65 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001779/0.6122, allocations: 2.36 MB / 0.5917 GB, free: 18.27 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.001502/0.6137, allocations: 390.7 kB / 0.5921 GB, free: 17.89 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004206/0.6142, allocations: 123.4 kB / 0.5922 GB, free: 17.77 MB / 366.1 MB Notification: Performance of SimCode: time 1.153e-06/0.6142, allocations: 0 / 0.5922 GB, free: 17.77 MB / 366.1 MB Notification: Performance of Templates: time 0.05305/0.6672, allocations: 27.58 MB / 0.6191 GB, free: 6.477 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 -s cvode -lv LOG_STATS > HanserModelica_HanserModelica.InductionMachines.IMC_Inverter1.pipe 2>&1)