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.001596/0.001595, allocations: 106.6 kB / 16.41 MB, free: 6.508 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.541/1.541, allocations: 222.9 MB / 240.1 MB, free: 4.547 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.001516/0.001516, allocations: 188.5 kB / 290.4 MB, free: 2.27 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03402/0.03402, allocations: 8.793 MB / 349.3 MB, free: 4.625 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001544/0.001544, allocations: 83.88 kB / 464.6 MB, free: 13.08 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.118/0.1195, allocations: 51.55 MB / 0.5041 GB, free: 9.484 MB / 350.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.InductionMachines.IMS_Start): time 0.3122/0.4318, allocations: 45.33 MB / 0.5483 GB, free: 2.621 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.03009/0.4619, allocations: 11.78 MB / 0.5598 GB, free: 14.15 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01387/0.4758, allocations: 355.1 kB / 0.5602 GB, free: 14.07 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.03287/0.5088, allocations: 12.34 MB / 0.5722 GB, free: 6.273 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.02203/0.5308, allocations: 4.802 MB / 0.5769 GB, free: 2.375 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01204/0.5429, allocations: 2.918 MB / 0.5798 GB, free: 40 kB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0336/0.5765, allocations: 20.95 MB / 0.6002 GB, free: 15.57 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.07898/0.6555, allocations: 41.95 MB / 0.6412 GB, free: 5.348 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.02082/0.6764, allocations: 10.98 MB / 0.6519 GB, free: 10.34 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.02346/0.6999, allocations: 12.02 MB / 0.6637 GB, free: 14.28 MB / 478.1 MB Notification: Performance of NFPackage.collectConstants: time 0.01207/0.712, allocations: 3.133 MB / 0.6667 GB, free: 11.14 MB / 478.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01688/0.7289, allocations: 3.539 MB / 0.6702 GB, free: 7.605 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 0.01206/0.7411, allocations: 6.243 MB / 0.6763 GB, free: 1.348 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.02804/0.7691, allocations: 11.9 MB / 0.6879 GB, free: 5.395 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.6401/1.409, allocations: 41.42 MB / 0.7283 GB, free: 83.94 MB / 0.5138 GB Notification: Performance of FrontEnd - DAE generated: time 8.546e-06/1.409, allocations: 2.297 kB / 0.7283 GB, free: 83.94 MB / 0.5138 GB Notification: Performance of FrontEnd: time 2.174e-06/1.409, allocations: 0 / 0.7283 GB, free: 83.94 MB / 0.5138 GB Notification: Performance of Transformations before backend: time 0.001276/1.411, allocations: 0 / 0.7283 GB, free: 83.94 MB / 0.5138 GB 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.08988/1.501, allocations: 23.89 MB / 0.7517 GB, free: 78.03 MB / 0.5138 GB Notification: Performance of prepare preOptimizeDAE: time 4.671e-05/1.501, allocations: 13.09 kB / 0.7517 GB, free: 78.03 MB / 0.5138 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.06308/1.564, allocations: 11.34 MB / 0.7628 GB, free: 75.44 MB / 0.5138 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03606/1.6, allocations: 13.41 MB / 0.7759 GB, free: 70.8 MB / 0.5138 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.002257/1.602, allocations: 1.364 MB / 0.7772 GB, free: 70.18 MB / 0.5138 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.01004/1.612, allocations: 1.784 MB / 0.7789 GB, free: 68.43 MB / 0.5138 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0875/1.7, allocations: 29.58 MB / 0.8078 GB, free: 38.77 MB / 0.5138 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.001097/1.701, allocations: 23.55 kB / 0.8078 GB, free: 38.75 MB / 0.5138 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.008136/1.709, allocations: 0.7455 MB / 0.8086 GB, free: 38.03 MB / 0.5138 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0009304/1.71, allocations: 0.9879 MB / 0.8095 GB, free: 37.04 MB / 0.5138 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.05702/1.767, allocations: 27.29 MB / 0.8362 GB, free: 9.727 MB / 0.5138 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1851/1.952, allocations: 92.92 MB / 0.9269 GB, free: 12.41 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.3209/2.273, allocations: 51.96 MB / 0.9777 GB, free: 201.9 MB / 0.6232 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.01351/2.287, allocations: 7.297 MB / 0.9848 GB, free: 201.8 MB / 0.6232 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0373/2.324, allocations: 20 MB / 1.004 GB, free: 195.3 MB / 0.6232 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.324e-05/2.324, allocations: 114.3 kB / 1.004 GB, free: 195.2 MB / 0.6232 GB Notification: Performance of pre-optimization done (n=677): time 8.025e-06/2.324, allocations: 3.938 kB / 1.004 GB, free: 195.2 MB / 0.6232 GB Notification: Performance of matching and sorting (n=685): time 0.08607/2.41, allocations: 38.13 MB / 1.042 GB, free: 179.5 MB / 0.6232 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.736e-05/2.41, allocations: 148 kB / 1.042 GB, free: 179.4 MB / 0.6232 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01072/2.421, allocations: 7.108 MB / 1.049 GB, free: 174.9 MB / 0.6232 GB Notification: Performance of collectPreVariables (initialization): time 0.001432/2.422, allocations: 145.7 kB / 1.049 GB, free: 174.8 MB / 0.6232 GB Notification: Performance of collectInitialEqns (initialization): time 0.003949/2.426, allocations: 7.804 MB / 1.057 GB, free: 167.2 MB / 0.6232 GB Notification: Performance of collectInitialBindings (initialization): time 0.002669/2.429, allocations: 2.323 MB / 1.059 GB, free: 164.9 MB / 0.6232 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003152/2.432, allocations: 1.862 MB / 1.061 GB, free: 163 MB / 0.6232 GB Notification: Performance of setup shared object (initialization): time 5.911e-05/2.432, allocations: 305.1 kB / 1.061 GB, free: 162.7 MB / 0.6232 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006538/2.439, allocations: 4.86 MB / 1.066 GB, free: 157.8 MB / 0.6232 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008844/2.448, allocations: 8.336 MB / 1.074 GB, free: 147.9 MB / 0.6232 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01571/2.463, allocations: 13.99 MB / 1.087 GB, free: 132.3 MB / 0.6232 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001087/2.464, allocations: 32 kB / 1.087 GB, free: 132.3 MB / 0.6232 GB Notification: Performance of matching and sorting (n=1235) (initialization): time 0.0278/2.491, allocations: 16.08 MB / 1.103 GB, free: 116 MB / 0.6232 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001673/2.492, allocations: 55.98 kB / 1.103 GB, free: 116 MB / 0.6232 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002145/2.492, allocations: 116.1 kB / 1.103 GB, free: 115.8 MB / 0.6232 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.006152/2.498, allocations: 2.571 MB / 1.106 GB, free: 113.2 MB / 0.6232 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008154/2.506, allocations: 2.098 MB / 1.108 GB, free: 111.1 MB / 0.6232 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03229/2.539, allocations: 30.79 MB / 1.138 GB, free: 79.27 MB / 0.6232 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008743/2.547, allocations: 0.5267 MB / 1.138 GB, free: 78.74 MB / 0.6232 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002249/2.55, allocations: 470.4 kB / 1.139 GB, free: 78.29 MB / 0.6232 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 (1089): * Single equations (assignments): 1079 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * 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,38.3%), (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.01288/2.563, allocations: 6.76 MB / 1.146 GB, free: 71.51 MB / 0.6232 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002129/2.565, allocations: 0.765 MB / 1.146 GB, free: 70.73 MB / 0.6232 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02198/2.587, allocations: 13.08 MB / 1.159 GB, free: 57.44 MB / 0.6232 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01309/2.6, allocations: 8.208 MB / 1.167 GB, free: 49.13 MB / 0.6232 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.291e-05/2.6, allocations: 31.98 kB / 1.167 GB, free: 49.1 MB / 0.6232 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001695/2.6, allocations: 35.81 kB / 1.167 GB, free: 49.07 MB / 0.6232 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05363/2.654, allocations: 27.91 MB / 1.194 GB, free: 20.99 MB / 0.6232 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.995e-05/2.654, allocations: 4 kB / 1.194 GB, free: 20.98 MB / 0.6232 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00514/2.659, allocations: 1.112 MB / 1.195 GB, free: 19.87 MB / 0.6232 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00632/2.665, allocations: 2.641 MB / 1.198 GB, free: 17.2 MB / 0.6232 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.00151/2.667, allocations: 151.9 kB / 1.198 GB, free: 17.05 MB / 0.6232 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2995/2.966, allocations: 35.84 MB / 1.233 GB, free: 199 MB / 0.6232 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.045e-06/2.966, allocations: 9.438 kB / 1.233 GB, free: 199 MB / 0.6232 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03242/2.999, allocations: 18.78 MB / 1.252 GB, free: 194.9 MB / 0.6232 GB Notification: Performance of postOpt removeConstants (simulation): time 0.005439/3.004, allocations: 1.754 MB / 1.253 GB, free: 194.3 MB / 0.6232 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002666/3.007, allocations: 127.5 kB / 1.253 GB, free: 194.2 MB / 0.6232 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00676/3.014, allocations: 394.5 kB / 1.254 GB, free: 194.1 MB / 0.6232 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002678/3.017, allocations: 0.5228 MB / 1.254 GB, free: 194.1 MB / 0.6232 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001088/3.018, allocations: 197.5 kB / 1.254 GB, free: 194 MB / 0.6232 GB Notification: Performance of sorting global known variables: time 0.01041/3.028, allocations: 4.785 MB / 1.259 GB, free: 192.3 MB / 0.6232 GB Notification: Performance of sort global known variables: time 4e-07/3.028, allocations: 0 / 1.259 GB, free: 192.3 MB / 0.6232 GB Notification: Performance of remove unused functions: time 0.01464/3.043, allocations: 3.061 MB / 1.262 GB, free: 192 MB / 0.6232 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 (560): * Single equations (assignments): 548 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * 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.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.002211/3.045, allocations: 363.1 kB / 1.262 GB, free: 191.8 MB / 0.6232 GB Notification: Performance of simCode: created initialization part: time 0.021/3.066, allocations: 13.37 MB / 1.276 GB, free: 186.1 MB / 0.6232 GB Notification: Performance of simCode: created event and clocks part: time 1.163e-05/3.066, allocations: 5.188 kB / 1.276 GB, free: 186.1 MB / 0.6232 GB Notification: Performance of simCode: created simulation system equations: time 0.01131/3.077, allocations: 7.552 MB / 1.283 GB, free: 182.3 MB / 0.6232 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0138/3.091, allocations: 2.146 MB / 1.285 GB, free: 181.6 MB / 0.6232 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06051/3.152, allocations: 31.43 MB / 1.316 GB, free: 155.2 MB / 0.6232 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01905/3.171, allocations: 10.99 MB / 1.326 GB, free: 146.7 MB / 0.6232 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003631/3.175, allocations: 0.6385 MB / 1.327 GB, free: 146.1 MB / 0.6232 GB Notification: Performance of SimCode: time 1.272e-06/3.175, allocations: 0 / 1.327 GB, free: 146.1 MB / 0.6232 GB Notification: Performance of Templates: time 2.57/5.744, allocations: 1.229 GB / 2.556 GB, free: 75.9 MB / 0.6544 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)