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.00768/0.007681, allocations: 97.41 kB / 15.73 MB, free: 6.039 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.507/1.507, allocations: 222.9 MB / 239.4 MB, free: 4.574 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.001487/0.001487, allocations: 196.4 kB / 289.7 MB, free: 2.277 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03412/0.03412, allocations: 8.785 MB / 348.6 MB, free: 4.645 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00156/0.00156, allocations: 75.88 kB / 463.9 MB, free: 13.14 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1264/0.128, allocations: 51.56 MB / 0.5034 GB, free: 9.535 MB / 350.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.InductionMachines.IMS_Start): time 0.3339/0.4619, allocations: 45.32 MB / 0.5477 GB, free: 2.641 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.03205/0.494, allocations: 11.78 MB / 0.5592 GB, free: 14.16 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01569/0.5098, allocations: 355.4 kB / 0.5595 GB, free: 14.09 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.03332/0.5432, allocations: 12.35 MB / 0.5716 GB, free: 6.32 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.02461/0.5678, allocations: 4.798 MB / 0.5763 GB, free: 2.426 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01184/0.5797, allocations: 2.922 MB / 0.5791 GB, free: 88 kB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0323/0.612, allocations: 20.94 MB / 0.5996 GB, free: 15.62 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.08796/0.7, allocations: 41.95 MB / 0.6405 GB, free: 5.406 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.02356/0.7236, allocations: 10.93 MB / 0.6512 GB, free: 10.45 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.02452/0.7482, allocations: 12.02 MB / 0.6629 GB, free: 14.38 MB / 478.1 MB Notification: Performance of NFPackage.collectConstants: time 0.01231/0.7606, allocations: 3.133 MB / 0.666 GB, free: 11.25 MB / 478.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01481/0.7754, allocations: 3.539 MB / 0.6695 GB, free: 7.711 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 0.01441/0.7899, allocations: 6.243 MB / 0.6756 GB, free: 1.453 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.02729/0.8172, allocations: 11.91 MB / 0.6872 GB, free: 5.496 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.6558/1.473, allocations: 41.52 MB / 0.7277 GB, free: 83.97 MB / 0.5138 GB Notification: Performance of FrontEnd - DAE generated: time 8.887e-06/1.473, allocations: 0 / 0.7277 GB, free: 83.97 MB / 0.5138 GB Notification: Performance of FrontEnd: time 2.956e-06/1.473, allocations: 1.031 kB / 0.7277 GB, free: 83.97 MB / 0.5138 GB Notification: Performance of Transformations before backend: time 0.001594/1.475, allocations: 0 / 0.7277 GB, free: 83.97 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.1015/1.576, allocations: 24.32 MB / 0.7515 GB, free: 77.38 MB / 0.5138 GB Notification: Performance of prepare preOptimizeDAE: time 5.211e-05/1.576, allocations: 11.02 kB / 0.7515 GB, free: 77.38 MB / 0.5138 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.06307/1.639, allocations: 11.44 MB / 0.7627 GB, free: 74.71 MB / 0.5138 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03443/1.674, allocations: 13.46 MB / 0.7758 GB, free: 70.01 MB / 0.5138 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001765/1.676, allocations: 1.368 MB / 0.7771 GB, free: 69.31 MB / 0.5138 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.01009/1.686, allocations: 1.79 MB / 0.7789 GB, free: 67.54 MB / 0.5138 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0847/1.771, allocations: 29.58 MB / 0.8078 GB, free: 37.88 MB / 0.5138 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0009137/1.771, allocations: 27.75 kB / 0.8078 GB, free: 37.86 MB / 0.5138 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.008893/1.78, allocations: 0.7394 MB / 0.8085 GB, free: 37.14 MB / 0.5138 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000915/1.781, allocations: 0.9868 MB / 0.8095 GB, free: 36.14 MB / 0.5138 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.05634/1.838, allocations: 27.3 MB / 0.8362 GB, free: 8.828 MB / 0.5138 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1998/2.037, allocations: 93.15 MB / 0.9271 GB, free: 11.31 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.3438/2.381, allocations: 51.97 MB / 0.9779 GB, free: 200.5 MB / 0.6232 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.01496/2.396, allocations: 7.294 MB / 0.985 GB, free: 200.4 MB / 0.6232 GB Notification: Performance of preOpt evalFunc (simulation): time 0.03963/2.436, allocations: 20.04 MB / 1.005 GB, free: 194 MB / 0.6232 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001346/2.436, allocations: 114.8 kB / 1.005 GB, free: 193.9 MB / 0.6232 GB Notification: Performance of pre-optimization done (n=677): time 1.222e-05/2.436, allocations: 0 / 1.005 GB, free: 193.9 MB / 0.6232 GB Notification: Performance of matching and sorting (n=685): time 0.1004/2.537, allocations: 38.54 MB / 1.042 GB, free: 177.9 MB / 0.6232 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.668e-05/2.537, allocations: 152.4 kB / 1.042 GB, free: 177.8 MB / 0.6232 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009883/2.547, allocations: 7.112 MB / 1.049 GB, free: 173.3 MB / 0.6232 GB Notification: Performance of collectPreVariables (initialization): time 0.001133/2.548, allocations: 137.7 kB / 1.05 GB, free: 173.2 MB / 0.6232 GB Notification: Performance of collectInitialEqns (initialization): time 0.003343/2.551, allocations: 8.065 MB / 1.057 GB, free: 165.3 MB / 0.6232 GB Notification: Performance of collectInitialBindings (initialization): time 0.002135/2.553, allocations: 2.437 MB / 1.06 GB, free: 162.9 MB / 0.6232 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002743/2.556, allocations: 1.879 MB / 1.062 GB, free: 161 MB / 0.6232 GB Notification: Performance of setup shared object (initialization): time 4.148e-05/2.556, allocations: 301.1 kB / 1.062 GB, free: 160.7 MB / 0.6232 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006052/2.562, allocations: 4.86 MB / 1.067 GB, free: 155.9 MB / 0.6232 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007584/2.57, allocations: 8.34 MB / 1.075 GB, free: 145.9 MB / 0.6232 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01542/2.585, allocations: 13.99 MB / 1.088 GB, free: 130.3 MB / 0.6232 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.576e-05/2.585, allocations: 32 kB / 1.088 GB, free: 130.3 MB / 0.6232 GB Notification: Performance of matching and sorting (n=1235) (initialization): time 0.02544/2.611, allocations: 16.12 MB / 1.104 GB, free: 114 MB / 0.6232 GB Notification: Performance of prepare postOptimizeDAE: time 9.35e-05/2.611, allocations: 52 kB / 1.104 GB, free: 113.9 MB / 0.6232 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001351/2.611, allocations: 113.9 kB / 1.104 GB, free: 113.8 MB / 0.6232 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005884/2.617, allocations: 2.577 MB / 1.107 GB, free: 111.2 MB / 0.6232 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007503/2.625, allocations: 2.103 MB / 1.109 GB, free: 109.1 MB / 0.6232 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02985/2.654, allocations: 30.8 MB / 1.139 GB, free: 77.23 MB / 0.6232 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007606/2.662, allocations: 0.5308 MB / 1.14 GB, free: 76.7 MB / 0.6232 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001691/2.664, allocations: 460 kB / 1.14 GB, free: 76.25 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.01101/2.675, allocations: 6.768 MB / 1.147 GB, free: 69.47 MB / 0.6232 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002239/2.677, allocations: 0.8034 MB / 1.147 GB, free: 68.66 MB / 0.6232 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02339/2.7, allocations: 13.08 MB / 1.16 GB, free: 55.37 MB / 0.6232 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01386/2.714, allocations: 8.22 MB / 1.168 GB, free: 47.05 MB / 0.6232 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001033/2.714, allocations: 24 kB / 1.168 GB, free: 47.03 MB / 0.6232 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001548/2.715, allocations: 43.8 kB / 1.168 GB, free: 46.98 MB / 0.6232 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05642/2.771, allocations: 27.92 MB / 1.196 GB, free: 18.9 MB / 0.6232 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.505e-05/2.771, allocations: 4.938 kB / 1.196 GB, free: 18.89 MB / 0.6232 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005096/2.776, allocations: 1.108 MB / 1.197 GB, free: 17.79 MB / 0.6232 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.006618/2.783, allocations: 2.628 MB / 1.199 GB, free: 15.12 MB / 0.6232 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001321/2.784, allocations: 152 kB / 1.199 GB, free: 14.97 MB / 0.6232 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.3035/3.088, allocations: 35.88 MB / 1.234 GB, free: 197.3 MB / 0.6232 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.869e-06/3.088, allocations: 3.719 kB / 1.234 GB, free: 197.3 MB / 0.6232 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03286/3.121, allocations: 18.82 MB / 1.253 GB, free: 192.7 MB / 0.6232 GB Notification: Performance of postOpt removeConstants (simulation): time 0.005446/3.126, allocations: 1.8 MB / 1.254 GB, free: 192.1 MB / 0.6232 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002961/3.129, allocations: 130.8 kB / 1.255 GB, free: 192 MB / 0.6232 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005439/3.135, allocations: 391.5 kB / 1.255 GB, free: 192 MB / 0.6232 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001751/3.136, allocations: 0.5263 MB / 1.256 GB, free: 191.9 MB / 0.6232 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005641/3.137, allocations: 192.2 kB / 1.256 GB, free: 191.8 MB / 0.6232 GB Notification: Performance of sorting global known variables: time 0.007134/3.144, allocations: 4.792 MB / 1.26 GB, free: 190.1 MB / 0.6232 GB Notification: Performance of sort global known variables: time 3.61e-07/3.144, allocations: 3.938 kB / 1.26 GB, free: 190.1 MB / 0.6232 GB Notification: Performance of remove unused functions: time 0.01156/3.156, allocations: 3.051 MB / 1.263 GB, free: 189.8 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.001664/3.157, allocations: 367.3 kB / 1.264 GB, free: 189.6 MB / 0.6232 GB Notification: Performance of simCode: created initialization part: time 0.0229/3.18, allocations: 13.39 MB / 1.277 GB, free: 183.9 MB / 0.6232 GB Notification: Performance of simCode: created event and clocks part: time 1.596e-05/3.18, allocations: 6.812 kB / 1.277 GB, free: 183.9 MB / 0.6232 GB Notification: Performance of simCode: created simulation system equations: time 0.01385/3.194, allocations: 7.574 MB / 1.284 GB, free: 180.1 MB / 0.6232 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01383/3.208, allocations: 2.145 MB / 1.286 GB, free: 179.3 MB / 0.6232 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06499/3.273, allocations: 32.41 MB / 1.318 GB, free: 151.7 MB / 0.6232 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01851/3.292, allocations: 11.35 MB / 1.329 GB, free: 143 MB / 0.6232 GB Notification: Performance of simCode: alias equations: time 0.01137/3.303, allocations: 3.286 MB / 1.332 GB, free: 140.7 MB / 0.6232 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002787/3.306, allocations: 0.5658 MB / 1.333 GB, free: 140.1 MB / 0.6232 GB Notification: Performance of SimCode: time 1.072e-06/3.306, allocations: 0 / 1.333 GB, free: 140.1 MB / 0.6232 GB Notification: Performance of Templates: time 0.4539/3.76, allocations: 130.6 MB / 1.46 GB, free: 194.3 MB / 0.6232 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)