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.001241/0.001241, 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.234/1.234, 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.001237/0.001237, allocations: 196.3 kB / 289.1 MB, free: 2.488 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03153/0.03153, allocations: 8.787 MB / 348.1 MB, free: 4.867 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001219/0.001219, allocations: 72.67 kB / 410.4 MB, free: 42.45 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08531/0.08654, allocations: 51.56 MB / 461.9 MB, free: 14.86 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.InductionMachines.IMC_Inverter2): time 0.01265/0.09922, allocations: 13 MB / 474.9 MB, free: 1.789 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.007027/0.1063, allocations: 4.291 MB / 479.2 MB, free: 13.48 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001241/0.1076, allocations: 83.62 kB / 479.3 MB, free: 13.4 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001917/0.1095, allocations: 0.9018 MB / 480.2 MB, free: 12.5 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002323/0.1119, allocations: 1.171 MB / 481.4 MB, free: 11.32 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001401/0.1133, allocations: 0.7917 MB / 482.2 MB, free: 10.53 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.003637/0.1169, allocations: 4.316 MB / 486.5 MB, free: 6.203 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00294/0.1199, allocations: 2.919 MB / 489.4 MB, free: 3.211 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001667/0.1215, allocations: 1.541 MB / 491 MB, free: 1.664 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001763/0.1233, allocations: 1.957 MB / 492.9 MB, free: 15.7 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000397/0.1237, allocations: 312 kB / 493.2 MB, free: 15.39 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009651/0.1247, allocations: 0.5153 MB / 493.7 MB, free: 14.88 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006507/0.1254, allocations: 0.9265 MB / 494.7 MB, free: 13.95 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001633/0.127, allocations: 1.932 MB / 496.6 MB, free: 12.01 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004699/0.1317, allocations: 6.675 MB / 0.4915 GB, free: 5.312 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.577e-06/0.1317, allocations: 0 / 0.4915 GB, free: 5.312 MB / 334.1 MB Notification: Performance of FrontEnd: time 7.52e-07/0.1317, allocations: 0 / 0.4915 GB, free: 5.312 MB / 334.1 MB Notification: Performance of Transformations before backend: time 8.527e-05/0.1318, allocations: 0 / 0.4915 GB, free: 5.312 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.01168/0.1435, allocations: 4.43 MB / 0.4958 GB, free: 0.8125 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.1e-05/0.1436, allocations: 12.03 kB / 0.4958 GB, free: 0.8008 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004193/0.1478, allocations: 0.8279 MB / 0.4966 GB, free: 15.96 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003961/0.1518, allocations: 2.368 MB / 0.4989 GB, free: 13.54 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001587/0.1519, allocations: 243.1 kB / 0.4992 GB, free: 13.3 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000473/0.1524, allocations: 340 kB / 0.4995 GB, free: 12.97 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007941/0.1604, allocations: 4.508 MB / 0.5039 GB, free: 8.422 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.674e-05/0.1605, allocations: 3.984 kB / 0.5039 GB, free: 8.418 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003012/0.1608, allocations: 140 kB / 0.504 GB, free: 8.281 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001461/0.161, allocations: 158.7 kB / 0.5042 GB, free: 8.125 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005917/0.1669, allocations: 3.813 MB / 0.5079 GB, free: 4.305 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02122/0.1881, allocations: 14.2 MB / 0.5218 GB, free: 5.691 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.1781/0.3663, allocations: 6.125 MB / 0.5277 GB, free: 63.72 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002053/0.3684, allocations: 1.207 MB / 0.5289 GB, free: 63.7 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004903/0.3733, allocations: 3.303 MB / 0.5322 GB, free: 63.12 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.707e-05/0.3734, allocations: 47.34 kB / 0.5322 GB, free: 63.08 MB / 366.1 MB Notification: Performance of pre-optimization done (n=115): time 2.735e-06/0.3734, allocations: 3.812 kB / 0.5322 GB, free: 63.08 MB / 366.1 MB Notification: Performance of matching and sorting (n=118): time 0.01001/0.3834, allocations: 5.228 MB / 0.5373 GB, free: 61.65 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.867e-05/0.3835, allocations: 69.28 kB / 0.5374 GB, free: 61.59 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002791/0.3863, allocations: 1.69 MB / 0.539 GB, free: 61.4 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001148/0.3864, allocations: 45.95 kB / 0.5391 GB, free: 61.37 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001024/0.3874, allocations: 1.487 MB / 0.5405 GB, free: 60.5 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003015/0.3877, allocations: 421 kB / 0.5409 GB, free: 60.18 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000424/0.3882, allocations: 290.6 kB / 0.5412 GB, free: 60.04 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 6.329e-05/0.3882, allocations: 301.1 kB / 0.5415 GB, free: 59.74 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001065/0.3893, allocations: 0.6226 MB / 0.5421 GB, free: 59.5 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001263/0.3906, allocations: 1.139 MB / 0.5432 GB, free: 58.64 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002187/0.3928, allocations: 1.864 MB / 0.545 GB, free: 57.42 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.999e-06/0.3928, allocations: 3.438 kB / 0.545 GB, free: 57.42 MB / 366.1 MB Notification: Performance of matching and sorting (n=203) (initialization): time 0.003585/0.3964, allocations: 2.196 MB / 0.5472 GB, free: 56.43 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.131e-05/0.3964, allocations: 11.97 kB / 0.5472 GB, free: 56.43 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.504e-05/0.3965, allocations: 15.25 kB / 0.5472 GB, free: 56.43 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000382/0.3969, allocations: 139.9 kB / 0.5473 GB, free: 56.37 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001414/0.3983, allocations: 396.4 kB / 0.5477 GB, free: 56.33 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002057/0.4004, allocations: 3.077 MB / 0.5507 GB, free: 53.41 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001733/0.4021, allocations: 86.5 kB / 0.5508 GB, free: 53.38 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001527/0.4023, allocations: 68.34 kB / 0.5509 GB, free: 53.36 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.002077/0.4043, allocations: 1.046 MB / 0.5519 GB, free: 52.77 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003962/0.4047, allocations: 176.5 kB / 0.5521 GB, free: 52.68 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002968/0.4077, allocations: 2.047 MB / 0.5541 GB, free: 51.65 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.977e-06/0.4077, allocations: 12.41 kB / 0.5541 GB, free: 51.65 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.025e-06/0.4078, allocations: 7.938 kB / 0.5541 GB, free: 51.65 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.391e-05/0.4078, allocations: 8.531 kB / 0.5541 GB, free: 51.65 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006103/0.4139, allocations: 4.781 MB / 0.5588 GB, free: 49 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.226e-06/0.4139, allocations: 4.594 kB / 0.5588 GB, free: 49 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006727/0.4146, allocations: 160.4 kB / 0.5589 GB, free: 48.96 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00111/0.4157, allocations: 446.1 kB / 0.5593 GB, free: 48.71 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.179e-05/0.4158, allocations: 36.92 kB / 0.5594 GB, free: 48.69 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007048/0.4229, allocations: 10.1 MB / 0.5692 GB, free: 39.56 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.996e-06/0.4229, allocations: 3.656 kB / 0.5692 GB, free: 39.56 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003939/0.4269, allocations: 2.861 MB / 0.572 GB, free: 37.01 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009001/0.4278, allocations: 389.9 kB / 0.5724 GB, free: 36.61 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004699/0.4283, allocations: 39.92 kB / 0.5724 GB, free: 36.57 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001005/0.4293, allocations: 62.77 kB / 0.5725 GB, free: 36.52 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002394/0.4295, allocations: 96.8 kB / 0.5726 GB, free: 36.42 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.539e-05/0.4296, allocations: 36 kB / 0.5726 GB, free: 36.39 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001821/0.4315, allocations: 1.15 MB / 0.5738 GB, free: 35.24 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.543e-06/0.4315, allocations: 0 / 0.5738 GB, free: 35.24 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.002602/0.4341, allocations: 0.5511 MB / 0.5743 GB, free: 34.7 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.0003584/0.4344, allocations: 156.7 kB / 0.5744 GB, free: 34.54 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002804/0.4373, allocations: 1.838 MB / 0.5762 GB, free: 32.66 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.91e-06/0.4373, allocations: 0 / 0.5762 GB, free: 32.66 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001851/0.4391, allocations: 1.48 MB / 0.5777 GB, free: 31.12 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002683/0.4418, allocations: 0.5101 MB / 0.5782 GB, free: 30.63 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009673/0.4515, allocations: 7.092 MB / 0.5851 GB, free: 23.54 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002555/0.4541, allocations: 2.358 MB / 0.5874 GB, free: 21.16 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.001824/0.4559, allocations: 384.1 kB / 0.5878 GB, free: 20.78 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004954/0.4564, allocations: 123.4 kB / 0.5879 GB, free: 20.66 MB / 366.1 MB Notification: Performance of SimCode: time 7.62e-07/0.4565, allocations: 4 kB / 0.5879 GB, free: 20.66 MB / 366.1 MB Notification: Performance of Templates: time 0.04373/0.5002, allocations: 26.58 MB / 0.6139 GB, free: 10.33 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 -lv LOG_STATS > HanserModelica_HanserModelica.InductionMachines.IMC_Inverter2.pipe 2>&1)