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.0009472/0.0009471, allocations: 99.31 kB / 15.05 MB, free: 1.105 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.451/1.451, allocations: 223.2 MB / 239 MB, free: 5.672 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.001477/0.001477, allocations: 189 kB / 290.2 MB, free: 2.363 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03237/0.03237, allocations: 8.8 MB / 350.1 MB, free: 4.801 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003718/0.0003718, allocations: 9.438 kB / 413.1 MB, free: 43.08 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1125/0.1129, allocations: 52.57 MB / 465.7 MB, free: 13.68 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.InductionMachines.IMC_Steinmetz): time 0.01262/0.1256, allocations: 10.94 MB / 476.6 MB, free: 2.691 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.009614/0.1353, allocations: 4.232 MB / 480.8 MB, free: 14.45 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00293/0.1383, allocations: 71.69 kB / 480.9 MB, free: 14.38 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003424/0.1417, allocations: 0.7617 MB / 481.7 MB, free: 13.61 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00503/0.1468, allocations: 1.157 MB / 482.8 MB, free: 12.45 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002466/0.1493, allocations: 0.6107 MB / 483.4 MB, free: 11.84 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.006274/0.1555, allocations: 2.851 MB / 486.3 MB, free: 8.996 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003408/0.159, allocations: 2.202 MB / 488.5 MB, free: 6.754 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003019/0.162, allocations: 1.261 MB / 489.7 MB, free: 5.488 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002399/0.1645, allocations: 1.455 MB / 491.2 MB, free: 4.027 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003835/0.1649, allocations: 204 kB / 491.4 MB, free: 3.828 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001229/0.1661, allocations: 371.8 kB / 491.8 MB, free: 3.465 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006654/0.1668, allocations: 0.6968 MB / 492.4 MB, free: 2.766 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009973/0.1678, allocations: 0.7421 MB / 493.2 MB, free: 2.016 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00533/0.1731, allocations: 5.399 MB / 498.6 MB, free: 12.6 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.747e-06/0.1731, allocations: 0 / 498.6 MB, free: 12.6 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.043e-06/0.1732, allocations: 0 / 498.6 MB, free: 12.6 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0001817/0.1733, allocations: 0 / 498.6 MB, free: 12.6 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.01025/0.1836, allocations: 3.739 MB / 0.4906 GB, free: 8.789 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.538e-05/0.1837, allocations: 8.031 kB / 0.4906 GB, free: 8.781 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004763/0.1884, allocations: 0.8232 MB / 0.4914 GB, free: 7.953 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005437/0.1939, allocations: 2.291 MB / 0.4936 GB, free: 5.605 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002353/0.1942, allocations: 250.5 kB / 0.4938 GB, free: 5.359 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007738/0.1949, allocations: 327.9 kB / 0.4942 GB, free: 5.039 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008233/0.2032, allocations: 4.267 MB / 0.4983 GB, free: 0.7188 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.076e-05/0.2033, allocations: 7.906 kB / 0.4983 GB, free: 0.7109 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003144/0.2036, allocations: 136 kB / 0.4985 GB, free: 0.5781 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001388/0.2038, allocations: 150.5 kB / 0.4986 GB, free: 440 kB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006313/0.2101, allocations: 3.574 MB / 0.5021 GB, free: 12.85 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02216/0.2323, allocations: 13.88 MB / 0.5156 GB, free: 14.59 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006352/0.2387, allocations: 6.601 MB / 0.5221 GB, free: 7.152 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00655/0.2452, allocations: 3.261 MB / 0.5253 GB, free: 3.809 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001533/0.2468, allocations: 0.9663 MB / 0.5262 GB, free: 2.809 MB / 366.1 MB Notification: Performance of pre-optimization done (n=149): time 3.637e-06/0.2468, allocations: 0 / 0.5262 GB, free: 2.809 MB / 366.1 MB Notification: Performance of matching and sorting (n=152): time 0.264/0.5109, allocations: 6.09 MB / 0.5322 GB, free: 63.95 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.46e-05/0.511, allocations: 230.9 kB / 0.5324 GB, free: 63.7 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002744/0.5137, allocations: 1.717 MB / 0.5341 GB, free: 63.52 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000134/0.5139, allocations: 63.02 kB / 0.5341 GB, free: 63.49 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001442/0.5153, allocations: 1.452 MB / 0.5355 GB, free: 62.8 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004869/0.5158, allocations: 0.5193 MB / 0.5361 GB, free: 62.48 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000101/0.5159, allocations: 38.91 kB / 0.5361 GB, free: 62.48 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001677/0.5161, allocations: 387.9 kB / 0.5365 GB, free: 62.17 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001236/0.5174, allocations: 0.7094 MB / 0.5372 GB, free: 62.16 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001555/0.5189, allocations: 1.345 MB / 0.5385 GB, free: 61.45 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001493/0.5204, allocations: 0.9533 MB / 0.5394 GB, free: 61.43 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.327e-05/0.5205, allocations: 5.75 kB / 0.5394 GB, free: 61.43 MB / 366.1 MB Notification: Performance of matching and sorting (n=245) (initialization): time 0.00489/0.5254, allocations: 2.667 MB / 0.542 GB, free: 60.98 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.895e-05/0.5254, allocations: 13.38 kB / 0.542 GB, free: 60.98 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.83e-05/0.5255, allocations: 22.33 kB / 0.542 GB, free: 60.97 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001125/0.5266, allocations: 369.1 kB / 0.5424 GB, free: 60.93 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001515/0.5281, allocations: 400.1 kB / 0.5428 GB, free: 60.89 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00683/0.535, allocations: 7.8 MB / 0.5504 GB, free: 54.38 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001911/0.5369, allocations: 101.8 kB / 0.5505 GB, free: 54.34 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001909/0.5371, allocations: 86.12 kB / 0.5506 GB, free: 54.32 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 82 * Number of states: 0 () * Number of discrete variables: 11 ($whenCondition3,$whenCondition2,$whenCondition1,$PRE.rmsI[1].mean.y_last,rmsI[1].mean.y_last,$PRE.rmsI[2].mean.y_last,rmsI[2].mean.y_last,$PRE.rmsI[3].mean.y_last,rmsI[3].mean.y_last,idealCloser.control,idealOpener.control) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (214): * Single equations (assignments): 209 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(1,100.0%) 7,(1,100.0%) 1,(2,100.0%) 8,(1,100.0%) 13} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002243/0.5394, allocations: 1.034 MB / 0.5516 GB, free: 53.73 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004531/0.5398, allocations: 197.5 kB / 0.5518 GB, free: 53.63 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004358/0.5442, allocations: 2.392 MB / 0.5541 GB, free: 52.47 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.364e-05/0.5442, allocations: 15.34 kB / 0.5541 GB, free: 52.47 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.302e-05/0.5442, allocations: 11.81 kB / 0.5541 GB, free: 52.47 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.859e-05/0.5443, allocations: 7.688 kB / 0.5541 GB, free: 52.47 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00845/0.5527, allocations: 5.201 MB / 0.5592 GB, free: 50 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.285e-06/0.5528, allocations: 0 / 0.5592 GB, free: 50 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009639/0.5537, allocations: 191.3 kB / 0.5594 GB, free: 49.98 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001573/0.5553, allocations: 0.5215 MB / 0.5599 GB, free: 49.77 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001208/0.5555, allocations: 47.02 kB / 0.56 GB, free: 49.74 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01/0.5655, allocations: 12.25 MB / 0.5719 GB, free: 38.75 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.677e-06/0.5655, allocations: 3.938 kB / 0.5719 GB, free: 38.74 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004828/0.5703, allocations: 3.459 MB / 0.5753 GB, free: 35.95 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001044/0.5714, allocations: 430.6 kB / 0.5757 GB, free: 35.51 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002507/0.5717, allocations: 43.98 kB / 0.5757 GB, free: 35.47 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007811/0.5725, allocations: 71.95 kB / 0.5758 GB, free: 35.4 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00033/0.5728, allocations: 121 kB / 0.5759 GB, free: 35.28 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.728e-05/0.5729, allocations: 47.97 kB / 0.576 GB, free: 35.23 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001575/0.5745, allocations: 1.164 MB / 0.5771 GB, free: 34.08 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.5745, allocations: 0 / 0.5771 GB, free: 34.08 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.00263/0.5771, allocations: 0.6002 MB / 0.5777 GB, free: 33.48 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[3].mean.x,rmsI[2].mean.x,rmsI[1].mean.x) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (101): * Single equations (assignments): 92 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 6 {(1,100.0%) 1,(1,100.0%) 7,(2,100.0%) 8,(1,100.0%) 8,(1,100.0%) 13,(2,100.0%) 12} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003595/0.5775, allocations: 180.7 kB / 0.5779 GB, free: 33.29 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.003424/0.5809, allocations: 2.45 MB / 0.5803 GB, free: 30.77 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 5.491e-06/0.581, allocations: 4 kB / 0.5803 GB, free: 30.77 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002183/0.5831, allocations: 1.8 MB / 0.582 GB, free: 28.9 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002363/0.5855, allocations: 0.5136 MB / 0.5825 GB, free: 28.4 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01188/0.5974, allocations: 7.171 MB / 0.5895 GB, free: 21.19 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001827/0.5993, allocations: 2.397 MB / 0.5919 GB, free: 18.77 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.001601/0.6009, allocations: 417.4 kB / 0.5923 GB, free: 18.36 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002801/0.6012, allocations: 127.4 kB / 0.5924 GB, free: 18.23 MB / 366.1 MB Notification: Performance of SimCode: time 2.565e-06/0.6012, allocations: 0 / 0.5924 GB, free: 18.23 MB / 366.1 MB Notification: Performance of Templates: time 0.04631/0.6475, allocations: 28.35 MB / 0.6201 GB, free: 6.168 MB / 382.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: