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.0008829/0.000883, allocations: 98.19 kB / 15.36 MB, free: 0.7344 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.419/1.419, allocations: 223.3 MB / 239.4 MB, free: 5.391 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.001007/0.001007, allocations: 176.6 kB / 290.6 MB, free: 2.059 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03303/0.03303, allocations: 8.797 MB / 350.5 MB, free: 4.566 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003766/0.0003766, allocations: 13.42 kB / 413.8 MB, free: 42.79 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1148/0.1152, allocations: 52.55 MB / 466.4 MB, free: 13.12 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.InductionMachines.IMC_Steinmetz): time 0.01347/0.1287, allocations: 12.78 MB / 479.2 MB, free: 268 kB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.009458/0.1382, allocations: 4.345 MB / 483.5 MB, free: 11.9 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001938/0.1402, allocations: 71.75 kB / 483.6 MB, free: 11.83 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002627/0.1428, allocations: 0.8512 MB / 484.4 MB, free: 10.98 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003596/0.1464, allocations: 1.166 MB / 485.6 MB, free: 9.805 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002027/0.1485, allocations: 0.8247 MB / 486.4 MB, free: 8.984 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.00594/0.1544, allocations: 4.375 MB / 490.8 MB, free: 4.594 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004288/0.1587, allocations: 2.628 MB / 493.4 MB, free: 1.895 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002725/0.1614, allocations: 1.334 MB / 494.7 MB, free: 0.5547 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003081/0.1645, allocations: 1.66 MB / 496.4 MB, free: 14.89 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005253/0.1651, allocations: 208 kB / 496.6 MB, free: 14.68 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001446/0.1665, allocations: 423.7 kB / 497 MB, free: 14.27 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006723/0.1672, allocations: 0.7314 MB / 497.8 MB, free: 13.54 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001875/0.1691, allocations: 1.774 MB / 499.5 MB, free: 11.75 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005843/0.1749, allocations: 6.248 MB / 0.4939 GB, free: 5.477 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.923e-06/0.175, allocations: 4 kB / 0.4939 GB, free: 5.473 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.044e-06/0.175, allocations: 4 kB / 0.4939 GB, free: 5.469 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0002387/0.1752, allocations: 0 / 0.4939 GB, free: 5.469 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.01052/0.1858, allocations: 3.704 MB / 0.4975 GB, free: 1.691 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.404e-05/0.1858, allocations: 8.031 kB / 0.4976 GB, free: 1.684 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004757/0.1906, allocations: 0.8318 MB / 0.4984 GB, free: 0.8477 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00418/0.1948, allocations: 2.326 MB / 0.5006 GB, free: 14.46 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001731/0.195, allocations: 246.9 kB / 0.5009 GB, free: 14.22 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000558/0.1956, allocations: 332 kB / 0.5012 GB, free: 13.9 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007338/0.2029, allocations: 4.322 MB / 0.5054 GB, free: 9.523 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.358e-05/0.203, allocations: 7.906 kB / 0.5054 GB, free: 9.516 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003074/0.2033, allocations: 140 kB / 0.5056 GB, free: 9.379 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001318/0.2035, allocations: 146.5 kB / 0.5057 GB, free: 9.234 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005904/0.2094, allocations: 3.598 MB / 0.5092 GB, free: 5.629 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02083/0.2302, allocations: 13.92 MB / 0.5228 GB, free: 7.332 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.2206/0.4509, allocations: 6.618 MB / 0.5293 GB, free: 63.47 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003041/0.454, allocations: 1.396 MB / 0.5306 GB, free: 63.46 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006406/0.4604, allocations: 3.68 MB / 0.5342 GB, free: 62.86 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001531/0.462, allocations: 0.94 MB / 0.5351 GB, free: 62.73 MB / 366.1 MB Notification: Performance of pre-optimization done (n=143): time 3.737e-06/0.462, allocations: 3.406 kB / 0.5351 GB, free: 62.73 MB / 366.1 MB Notification: Performance of matching and sorting (n=146): time 0.0132/0.4752, allocations: 6.034 MB / 0.541 GB, free: 61.11 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001357/0.4754, allocations: 229.7 kB / 0.5413 GB, free: 60.86 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003546/0.479, allocations: 1.785 MB / 0.543 GB, free: 60.68 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001194/0.4791, allocations: 53.55 kB / 0.543 GB, free: 60.64 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00123/0.4803, allocations: 1.47 MB / 0.5445 GB, free: 59.78 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000383/0.4807, allocations: 0.4931 MB / 0.545 GB, free: 59.4 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002311/0.4809, allocations: 161.4 kB / 0.5451 GB, free: 59.32 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 6.275e-05/0.481, allocations: 301.1 kB / 0.5454 GB, free: 59.03 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001156/0.4822, allocations: 0.6967 MB / 0.5461 GB, free: 58.76 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001456/0.4836, allocations: 1.353 MB / 0.5474 GB, free: 57.68 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002658/0.4863, allocations: 2.116 MB / 0.5495 GB, free: 56.21 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.421e-05/0.4863, allocations: 6.125 kB / 0.5495 GB, free: 56.21 MB / 366.1 MB Notification: Performance of matching and sorting (n=241) (initialization): time 0.004452/0.4908, allocations: 2.652 MB / 0.5521 GB, free: 55.01 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.261e-05/0.4908, allocations: 12.36 kB / 0.5521 GB, free: 55.01 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.585e-05/0.4909, allocations: 25.05 kB / 0.5521 GB, free: 55 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008782/0.4918, allocations: 368.1 kB / 0.5525 GB, free: 54.88 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001201/0.493, allocations: 401.4 kB / 0.5528 GB, free: 54.83 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006396/0.4994, allocations: 7.723 MB / 0.5604 GB, free: 48.22 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001724/0.5011, allocations: 99.83 kB / 0.5605 GB, free: 48.19 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001164/0.5013, allocations: 90.64 kB / 0.5606 GB, free: 48.17 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.001999/0.5033, allocations: 1.027 MB / 0.5616 GB, free: 47.59 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003849/0.5036, allocations: 199.7 kB / 0.5618 GB, free: 47.48 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003604/0.5073, allocations: 2.346 MB / 0.564 GB, free: 46.02 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.286e-05/0.5073, allocations: 15.5 kB / 0.5641 GB, free: 46.02 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.211e-05/0.5073, allocations: 7.562 kB / 0.5641 GB, free: 46.02 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.289e-05/0.5073, allocations: 3.984 kB / 0.5641 GB, free: 46.02 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006977/0.5143, allocations: 5.139 MB / 0.5691 GB, free: 42.54 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.658e-06/0.5143, allocations: 4 kB / 0.5691 GB, free: 42.54 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009038/0.5153, allocations: 171.8 kB / 0.5693 GB, free: 42.37 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001251/0.5165, allocations: 0.5284 MB / 0.5698 GB, free: 41.83 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.737e-05/0.5166, allocations: 47.3 kB / 0.5698 GB, free: 41.79 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008908/0.5255, allocations: 12.12 MB / 0.5817 GB, free: 28.91 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.687e-06/0.5256, allocations: 4 kB / 0.5817 GB, free: 28.91 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00498/0.5306, allocations: 3.292 MB / 0.5849 GB, free: 25.53 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00128/0.5319, allocations: 434.6 kB / 0.5853 GB, free: 25.08 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006475/0.5325, allocations: 43.98 kB / 0.5853 GB, free: 25.04 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001226/0.5338, allocations: 59.97 kB / 0.5854 GB, free: 24.98 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003308/0.5341, allocations: 125 kB / 0.5855 GB, free: 24.86 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.794e-05/0.5342, allocations: 39.98 kB / 0.5855 GB, free: 24.82 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.002092/0.5363, allocations: 1.215 MB / 0.5867 GB, free: 23.61 MB / 366.1 MB Notification: Performance of sort global known variables: time 2.51e-07/0.5363, allocations: 0 / 0.5867 GB, free: 23.61 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.003062/0.5394, allocations: 0.5963 MB / 0.5873 GB, free: 23.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.0004005/0.5398, allocations: 172.2 kB / 0.5875 GB, free: 22.84 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.003623/0.5435, allocations: 2.418 MB / 0.5898 GB, free: 20.36 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 5.2e-06/0.5435, allocations: 4.953 kB / 0.5898 GB, free: 20.36 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002425/0.5459, allocations: 1.764 MB / 0.5916 GB, free: 18.52 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003584/0.5495, allocations: 0.5204 MB / 0.5921 GB, free: 18.01 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01238/0.5619, allocations: 7.482 MB / 0.5994 GB, free: 10.49 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00279/0.5647, allocations: 2.338 MB / 0.6017 GB, free: 8.117 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.001741/0.5665, allocations: 413.3 kB / 0.6021 GB, free: 7.711 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004796/0.567, allocations: 127.4 kB / 0.6022 GB, free: 7.586 MB / 366.1 MB Notification: Performance of SimCode: time 7.31e-07/0.567, allocations: 1.75 kB / 0.6022 GB, free: 7.586 MB / 366.1 MB Notification: Performance of Templates: time 0.05602/0.623, allocations: 29.39 MB / 0.6309 GB, free: 10.48 MB / 398.1 MB make -j1 -f HanserModelica_HanserModelica.InductionMachines.IMC_Steinmetz.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: