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: translateModel(HanserModelica.InductionMachines.IMC_Inverter2,tolerance=1e-08,outputFormat="empty",numberOfIntervals=70000,variableFilter="",fileNamePrefix="HanserModelica_HanserModelica.InductionMachines.IMC_Inverter2") translateModel(HanserModelica.InductionMachines.IMC_Inverter2,tolerance=1e-08,outputFormat="empty",numberOfIntervals=70000,variableFilter="",fileNamePrefix="HanserModelica_HanserModelica.InductionMachines.IMC_Inverter2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001104/0.001104, allocations: 104.1 kB / 16.35 MB, free: 5.879 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.395/1.395, allocations: 222.9 MB / 240 MB, free: 4.531 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.001738/0.001738, allocations: 192.5 kB / 290.3 MB, free: 2.258 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03614/0.03614, allocations: 8.804 MB / 349.3 MB, free: 4.613 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001706/0.001706, allocations: 86.05 kB / 412.5 MB, free: 41.77 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08927/0.091, allocations: 51.56 MB / 464.1 MB, free: 13.56 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.InductionMachines.IMC_Inverter2): time 0.01562/0.1066, allocations: 13.15 MB / 477.2 MB, free: 344 kB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.008113/0.1148, allocations: 4.329 MB / 481.6 MB, free: 11.99 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002138/0.117, allocations: 87.69 kB / 481.6 MB, free: 11.91 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002614/0.1196, allocations: 1.021 MB / 482.7 MB, free: 10.88 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00617/0.1258, allocations: 1.289 MB / 484 MB, free: 9.582 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00231/0.1281, allocations: 0.8612 MB / 484.8 MB, free: 8.723 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.004947/0.1331, allocations: 4.039 MB / 488.9 MB, free: 4.672 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003873/0.137, allocations: 3.518 MB / 492.4 MB, free: 1.082 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002644/0.1396, allocations: 1.928 MB / 494.3 MB, free: 15.15 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002589/0.1422, allocations: 2.125 MB / 496.4 MB, free: 13.02 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006151/0.1429, allocations: 0.5273 MB / 497 MB, free: 12.49 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001253/0.1441, allocations: 0.7224 MB / 497.7 MB, free: 11.77 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009341/0.1451, allocations: 1.149 MB / 498.8 MB, free: 10.61 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002206/0.1473, allocations: 2.175 MB / 0.4893 GB, free: 8.43 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008285/0.1556, allocations: 6.89 MB / 0.496 GB, free: 1.52 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.529e-06/0.1556, allocations: 0 / 0.496 GB, free: 1.52 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.724e-06/0.1556, allocations: 0 / 0.496 GB, free: 1.52 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0001494/0.1558, allocations: 0 / 0.496 GB, free: 1.52 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.01142/0.1672, allocations: 4.438 MB / 0.5003 GB, free: 13.01 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.79e-05/0.1673, allocations: 8.031 kB / 0.5003 GB, free: 13 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004246/0.1715, allocations: 0.8318 MB / 0.5011 GB, free: 12.16 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005397/0.177, allocations: 2.473 MB / 0.5036 GB, free: 9.633 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001948/0.1772, allocations: 247.1 kB / 0.5038 GB, free: 9.391 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007156/0.1779, allocations: 344 kB / 0.5041 GB, free: 9.055 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00787/0.1858, allocations: 4.504 MB / 0.5085 GB, free: 4.508 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.575e-05/0.1859, allocations: 4 kB / 0.5085 GB, free: 4.504 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003715/0.1863, allocations: 140 kB / 0.5087 GB, free: 4.367 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000184/0.1865, allocations: 150.7 kB / 0.5088 GB, free: 4.219 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008467/0.1949, allocations: 3.821 MB / 0.5125 GB, free: 400 kB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02514/0.2201, allocations: 14.02 MB / 0.5262 GB, free: 1.957 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.2074/0.4276, allocations: 6.132 MB / 0.5322 GB, free: 59.63 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002355/0.43, allocations: 1.2 MB / 0.5334 GB, free: 59.61 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006329/0.4364, allocations: 3.3 MB / 0.5366 GB, free: 59.04 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.324e-05/0.4364, allocations: 46.83 kB / 0.5366 GB, free: 59 MB / 366.1 MB Notification: Performance of pre-optimization done (n=115): time 3.396e-06/0.4364, allocations: 0 / 0.5366 GB, free: 59 MB / 366.1 MB Notification: Performance of matching and sorting (n=118): time 0.0109/0.4473, allocations: 5.229 MB / 0.5418 GB, free: 57.57 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.913e-05/0.4474, allocations: 69.94 kB / 0.5418 GB, free: 57.5 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00356/0.451, allocations: 1.69 MB / 0.5435 GB, free: 57.32 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001524/0.4511, allocations: 48.36 kB / 0.5435 GB, free: 57.29 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001187/0.4523, allocations: 1.497 MB / 0.545 GB, free: 56.55 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003337/0.4527, allocations: 418.7 kB / 0.5454 GB, free: 56.29 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004552/0.4531, allocations: 289.7 kB / 0.5457 GB, free: 56.26 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 5.393e-05/0.4532, allocations: 303.5 kB / 0.5459 GB, free: 55.96 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00106/0.4543, allocations: 0.6211 MB / 0.5465 GB, free: 55.74 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001301/0.4556, allocations: 1.13 MB / 0.5477 GB, free: 54.88 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002524/0.4581, allocations: 1.876 MB / 0.5495 GB, free: 53.67 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.431e-05/0.4581, allocations: 4.594 kB / 0.5495 GB, free: 53.67 MB / 366.1 MB Notification: Performance of matching and sorting (n=203) (initialization): time 0.003891/0.462, allocations: 2.185 MB / 0.5516 GB, free: 52.69 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.489e-05/0.4621, allocations: 13.09 kB / 0.5516 GB, free: 52.69 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.883e-05/0.4621, allocations: 17.64 kB / 0.5517 GB, free: 52.69 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004357/0.4626, allocations: 136.5 kB / 0.5518 GB, free: 52.64 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001507/0.4641, allocations: 399.1 kB / 0.5522 GB, free: 52.59 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002224/0.4663, allocations: 3.356 MB / 0.5554 GB, free: 49.41 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001682/0.468, allocations: 73.28 kB / 0.5555 GB, free: 49.38 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002433/0.4683, allocations: 75.91 kB / 0.5556 GB, free: 49.37 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.002517/0.4708, allocations: 1.047 MB / 0.5566 GB, free: 48.77 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005258/0.4714, allocations: 180.6 kB / 0.5568 GB, free: 48.68 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003459/0.4748, allocations: 2.042 MB / 0.5588 GB, free: 47.66 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.168e-05/0.4748, allocations: 12.48 kB / 0.5588 GB, free: 47.66 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.342e-05/0.4749, allocations: 15.73 kB / 0.5588 GB, free: 47.65 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.144e-05/0.4749, allocations: 3.797 kB / 0.5588 GB, free: 47.65 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008334/0.4832, allocations: 4.773 MB / 0.5635 GB, free: 45.04 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.217e-06/0.4833, allocations: 3.156 kB / 0.5635 GB, free: 45.04 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007503/0.484, allocations: 163.1 kB / 0.5636 GB, free: 45 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001115/0.4852, allocations: 457.4 kB / 0.5641 GB, free: 44.75 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001038/0.4853, allocations: 35.08 kB / 0.5641 GB, free: 44.73 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008124/0.4934, allocations: 11.05 MB / 0.5749 GB, free: 34.73 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.775e-06/0.4935, allocations: 0 / 0.5749 GB, free: 34.73 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004254/0.4977, allocations: 2.878 MB / 0.5777 GB, free: 32.56 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00101/0.4988, allocations: 397.9 kB / 0.5781 GB, free: 32.15 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000473/0.4992, allocations: 28 kB / 0.5781 GB, free: 32.12 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001027/0.5003, allocations: 62.2 kB / 0.5782 GB, free: 32.07 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002693/0.5006, allocations: 105.5 kB / 0.5783 GB, free: 31.96 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.262e-05/0.5007, allocations: 35.98 kB / 0.5783 GB, free: 31.93 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001764/0.5024, allocations: 1.15 MB / 0.5794 GB, free: 30.78 MB / 366.1 MB Notification: Performance of sort global known variables: time 2e-07/0.5025, allocations: 0 / 0.5794 GB, free: 30.78 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.002162/0.5046, allocations: 0.5419 MB / 0.58 GB, free: 30.24 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.0002825/0.5049, allocations: 157.4 kB / 0.5801 GB, free: 30.08 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002448/0.5074, allocations: 1.845 MB / 0.5819 GB, free: 28.2 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.789e-06/0.5074, allocations: 2.406 kB / 0.5819 GB, free: 28.2 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001803/0.5092, allocations: 1.49 MB / 0.5834 GB, free: 26.64 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002097/0.5113, allocations: 0.5217 MB / 0.5839 GB, free: 26.14 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008446/0.5198, allocations: 5.641 MB / 0.5894 GB, free: 20.5 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001623/0.5214, allocations: 2.361 MB / 0.5917 GB, free: 18.12 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.001262/0.5227, allocations: 392.9 kB / 0.5921 GB, free: 17.75 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002725/0.523, allocations: 123.4 kB / 0.5922 GB, free: 17.63 MB / 366.1 MB Notification: Performance of SimCode: time 9.92e-07/0.523, allocations: 3.938 kB / 0.5922 GB, free: 17.62 MB / 366.1 MB Notification: Performance of Templates: time 0.0459/0.5689, allocations: 27.59 MB / 0.6191 GB, free: 6.332 MB / 382.1 MB make -j1 -f HanserModelica_HanserModelica.InductionMachines.IMC_Inverter2.makefile (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 & ./HanserModelica_HanserModelica.InductionMachines.IMC_Inverter2 -abortSlowSimulation -alarm=480 -s gbode -lv LOG_STATS > HanserModelica_HanserModelica.InductionMachines.IMC_Inverter2.pipe 2>&1)