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.0008728/0.0008726, allocations: 86.88 kB / 15.06 MB, free: 1.09 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.475/1.475, allocations: 223.3 MB / 239 MB, free: 5.473 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.00131/0.001309, allocations: 180.5 kB / 290.3 MB, free: 2.164 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03408/0.03407, allocations: 8.799 MB / 350.2 MB, free: 4.715 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004304/0.0004307, allocations: 10.78 kB / 413.2 MB, free: 43.06 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.125/0.1254, allocations: 52.56 MB / 465.8 MB, free: 13.58 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.InductionMachines.IMC_Steinmetz): time 0.01472/0.1402, allocations: 11.96 MB / 477.7 MB, free: 1.559 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.009676/0.1499, allocations: 4.129 MB / 481.8 MB, free: 13.42 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002905/0.1529, allocations: 75.69 kB / 481.9 MB, free: 13.34 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002985/0.1559, allocations: 0.7419 MB / 482.7 MB, free: 12.6 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004982/0.1609, allocations: 1.06 MB / 483.7 MB, free: 11.53 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002399/0.1633, allocations: 0.6151 MB / 484.3 MB, free: 10.92 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.006763/0.1701, allocations: 4.108 MB / 488.4 MB, free: 6.801 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003462/0.1736, allocations: 2.199 MB / 490.6 MB, free: 4.562 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002494/0.1761, allocations: 1.292 MB / 491.9 MB, free: 3.266 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002571/0.1787, allocations: 1.603 MB / 493.5 MB, free: 1.656 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004392/0.1792, allocations: 208 kB / 493.7 MB, free: 1.453 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001271/0.1804, allocations: 399.7 kB / 494.1 MB, free: 1.062 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000645/0.1811, allocations: 0.7199 MB / 494.9 MB, free: 348 kB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001075/0.1822, allocations: 0.7422 MB / 495.6 MB, free: 15.59 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0056/0.1878, allocations: 5.438 MB / 0.4893 GB, free: 10.14 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.568e-06/0.1878, allocations: 0 / 0.4893 GB, free: 10.14 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.495e-06/0.1878, allocations: 0 / 0.4893 GB, free: 10.14 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0001928/0.188, allocations: 4 kB / 0.4893 GB, free: 10.13 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.01083/0.1989, allocations: 3.751 MB / 0.493 GB, free: 6.309 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.403e-05/0.1989, allocations: 8.031 kB / 0.493 GB, free: 6.301 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00528/0.2042, allocations: 0.8232 MB / 0.4938 GB, free: 5.473 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005192/0.2095, allocations: 2.279 MB / 0.496 GB, free: 3.137 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002487/0.2097, allocations: 246.5 kB / 0.4962 GB, free: 2.895 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006884/0.2104, allocations: 327.9 kB / 0.4965 GB, free: 2.574 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008025/0.2185, allocations: 4.291 MB / 0.5007 GB, free: 14.23 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.738e-05/0.2186, allocations: 4 kB / 0.5007 GB, free: 14.23 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002991/0.2189, allocations: 136 kB / 0.5009 GB, free: 14.09 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001435/0.219, allocations: 150.5 kB / 0.501 GB, free: 13.95 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006202/0.2252, allocations: 3.582 MB / 0.5045 GB, free: 10.36 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02044/0.2457, allocations: 13.9 MB / 0.5181 GB, free: 12.07 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006081/0.2518, allocations: 6.605 MB / 0.5245 GB, free: 4.637 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002163/0.254, allocations: 1.398 MB / 0.5259 GB, free: 3.242 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2518/0.5058, allocations: 3.685 MB / 0.5295 GB, free: 63.34 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001535/0.5074, allocations: 0.9369 MB / 0.5304 GB, free: 63.22 MB / 366.1 MB Notification: Performance of pre-optimization done (n=143): time 6.723e-06/0.5074, allocations: 0.7969 kB / 0.5304 GB, free: 63.22 MB / 366.1 MB Notification: Performance of matching and sorting (n=146): time 0.01279/0.5202, allocations: 6.054 MB / 0.5363 GB, free: 61.75 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.769e-05/0.5204, allocations: 225.3 kB / 0.5365 GB, free: 61.5 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003076/0.5234, allocations: 1.767 MB / 0.5383 GB, free: 61.32 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001327/0.5236, allocations: 54.45 kB / 0.5383 GB, free: 61.29 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001628/0.5252, allocations: 1.467 MB / 0.5398 GB, free: 60.59 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004905/0.5257, allocations: 0.4963 MB / 0.5402 GB, free: 60.28 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.944e-05/0.5258, allocations: 38.19 kB / 0.5403 GB, free: 60.28 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001701/0.526, allocations: 381.7 kB / 0.5406 GB, free: 59.98 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001423/0.5274, allocations: 0.6853 MB / 0.5413 GB, free: 59.98 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001948/0.5294, allocations: 1.346 MB / 0.5426 GB, free: 59.23 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00194/0.5313, allocations: 0.9396 MB / 0.5435 GB, free: 59.18 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.406e-05/0.5314, allocations: 5.938 kB / 0.5435 GB, free: 59.18 MB / 366.1 MB Notification: Performance of matching and sorting (n=241) (initialization): time 0.005125/0.5365, allocations: 2.631 MB / 0.5461 GB, free: 58.61 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.987e-05/0.5365, allocations: 13.16 kB / 0.5461 GB, free: 58.61 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.686e-05/0.5366, allocations: 18.03 kB / 0.5461 GB, free: 58.61 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001045/0.5376, allocations: 376.5 kB / 0.5465 GB, free: 58.47 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001404/0.5391, allocations: 388.4 kB / 0.5469 GB, free: 58.43 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006659/0.5457, allocations: 7.702 MB / 0.5544 GB, free: 51.84 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002113/0.5479, allocations: 107 kB / 0.5545 GB, free: 51.8 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001278/0.548, allocations: 83.48 kB / 0.5546 GB, free: 51.79 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,$PRE.rmsI[3].mean.y_last,rmsI[3].mean.y_last,$PRE.rmsI[2].mean.y_last,rmsI[2].mean.y_last,$PRE.rmsI[1].mean.y_last,rmsI[1].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 (210): * Single equations (assignments): 205 * 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,(2,100.0%) 8,(1,100.0%) 1,(1,100.0%) 13} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002159/0.5502, allocations: 1.027 MB / 0.5556 GB, free: 51.2 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003511/0.5505, allocations: 196.2 kB / 0.5558 GB, free: 51.1 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003495/0.554, allocations: 2.333 MB / 0.558 GB, free: 49.96 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.394e-05/0.5541, allocations: 18.38 kB / 0.5581 GB, free: 49.96 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.298e-05/0.5541, allocations: 7.781 kB / 0.5581 GB, free: 49.96 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.43e-05/0.5541, allocations: 7.844 kB / 0.5581 GB, free: 49.96 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007319/0.5614, allocations: 5.118 MB / 0.5631 GB, free: 47.06 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.764e-06/0.5615, allocations: 1.125 kB / 0.5631 GB, free: 47.06 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007541/0.5622, allocations: 186.3 kB / 0.5633 GB, free: 47.01 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001236/0.5635, allocations: 0.523 MB / 0.5638 GB, free: 46.72 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.493e-05/0.5636, allocations: 43.38 kB / 0.5638 GB, free: 46.69 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008935/0.5725, allocations: 12.11 MB / 0.5756 GB, free: 35.3 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.615e-06/0.5726, allocations: 0 / 0.5756 GB, free: 35.3 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004563/0.5771, allocations: 3.27 MB / 0.5788 GB, free: 31.94 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001072/0.5782, allocations: 438.5 kB / 0.5792 GB, free: 31.49 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002646/0.5785, allocations: 42.5 kB / 0.5793 GB, free: 31.45 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007822/0.5793, allocations: 67.95 kB / 0.5793 GB, free: 31.39 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003675/0.5797, allocations: 109.1 kB / 0.5795 GB, free: 31.28 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.208e-05/0.5798, allocations: 47.98 kB / 0.5795 GB, free: 31.23 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001822/0.5816, allocations: 1.204 MB / 0.5807 GB, free: 30.04 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.042e-06/0.5816, allocations: 4 kB / 0.5807 GB, free: 30.03 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.002747/0.5844, allocations: 0.5937 MB / 0.5813 GB, free: 29.44 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 (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%) 7,(2,100.0%) 8,(1,100.0%) 1,(1,100.0%) 13,(1,100.0%) 8,(2,100.0%) 12} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003596/0.5847, allocations: 171.2 kB / 0.5814 GB, free: 29.27 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.003349/0.5881, allocations: 2.404 MB / 0.5838 GB, free: 26.8 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 5.691e-06/0.5881, allocations: 4 kB / 0.5838 GB, free: 26.79 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002139/0.5903, allocations: 1.758 MB / 0.5855 GB, free: 24.96 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00259/0.5929, allocations: 0.5331 MB / 0.586 GB, free: 24.45 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01069/0.6036, allocations: 7.157 MB / 0.593 GB, free: 17.25 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001828/0.6055, allocations: 2.335 MB / 0.5953 GB, free: 14.89 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.001724/0.6072, allocations: 420.1 kB / 0.5957 GB, free: 14.48 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000297/0.6075, allocations: 127.4 kB / 0.5958 GB, free: 14.36 MB / 366.1 MB Notification: Performance of SimCode: time 1.172e-06/0.6075, allocations: 0 / 0.5958 GB, free: 14.36 MB / 366.1 MB Notification: Performance of Templates: time 0.05392/0.6615, allocations: 28.61 MB / 0.6237 GB, free: 2.043 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: