Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr HanserModelica_HanserModelica.InductionMachines.IMC_Steinmetz.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_Steinmetz,tolerance=1e-06,outputFormat="empty",numberOfIntervals=20000,variableFilter="",fileNamePrefix="HanserModelica_HanserModelica.InductionMachines.IMC_Steinmetz") translateModel(HanserModelica.InductionMachines.IMC_Steinmetz,tolerance=1e-06,outputFormat="empty",numberOfIntervals=20000,variableFilter="",fileNamePrefix="HanserModelica_HanserModelica.InductionMachines.IMC_Steinmetz") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009059/0.000906, allocations: 98.56 kB / 16.02 MB, free: 76 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.294/1.294, allocations: 223.3 MB / 240 MB, free: 5.359 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.0009721/0.0009721, allocations: 188.5 kB / 291.3 MB, free: 2.027 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03557/0.03557, allocations: 8.794 MB / 351.2 MB, free: 4.578 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000341/0.000341, allocations: 16.66 kB / 414.5 MB, free: 42.71 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06449/0.06485, allocations: 52.54 MB / 467 MB, free: 13.13 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.InductionMachines.IMC_Steinmetz): time 0.01211/0.07698, allocations: 12.79 MB / 479.8 MB, free: 280 kB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.006748/0.08374, allocations: 4.341 MB / 484.2 MB, free: 11.92 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001164/0.08492, allocations: 71.75 kB / 484.2 MB, free: 11.85 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001776/0.08671, allocations: 0.8512 MB / 485.1 MB, free: 10.99 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002352/0.08908, allocations: 1.166 MB / 486.2 MB, free: 9.82 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001537/0.09063, allocations: 0.8139 MB / 487.1 MB, free: 9.008 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.003796/0.09444, allocations: 4.384 MB / 491.4 MB, free: 4.613 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002774/0.09722, allocations: 2.639 MB / 494.1 MB, free: 1.902 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001206/0.09844, allocations: 1.334 MB / 495.4 MB, free: 0.5625 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001598/0.1, allocations: 1.653 MB / 497.1 MB, free: 14.9 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000299/0.1004, allocations: 208 kB / 497.3 MB, free: 14.7 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007543/0.1011, allocations: 423.7 kB / 497.7 MB, free: 14.29 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005628/0.1017, allocations: 0.7353 MB / 498.4 MB, free: 13.55 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001381/0.1031, allocations: 1.774 MB / 0.4885 GB, free: 11.76 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00388/0.107, allocations: 5.446 MB / 0.4938 GB, free: 6.297 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.358e-06/0.107, allocations: 0 / 0.4938 GB, free: 6.297 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.333e-06/0.107, allocations: 3.938 kB / 0.4938 GB, free: 6.293 MB / 334.1 MB Notification: Performance of Transformations before backend: time 3.707e-05/0.107, allocations: 0 / 0.4938 GB, free: 6.293 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: 852 * Number of variables: 852 Notification: Performance of Generate backend data structure: time 0.008033/0.1151, allocations: 3.712 MB / 0.4974 GB, free: 2.508 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.242e-05/0.1151, allocations: 12.03 kB / 0.4974 GB, free: 2.496 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004256/0.1194, allocations: 0.8202 MB / 0.4982 GB, free: 1.672 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003308/0.1227, allocations: 2.326 MB / 0.5005 GB, free: 15.29 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001614/0.1229, allocations: 246.9 kB / 0.5007 GB, free: 15.04 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004765/0.1234, allocations: 336 kB / 0.5011 GB, free: 14.71 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006509/0.1299, allocations: 4.322 MB / 0.5053 GB, free: 10.34 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.969e-05/0.13, allocations: 7.844 kB / 0.5053 GB, free: 10.34 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003047/0.1303, allocations: 132 kB / 0.5054 GB, free: 10.21 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001313/0.1304, allocations: 150.5 kB / 0.5056 GB, free: 10.06 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005654/0.1361, allocations: 3.594 MB / 0.5091 GB, free: 6.457 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01791/0.154, allocations: 13.93 MB / 0.5227 GB, free: 8.156 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006305/0.1603, allocations: 6.632 MB / 0.5291 GB, free: 0.6914 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.1486/0.309, allocations: 1.385 MB / 0.5305 GB, free: 63.73 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005364/0.3144, allocations: 3.676 MB / 0.5341 GB, free: 63.12 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001302/0.3157, allocations: 0.9438 MB / 0.535 GB, free: 63 MB / 366.1 MB Notification: Performance of pre-optimization done (n=143): time 3.317e-06/0.3157, allocations: 2.062 kB / 0.535 GB, free: 63 MB / 366.1 MB Notification: Performance of matching and sorting (n=146): time 0.01088/0.3266, allocations: 6.036 MB / 0.5409 GB, free: 61.39 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.715e-05/0.3267, allocations: 227.9 kB / 0.5411 GB, free: 61.14 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002694/0.3294, allocations: 1.783 MB / 0.5429 GB, free: 60.95 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001062/0.3295, allocations: 56.53 kB / 0.5429 GB, free: 60.92 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009603/0.3305, allocations: 1.469 MB / 0.5443 GB, free: 60.22 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002936/0.3308, allocations: 0.4962 MB / 0.5448 GB, free: 59.91 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001931/0.331, allocations: 153.5 kB / 0.545 GB, free: 59.89 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 3.067e-05/0.331, allocations: 310.1 kB / 0.5453 GB, free: 59.59 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001071/0.3321, allocations: 0.6906 MB / 0.5459 GB, free: 59.32 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00129/0.3334, allocations: 1.361 MB / 0.5473 GB, free: 58.24 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002383/0.3358, allocations: 2.121 MB / 0.5493 GB, free: 56.77 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.328e-05/0.3358, allocations: 5.781 kB / 0.5494 GB, free: 56.77 MB / 366.1 MB Notification: Performance of matching and sorting (n=241) (initialization): time 0.004082/0.3399, allocations: 2.653 MB / 0.5519 GB, free: 55.57 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.346e-05/0.3399, allocations: 11.81 kB / 0.552 GB, free: 55.57 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.48e-05/0.3399, allocations: 19.66 kB / 0.552 GB, free: 55.57 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008622/0.3408, allocations: 364.2 kB / 0.5523 GB, free: 55.44 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001283/0.3421, allocations: 395.2 kB / 0.5527 GB, free: 55.39 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00537/0.3475, allocations: 7.732 MB / 0.5602 GB, free: 48.78 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00123/0.3487, allocations: 103.1 kB / 0.5603 GB, free: 48.75 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001063/0.3489, allocations: 74.97 kB / 0.5604 GB, free: 48.73 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 84 * Number of states: 0 () * Number of discrete variables: 11 ($whenCondition3,$whenCondition2,$whenCondition1,rmsI[3].mean.y_last,$PRE.rmsI[3].mean.y_last,rmsI[2].mean.y_last,$PRE.rmsI[2].mean.y_last,rmsI[1].mean.y_last,$PRE.rmsI[1].mean.y_last,idealOpener.control,idealCloser.control) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (210): * Single equations (assignments): 205 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 4 * 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): 4 systems {(1,7,100.0%), (2,8,100.0%), (1,1,100.0%), (1,13,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001269/0.3501, allocations: 1.036 MB / 0.5614 GB, free: 48.14 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002282/0.3504, allocations: 195.9 kB / 0.5616 GB, free: 48.04 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00342/0.3538, allocations: 2.345 MB / 0.5639 GB, free: 46.69 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.365e-06/0.3538, allocations: 15.88 kB / 0.5639 GB, free: 46.68 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.193e-05/0.3538, allocations: 11.86 kB / 0.5639 GB, free: 46.68 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.26e-05/0.3538, allocations: 3.984 kB / 0.5639 GB, free: 46.68 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006246/0.3601, allocations: 5.142 MB / 0.569 GB, free: 43.32 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.17e-06/0.3601, allocations: 0 / 0.569 GB, free: 43.32 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007512/0.3609, allocations: 181.5 kB / 0.5691 GB, free: 43.27 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001244/0.3621, allocations: 0.5275 MB / 0.5696 GB, free: 42.83 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.626e-05/0.3622, allocations: 43.98 kB / 0.5697 GB, free: 42.79 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008553/0.3708, allocations: 12.11 MB / 0.5815 GB, free: 29.92 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.923e-06/0.3708, allocations: 0 / 0.5815 GB, free: 29.92 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004059/0.3749, allocations: 3.299 MB / 0.5847 GB, free: 26.54 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000527/0.3754, allocations: 430.6 kB / 0.5852 GB, free: 26.09 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002417/0.3757, allocations: 48.36 kB / 0.5852 GB, free: 26.05 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008572/0.3765, allocations: 59.97 kB / 0.5853 GB, free: 25.99 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002065/0.3767, allocations: 121 kB / 0.5854 GB, free: 25.87 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.422e-05/0.3768, allocations: 39.98 kB / 0.5854 GB, free: 25.83 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001302/0.3781, allocations: 1.223 MB / 0.5866 GB, free: 24.62 MB / 366.1 MB Notification: Performance of sort global known variables: time 2.01e-07/0.3781, allocations: 0 / 0.5866 GB, free: 24.62 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001719/0.3799, allocations: 0.5976 MB / 0.5872 GB, free: 24.02 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 12 (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,quadraticLoadTorque.phi,cRun.v,cStart.v,rmsI[1].mean.x,rmsI[2].mean.x,rmsI[3].mean.x) * Number of discrete variables: 8 ($whenCondition3,$whenCondition2,$whenCondition1,idealCloser.control,idealOpener.control,rmsI[1].mean.y_last,rmsI[2].mean.y_last,rmsI[3].mean.y_last) * Number of discrete states: 3 (rmsI[1].mean.x,rmsI[2].mean.x,rmsI[3].mean.x) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (95): * Single equations (assignments): 86 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 6 systems {(1,7,100.0%), (2,8,100.0%), (1,1,100.0%), (1,13,100.0%), (1,8,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.0002569/0.3801, allocations: 173 kB / 0.5874 GB, free: 23.84 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002805/0.3829, allocations: 2.416 MB / 0.5897 GB, free: 21.36 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.387e-06/0.383, allocations: 0 / 0.5897 GB, free: 21.36 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002047/0.385, allocations: 1.81 MB / 0.5915 GB, free: 19.48 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002417/0.3874, allocations: 0.5289 MB / 0.592 GB, free: 18.96 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007776/0.3952, allocations: 7.456 MB / 0.5993 GB, free: 11.46 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001478/0.3967, allocations: 2.273 MB / 0.6015 GB, free: 9.152 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003578/0.3971, allocations: 143.4 kB / 0.6016 GB, free: 9.012 MB / 366.1 MB Notification: Performance of SimCode: time 3.4e-07/0.3971, allocations: 3.938 kB / 0.6016 GB, free: 9.008 MB / 366.1 MB Notification: Performance of Templates: time 0.2539/0.651, allocations: 129.9 MB / 0.7285 GB, free: 140.3 MB / 462.1 MB make -j1 -f HanserModelica_HanserModelica.InductionMachines.IMC_Steinmetz.makefile (rm -f HanserModelica_HanserModelica.InductionMachines.IMC_Steinmetz.pipe ; mkfifo HanserModelica_HanserModelica.InductionMachines.IMC_Steinmetz.pipe ; head -c 1048576 < HanserModelica_HanserModelica.InductionMachines.IMC_Steinmetz.pipe >> ../files/HanserModelica_HanserModelica.InductionMachines.IMC_Steinmetz.sim & ./HanserModelica_HanserModelica.InductionMachines.IMC_Steinmetz -abortSlowSimulation -alarm=480 -lv LOG_STATS > HanserModelica_HanserModelica.InductionMachines.IMC_Steinmetz.pipe 2>&1)