Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr HanserModelica_HanserModelica.InductionMachines.IMS_Start.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.IMS_Start,tolerance=1e-06,outputFormat="empty",numberOfIntervals=30000,variableFilter="",fileNamePrefix="HanserModelica_HanserModelica.InductionMachines.IMS_Start") translateModel(HanserModelica.InductionMachines.IMS_Start,tolerance=1e-06,outputFormat="empty",numberOfIntervals=30000,variableFilter="",fileNamePrefix="HanserModelica_HanserModelica.InductionMachines.IMS_Start") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001318/0.001318, allocations: 107 kB / 15.99 MB, free: 6.355 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.402/1.402, allocations: 222.9 MB / 239.6 MB, free: 4.691 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.001307/0.001307, allocations: 196.4 kB / 289.9 MB, free: 2.434 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03458/0.03458, allocations: 8.799 MB / 348.9 MB, free: 4.824 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001565/0.001565, allocations: 78.08 kB / 411.2 MB, free: 42.34 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.12/0.1216, allocations: 51.56 MB / 462.8 MB, free: 14.75 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.InductionMachines.IMS_Start): time 0.04728/0.1689, allocations: 44.48 MB / 0.4954 GB, free: 2.062 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.03236/0.2013, allocations: 11.62 MB / 0.5067 GB, free: 6.406 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01357/0.215, allocations: 338.8 kB / 0.5071 GB, free: 6.074 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0298/0.2448, allocations: 11.62 MB / 0.5184 GB, free: 10.43 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.02054/0.2654, allocations: 4.331 MB / 0.5227 GB, free: 6.086 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01173/0.2771, allocations: 2.71 MB / 0.5253 GB, free: 3.395 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.3176/0.5947, allocations: 20.98 MB / 0.5458 GB, free: 6.406 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.08123/0.676, allocations: 47.16 MB / 0.5918 GB, free: 14.45 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.02439/0.7004, allocations: 10.91 MB / 0.6025 GB, free: 4.938 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.03014/0.7306, allocations: 12.75 MB / 0.6149 GB, free: 12.27 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.01212/0.7427, allocations: 3.129 MB / 0.618 GB, free: 9.145 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01883/0.7616, allocations: 3.545 MB / 0.6215 GB, free: 5.652 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0155/0.7772, allocations: 6.252 MB / 0.6276 GB, free: 15.54 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.03185/0.809, allocations: 11.9 MB / 0.6392 GB, free: 3.73 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.04723/0.8563, allocations: 36.18 MB / 0.6745 GB, free: 308 kB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.878e-06/0.8564, allocations: 7.984 kB / 0.6745 GB, free: 300 kB / 462.1 MB Notification: Performance of FrontEnd: time 1.883e-06/0.8564, allocations: 0 / 0.6745 GB, free: 300 kB / 462.1 MB Notification: Performance of Transformations before backend: time 0.001365/0.8578, allocations: 0 / 0.6745 GB, free: 300 kB / 462.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 5030 * Number of variables: 5030 Notification: Performance of Generate backend data structure: time 0.0906/0.9484, allocations: 23.95 MB / 0.6979 GB, free: 8.383 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.582e-05/0.9484, allocations: 8.031 kB / 0.6979 GB, free: 8.375 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.5521/1.501, allocations: 11.3 MB / 0.709 GB, free: 143.8 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03543/1.536, allocations: 13.01 MB / 0.7217 GB, free: 141.7 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.002708/1.539, allocations: 1.365 MB / 0.723 GB, free: 141.1 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.01028/1.549, allocations: 1.79 MB / 0.7247 GB, free: 140.5 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.08866/1.638, allocations: 29.61 MB / 0.7537 GB, free: 125.8 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.001036/1.639, allocations: 28.42 kB / 0.7537 GB, free: 125.8 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.007589/1.647, allocations: 0.7451 MB / 0.7544 GB, free: 125.2 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001115/1.648, allocations: 0.9857 MB / 0.7554 GB, free: 125 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.05843/1.706, allocations: 27.3 MB / 0.782 GB, free: 99.11 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1567/1.863, allocations: 94.02 MB / 0.8739 GB, free: 3.75 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.4248/2.288, allocations: 52.01 MB / 0.9246 GB, free: 102.4 MB / 0.4983 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.01326/2.301, allocations: 7.323 MB / 0.9318 GB, free: 102.3 MB / 0.4983 GB Notification: Performance of preOpt evalFunc (simulation): time 0.03814/2.339, allocations: 20.19 MB / 0.9515 GB, free: 96.21 MB / 0.4983 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.878e-05/2.339, allocations: 111 kB / 0.9516 GB, free: 96.13 MB / 0.4983 GB Notification: Performance of pre-optimization done (n=683): time 8.005e-06/2.339, allocations: 0 / 0.9516 GB, free: 96.13 MB / 0.4983 GB Notification: Performance of matching and sorting (n=691): time 0.08659/2.426, allocations: 38.8 MB / 0.9895 GB, free: 80.21 MB / 0.4983 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.608e-05/2.426, allocations: 149.2 kB / 0.9897 GB, free: 80.1 MB / 0.4983 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01098/2.437, allocations: 7.107 MB / 0.9966 GB, free: 76.41 MB / 0.4983 GB Notification: Performance of collectPreVariables (initialization): time 0.001356/2.438, allocations: 139.3 kB / 0.9967 GB, free: 76.29 MB / 0.4983 GB Notification: Performance of collectInitialEqns (initialization): time 0.003992/2.442, allocations: 7.798 MB / 1.004 GB, free: 69.5 MB / 0.4983 GB Notification: Performance of collectInitialBindings (initialization): time 0.002641/2.445, allocations: 2.345 MB / 1.007 GB, free: 67.48 MB / 0.4983 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003161/2.448, allocations: 1.875 MB / 1.008 GB, free: 66.37 MB / 0.4983 GB Notification: Performance of setup shared object (initialization): time 5.057e-05/2.448, allocations: 301.1 kB / 1.009 GB, free: 66.07 MB / 0.4983 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006638/2.455, allocations: 4.899 MB / 1.014 GB, free: 61.16 MB / 0.4983 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008978/2.464, allocations: 8.376 MB / 1.022 GB, free: 51.19 MB / 0.4983 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01586/2.48, allocations: 14.07 MB / 1.035 GB, free: 35.46 MB / 0.4983 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001078/2.48, allocations: 32 kB / 1.035 GB, free: 35.43 MB / 0.4983 GB Notification: Performance of matching and sorting (n=1241) (initialization): time 0.02714/2.507, allocations: 16.16 MB / 1.051 GB, free: 19.1 MB / 0.4983 GB Notification: Performance of prepare postOptimizeDAE: time 8.47e-05/2.507, allocations: 52 kB / 1.051 GB, free: 19.05 MB / 0.4983 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001656/2.508, allocations: 112 kB / 1.051 GB, free: 18.94 MB / 0.4983 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005888/2.513, allocations: 2.584 MB / 1.054 GB, free: 16.33 MB / 0.4983 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007836/2.521, allocations: 2.102 MB / 1.056 GB, free: 14.22 MB / 0.4983 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.258/2.779, allocations: 30.79 MB / 1.086 GB, free: 136.9 MB / 0.5139 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007844/2.787, allocations: 0.5296 MB / 1.087 GB, free: 136.9 MB / 0.5139 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001753/2.789, allocations: 459 kB / 1.087 GB, free: 136.9 MB / 0.5139 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 511 * Number of states: 0 () * Number of discrete variables: 12 (booleanStepQS[3].y,booleanStepQS[2].y,booleanStepQS[1].y,rheostatQS.booleanStep[3].y,rheostatQS.booleanStep[2].y,rheostatQS.booleanStep[1].y,rheostatM.booleanStep[3].y,rheostatM.booleanStep[2].y,rheostatM.booleanStep[1].y,idealCloser.control[3],idealCloser.control[2],idealCloser.control[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1092): * Single equations (assignments): 1079 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 8 * 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): 8 systems {(1,1,100.0%), (18,100,41.7%), (1,5,100.0%), (1,1,100.0%), (1,5,100.0%), (2,4,100.0%), (2,4,100.0%), (2,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.01229/2.801, allocations: 6.771 MB / 1.094 GB, free: 136.8 MB / 0.5139 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002732/2.804, allocations: 0.7668 MB / 1.094 GB, free: 136.8 MB / 0.5139 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02303/2.827, allocations: 13.16 MB / 1.107 GB, free: 135.4 MB / 0.5139 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01198/2.839, allocations: 8.305 MB / 1.115 GB, free: 132.2 MB / 0.5139 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.542e-05/2.839, allocations: 27.66 kB / 1.115 GB, free: 132.2 MB / 0.5139 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001032/2.839, allocations: 39.81 kB / 1.115 GB, free: 132.2 MB / 0.5139 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04504/2.884, allocations: 28.09 MB / 1.143 GB, free: 120.6 MB / 0.5139 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.515e-05/2.884, allocations: 6.531 kB / 1.143 GB, free: 120.6 MB / 0.5139 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004707/2.889, allocations: 1.109 MB / 1.144 GB, free: 120.6 MB / 0.5139 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.006255/2.895, allocations: 2.648 MB / 1.147 GB, free: 119.8 MB / 0.5139 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001122/2.897, allocations: 149.6 kB / 1.147 GB, free: 119.7 MB / 0.5139 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03088/2.927, allocations: 35.9 MB / 1.182 GB, free: 93.17 MB / 0.5139 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.569e-06/2.928, allocations: 7.938 kB / 1.182 GB, free: 93.16 MB / 0.5139 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02597/2.954, allocations: 18.9 MB / 1.2 GB, free: 74.4 MB / 0.5139 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004555/2.958, allocations: 1.763 MB / 1.202 GB, free: 73.02 MB / 0.5139 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002073/2.96, allocations: 128 kB / 1.202 GB, free: 72.89 MB / 0.5139 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004818/2.965, allocations: 395.6 kB / 1.202 GB, free: 72.5 MB / 0.5139 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00149/2.967, allocations: 0.5336 MB / 1.203 GB, free: 71.96 MB / 0.5139 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005417/2.967, allocations: 196 kB / 1.203 GB, free: 71.77 MB / 0.5139 GB Notification: Performance of sorting global known variables: time 0.00754/2.975, allocations: 4.786 MB / 1.208 GB, free: 67.02 MB / 0.5139 GB Notification: Performance of sort global known variables: time 6.21e-07/2.975, allocations: 0 / 1.208 GB, free: 67.02 MB / 0.5139 GB Notification: Performance of remove unused functions: time 0.01178/2.986, allocations: 3.059 MB / 1.211 GB, free: 63.96 MB / 0.5139 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 15 * Number of states: 11 (ims.inertiaRotor.w,ims.stator.zeroInductor.i0,ims.stator.core.Phi.re,ims.stator.core.Phi.im,ims.rotor.zeroInductor.i0,ims.rotor.core.Phi.re,ims.rotor.core.Phi.im,quadraticLoadTorque.phi,imsQS.inertiaRotor.w,imsQS.rotor.stray.port_p.reference.gamma,quadraticLoadTorqueQS.phi) * Number of discrete variables: 12 (idealCloser.control[1],idealCloser.control[2],idealCloser.control[3],rheostatM.booleanStep[1].y,rheostatM.booleanStep[2].y,rheostatM.booleanStep[3].y,rheostatQS.booleanStep[1].y,rheostatQS.booleanStep[2].y,rheostatQS.booleanStep[3].y,booleanStepQS[1].y,booleanStepQS[2].y,booleanStepQS[3].y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (563): * Single equations (assignments): 548 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 11 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 11 systems {(1,1,100.0%), (1,5,100.0%), (2,4,100.0%), (2,4,100.0%), (2,4,100.0%), (1,5,100.0%), (1,8,100.0%), (1,8,100.0%), (2,12,100.0%), (1,1,100.0%), (18,100,41.7%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.001566/2.988, allocations: 367.3 kB / 1.211 GB, free: 63.61 MB / 0.5139 GB Notification: Performance of simCode: created initialization part: time 0.04913/3.037, allocations: 25.18 MB / 1.236 GB, free: 38.38 MB / 0.5139 GB Notification: Performance of simCode: created event and clocks part: time 1.236e-05/3.037, allocations: 0.875 kB / 1.236 GB, free: 38.38 MB / 0.5139 GB Notification: Performance of simCode: created simulation system equations: time 0.01119/3.048, allocations: 7.59 MB / 1.243 GB, free: 30.7 MB / 0.5139 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01297/3.061, allocations: 2.148 MB / 1.245 GB, free: 28.6 MB / 0.5139 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.264/3.326, allocations: 39.53 MB / 1.284 GB, free: 149.1 MB / 0.5295 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.02071/3.346, allocations: 10.99 MB / 1.295 GB, free: 148.1 MB / 0.5295 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003411/3.35, allocations: 0.645 MB / 1.295 GB, free: 148 MB / 0.5295 GB Notification: Performance of SimCode: time 1.683e-06/3.35, allocations: 0.5312 kB / 1.295 GB, free: 148 MB / 0.5295 GB Notification: Performance of Templates: time 2.476/5.826, allocations: 1.228 GB / 2.523 GB, free: 163.5 MB / 0.5608 GB make -j1 -f HanserModelica_HanserModelica.InductionMachines.IMS_Start.makefile (rm -f HanserModelica_HanserModelica.InductionMachines.IMS_Start.pipe ; mkfifo HanserModelica_HanserModelica.InductionMachines.IMS_Start.pipe ; head -c 1048576 < HanserModelica_HanserModelica.InductionMachines.IMS_Start.pipe >> ../files/HanserModelica_HanserModelica.InductionMachines.IMS_Start.sim & ./HanserModelica_HanserModelica.InductionMachines.IMS_Start -abortSlowSimulation -alarm=480 -lv LOG_STATS > HanserModelica_HanserModelica.InductionMachines.IMS_Start.pipe 2>&1)