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.001304/0.001303, allocations: 105 kB / 15.98 MB, free: 6.348 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.397/1.397, allocations: 222.9 MB / 239.6 MB, free: 4.695 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.001767/0.001767, allocations: 196.4 kB / 289.9 MB, free: 2.438 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03455/0.03455, allocations: 8.788 MB / 348.9 MB, free: 4.82 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001557/0.001557, allocations: 78.59 kB / 411.2 MB, free: 42.27 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1246/0.1262, allocations: 51.56 MB / 462.8 MB, free: 14.74 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.InductionMachines.IMC_Steinmetz): time 0.01627/0.1425, allocations: 13.45 MB / 476.2 MB, free: 1.219 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.009713/0.1523, allocations: 4.365 MB / 480.6 MB, free: 12.84 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00296/0.1553, allocations: 83.62 kB / 480.7 MB, free: 12.76 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003042/0.1583, allocations: 0.8668 MB / 481.6 MB, free: 11.89 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004791/0.1632, allocations: 1.162 MB / 482.7 MB, free: 10.72 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002379/0.1656, allocations: 0.811 MB / 483.5 MB, free: 9.91 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.006195/0.1718, allocations: 4.301 MB / 487.8 MB, free: 5.594 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003883/0.1757, allocations: 3.201 MB / 491 MB, free: 2.316 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002846/0.1786, allocations: 1.791 MB / 492.8 MB, free: 0.5195 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002639/0.1812, allocations: 2.051 MB / 494.9 MB, free: 14.46 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006884/0.1819, allocations: 0.5039 MB / 495.4 MB, free: 13.95 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001484/0.1834, allocations: 0.7144 MB / 496.1 MB, free: 13.24 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009568/0.1844, allocations: 1.087 MB / 497.2 MB, free: 12.15 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002662/0.187, allocations: 2.139 MB / 499.3 MB, free: 10 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005676/0.1927, allocations: 5.647 MB / 0.4931 GB, free: 4.344 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.991e-06/0.1927, allocations: 0 / 0.4931 GB, free: 4.344 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.523e-06/0.1928, allocations: 0 / 0.4931 GB, free: 4.344 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0001039/0.1929, allocations: 4 kB / 0.4931 GB, free: 4.34 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.01093/0.2038, allocations: 4.402 MB / 0.4974 GB, free: 15.86 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.955e-05/0.2039, allocations: 12.03 kB / 0.4974 GB, free: 15.85 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004193/0.2081, allocations: 0.824 MB / 0.4983 GB, free: 15.02 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004135/0.2122, allocations: 2.322 MB / 0.5005 GB, free: 12.64 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002025/0.2124, allocations: 258.8 kB / 0.5008 GB, free: 12.39 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004913/0.2129, allocations: 332 kB / 0.5011 GB, free: 12.07 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007556/0.2205, allocations: 4.311 MB / 0.5053 GB, free: 7.703 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.938e-05/0.2206, allocations: 11.84 kB / 0.5053 GB, free: 7.691 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003174/0.2209, allocations: 140 kB / 0.5054 GB, free: 7.555 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001508/0.2211, allocations: 146.5 kB / 0.5056 GB, free: 7.41 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007519/0.2286, allocations: 3.59 MB / 0.5091 GB, free: 3.812 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02526/0.2539, allocations: 13.85 MB / 0.5226 GB, free: 5.59 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.2624/0.5164, allocations: 6.626 MB / 0.5291 GB, free: 62.64 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002656/0.5191, allocations: 1.385 MB / 0.5304 GB, free: 62.63 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006418/0.5255, allocations: 3.665 MB / 0.534 GB, free: 62.05 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001555/0.5271, allocations: 0.9472 MB / 0.5349 GB, free: 61.93 MB / 366.1 MB Notification: Performance of pre-optimization done (n=143): time 4.338e-06/0.5271, allocations: 1.281 kB / 0.5349 GB, free: 61.93 MB / 366.1 MB Notification: Performance of matching and sorting (n=146): time 0.0128/0.54, allocations: 5.985 MB / 0.5408 GB, free: 60.39 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.403e-05/0.5401, allocations: 225.4 kB / 0.541 GB, free: 60.14 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003172/0.5433, allocations: 1.784 MB / 0.5427 GB, free: 59.95 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001757/0.5435, allocations: 60.69 kB / 0.5428 GB, free: 59.89 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001348/0.5448, allocations: 1.468 MB / 0.5442 GB, free: 58.79 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004237/0.5453, allocations: 0.4978 MB / 0.5447 GB, free: 58.4 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005348/0.5458, allocations: 342.8 kB / 0.545 GB, free: 58.24 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 5.562e-05/0.5459, allocations: 302.2 kB / 0.5453 GB, free: 57.94 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001129/0.547, allocations: 0.6925 MB / 0.546 GB, free: 57.68 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00145/0.5485, allocations: 1.352 MB / 0.5473 GB, free: 56.6 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002623/0.5511, allocations: 2.113 MB / 0.5494 GB, free: 55.2 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.31e-05/0.5511, allocations: 4.844 kB / 0.5494 GB, free: 55.2 MB / 366.1 MB Notification: Performance of matching and sorting (n=241) (initialization): time 0.00464/0.5558, allocations: 2.647 MB / 0.552 GB, free: 53.99 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.045e-05/0.5558, allocations: 11.84 kB / 0.552 GB, free: 53.99 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.561e-05/0.5558, allocations: 19.72 kB / 0.552 GB, free: 53.99 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008994/0.5567, allocations: 375 kB / 0.5524 GB, free: 53.86 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001201/0.558, allocations: 389.5 kB / 0.5527 GB, free: 53.82 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00602/0.564, allocations: 8.449 MB / 0.561 GB, free: 46.55 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001942/0.566, allocations: 93.97 kB / 0.5611 GB, free: 46.52 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001507/0.5661, allocations: 82.59 kB / 0.5612 GB, free: 46.51 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.00198/0.5681, allocations: 1.032 MB / 0.5622 GB, free: 45.82 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004364/0.5686, allocations: 199.6 kB / 0.5624 GB, free: 45.71 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003601/0.5722, allocations: 2.344 MB / 0.5646 GB, free: 44.23 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.348e-05/0.5722, allocations: 13.94 kB / 0.5647 GB, free: 44.23 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.158e-05/0.5722, allocations: 8.469 kB / 0.5647 GB, free: 44.23 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.509e-05/0.5722, allocations: 7.969 kB / 0.5647 GB, free: 44.22 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007277/0.5795, allocations: 5.124 MB / 0.5697 GB, free: 40.44 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.68e-06/0.5795, allocations: 0 / 0.5697 GB, free: 40.44 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007169/0.5803, allocations: 173.1 kB / 0.5698 GB, free: 40.27 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001222/0.5815, allocations: 0.5334 MB / 0.5704 GB, free: 39.72 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.361e-05/0.5816, allocations: 51.92 kB / 0.5704 GB, free: 39.67 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00916/0.5908, allocations: 13.26 MB / 0.5834 GB, free: 25.65 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.138e-06/0.5908, allocations: 4 kB / 0.5834 GB, free: 25.64 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004496/0.5953, allocations: 3.27 MB / 0.5866 GB, free: 22.29 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009713/0.5963, allocations: 434.6 kB / 0.587 GB, free: 21.84 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002555/0.5966, allocations: 47.92 kB / 0.587 GB, free: 21.79 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008273/0.5974, allocations: 61.17 kB / 0.5871 GB, free: 21.73 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003082/0.5977, allocations: 113.1 kB / 0.5872 GB, free: 21.62 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.531e-05/0.5978, allocations: 43.98 kB / 0.5872 GB, free: 21.58 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001476/0.5993, allocations: 1.215 MB / 0.5884 GB, free: 20.38 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.5993, allocations: 0 / 0.5884 GB, free: 20.38 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.002362/0.6017, allocations: 0.6002 MB / 0.589 GB, free: 19.78 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.0003295/0.602, allocations: 168.1 kB / 0.5892 GB, free: 19.6 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.004539/0.6065, allocations: 2.836 MB / 0.5919 GB, free: 16.71 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 5.942e-06/0.6066, allocations: 0 / 0.5919 GB, free: 16.71 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002126/0.6087, allocations: 1.817 MB / 0.5937 GB, free: 14.83 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002441/0.6112, allocations: 0.561 MB / 0.5943 GB, free: 14.29 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009755/0.6209, allocations: 7.272 MB / 0.6014 GB, free: 7 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001559/0.6225, allocations: 2.28 MB / 0.6036 GB, free: 4.691 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005736/0.6231, allocations: 143.4 kB / 0.6037 GB, free: 4.551 MB / 366.1 MB Notification: Performance of SimCode: time 1.072e-06/0.6231, allocations: 0 / 0.6037 GB, free: 4.551 MB / 366.1 MB Notification: Performance of Templates: time 0.3637/0.9868, allocations: 130.3 MB / 0.731 GB, free: 138.9 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)