Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr HanserModelica_HanserModelica.InductionMachines.IMC_DOL.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_DOL,tolerance=1e-06,outputFormat="empty",numberOfIntervals=20000,variableFilter="",fileNamePrefix="HanserModelica_HanserModelica.InductionMachines.IMC_DOL") translateModel(HanserModelica.InductionMachines.IMC_DOL,tolerance=1e-06,outputFormat="empty",numberOfIntervals=20000,variableFilter="",fileNamePrefix="HanserModelica_HanserModelica.InductionMachines.IMC_DOL") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001406/0.001406, allocations: 119.1 kB / 16.37 MB, free: 6.004 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.363/1.363, allocations: 222.9 MB / 240 MB, free: 4.508 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.001305/0.001305, allocations: 188.2 kB / 290.3 MB, free: 2.242 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03474/0.03474, allocations: 8.803 MB / 349.3 MB, free: 4.59 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00163/0.00163, allocations: 80.47 kB / 412.5 MB, free: 41.9 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09796/0.09961, allocations: 51.57 MB / 464.1 MB, free: 13.64 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.InductionMachines.IMC_DOL): time 0.03775/0.1374, allocations: 38.31 MB / 0.4906 GB, free: 7.148 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01908/0.1565, allocations: 10.04 MB / 0.5004 GB, free: 13.08 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006146/0.1627, allocations: 291.1 kB / 0.5007 GB, free: 12.79 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.02096/0.1837, allocations: 10.12 MB / 0.5106 GB, free: 2.645 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.013/0.1967, allocations: 4.05 MB / 0.5146 GB, free: 14.58 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007744/0.2045, allocations: 2.374 MB / 0.5169 GB, free: 12.21 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.2096/0.4141, allocations: 16.38 MB / 0.5329 GB, free: 7.02 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.04075/0.4549, allocations: 31.19 MB / 0.5633 GB, free: 2.379 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01334/0.4683, allocations: 8.487 MB / 0.5716 GB, free: 0 / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01452/0.4829, allocations: 9.33 MB / 0.5807 GB, free: 9.512 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.006017/0.4889, allocations: 2.418 MB / 0.5831 GB, free: 7.094 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01006/0.499, allocations: 2.813 MB / 0.5858 GB, free: 4.391 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.007603/0.5066, allocations: 4.804 MB / 0.5905 GB, free: 344 kB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.02216/0.5288, allocations: 9.249 MB / 0.5996 GB, free: 7.871 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.03498/0.5638, allocations: 32.1 MB / 0.6309 GB, free: 10.06 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.911e-06/0.5639, allocations: 0 / 0.6309 GB, free: 10.06 MB / 430.1 MB Notification: Performance of FrontEnd: time 2.475e-06/0.5639, allocations: 0 / 0.6309 GB, free: 10.06 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0008408/0.5647, allocations: 0 / 0.6309 GB, free: 10.06 MB / 430.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3921 * Number of variables: 3921 Notification: Performance of Generate backend data structure: time 0.05808/0.6228, allocations: 18.67 MB / 0.6491 GB, free: 7.402 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.719e-05/0.6229, allocations: 16.02 kB / 0.6492 GB, free: 7.387 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04704/0.6699, allocations: 8.292 MB / 0.6572 GB, free: 15.17 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02167/0.6916, allocations: 10.2 MB / 0.6672 GB, free: 5.336 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008117/0.6925, allocations: 1.057 MB / 0.6682 GB, free: 4.289 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004174/0.6967, allocations: 1.4 MB / 0.6696 GB, free: 2.902 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04584/0.7425, allocations: 22.75 MB / 0.6918 GB, free: 12.11 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003245/0.7429, allocations: 23.27 kB / 0.6918 GB, free: 12.09 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001585/0.7445, allocations: 0.5778 MB / 0.6924 GB, free: 11.52 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006413/0.7451, allocations: 0.7754 MB / 0.6932 GB, free: 10.75 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.4168/1.162, allocations: 21.01 MB / 0.7137 GB, free: 147.4 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.127/1.289, allocations: 72 MB / 0.784 GB, free: 99.95 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02645/1.315, allocations: 42.42 MB / 0.8254 GB, free: 54.51 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.008152/1.324, allocations: 5.207 MB / 0.8305 GB, free: 49.32 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02553/1.349, allocations: 12.68 MB / 0.8429 GB, free: 36.69 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.079e-05/1.349, allocations: 90.7 kB / 0.843 GB, free: 36.59 MB / 494.1 MB Notification: Performance of pre-optimization done (n=498): time 7.504e-06/1.349, allocations: 0 / 0.843 GB, free: 36.59 MB / 494.1 MB Notification: Performance of matching and sorting (n=506): time 0.05358/1.403, allocations: 26.36 MB / 0.8687 GB, free: 9.914 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.568e-05/1.403, allocations: 129.3 kB / 0.8688 GB, free: 9.766 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009812/1.413, allocations: 5.771 MB / 0.8745 GB, free: 4.016 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0008805/1.414, allocations: 109.7 kB / 0.8746 GB, free: 3.902 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003857/1.418, allocations: 6.153 MB / 0.8806 GB, free: 13.71 MB / 0.4982 GB Notification: Performance of collectInitialBindings (initialization): time 0.002831/1.42, allocations: 1.728 MB / 0.8823 GB, free: 12 MB / 0.4982 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.004171/1.425, allocations: 1.465 MB / 0.8837 GB, free: 10.52 MB / 0.4982 GB Notification: Performance of setup shared object (initialization): time 0.0001064/1.425, allocations: 305.1 kB / 0.884 GB, free: 10.22 MB / 0.4982 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006226/1.431, allocations: 3.634 MB / 0.8875 GB, free: 6.586 MB / 0.4982 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.2144/1.645, allocations: 6.464 MB / 0.8938 GB, free: 149.6 MB / 0.4982 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01236/1.658, allocations: 10.76 MB / 0.9044 GB, free: 145.9 MB / 0.4982 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.233e-05/1.658, allocations: 26.5 kB / 0.9044 GB, free: 145.9 MB / 0.4982 GB Notification: Performance of matching and sorting (n=962) (initialization): time 0.01942/1.677, allocations: 12.08 MB / 0.9162 GB, free: 143 MB / 0.4982 GB Notification: Performance of prepare postOptimizeDAE: time 5.908e-05/1.677, allocations: 52.47 kB / 0.9162 GB, free: 143 MB / 0.4982 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001197/1.678, allocations: 91.53 kB / 0.9163 GB, free: 143 MB / 0.4982 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003934/1.682, allocations: 1.61 MB / 0.9179 GB, free: 142.6 MB / 0.4982 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00535/1.687, allocations: 1.664 MB / 0.9195 GB, free: 142.4 MB / 0.4982 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01932/1.706, allocations: 19.67 MB / 0.9387 GB, free: 129.4 MB / 0.4982 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005597/1.712, allocations: 422.6 kB / 0.9391 GB, free: 129.3 MB / 0.4982 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000921/1.713, allocations: 365 kB / 0.9395 GB, free: 129.2 MB / 0.4982 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 423 * Number of states: 0 () * Number of discrete variables: 6 (booleanStepQS[3].y,booleanStepQS[2].y,booleanStepQS[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 (865): * Single equations (assignments): 858 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 5 * 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): 5 systems {(1,1,100.0%), (12,64,52.1%), (1,5,100.0%), (1,1,100.0%), (1,13,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.008195/1.721, allocations: 5.182 MB / 0.9445 GB, free: 126.7 MB / 0.4982 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001367/1.722, allocations: 0.6045 MB / 0.9451 GB, free: 126.7 MB / 0.4982 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01408/1.736, allocations: 9.362 MB / 0.9543 GB, free: 122.8 MB / 0.4982 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.007703/1.744, allocations: 5.877 MB / 0.96 GB, free: 120 MB / 0.4982 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.574e-05/1.744, allocations: 16 kB / 0.96 GB, free: 119.9 MB / 0.4982 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.19e-05/1.744, allocations: 29.95 kB / 0.96 GB, free: 119.9 MB / 0.4982 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03418/1.779, allocations: 21 MB / 0.9806 GB, free: 102.2 MB / 0.4982 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.229e-05/1.779, allocations: 12.08 kB / 0.9806 GB, free: 102.2 MB / 0.4982 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003394/1.782, allocations: 0.862 MB / 0.9814 GB, free: 101.3 MB / 0.4982 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004251/1.786, allocations: 1.643 MB / 0.983 GB, free: 99.63 MB / 0.4982 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005179/1.787, allocations: 131.2 kB / 0.9831 GB, free: 99.51 MB / 0.4982 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02107/1.808, allocations: 23.23 MB / 1.006 GB, free: 75.58 MB / 0.4982 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.694e-06/1.808, allocations: 13.27 kB / 1.006 GB, free: 75.57 MB / 0.4982 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.021/1.829, allocations: 13.71 MB / 1.019 GB, free: 61.76 MB / 0.4982 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004354/1.833, allocations: 1.363 MB / 1.021 GB, free: 60.38 MB / 0.4982 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00186/1.835, allocations: 111.9 kB / 1.021 GB, free: 60.27 MB / 0.4982 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003992/1.839, allocations: 283.7 kB / 1.021 GB, free: 59.99 MB / 0.4982 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001131/1.84, allocations: 413.7 kB / 1.021 GB, free: 59.58 MB / 0.4982 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005258/1.841, allocations: 152 kB / 1.021 GB, free: 59.43 MB / 0.4982 GB Notification: Performance of sorting global known variables: time 0.007712/1.849, allocations: 3.887 MB / 1.025 GB, free: 55.57 MB / 0.4982 GB Notification: Performance of sort global known variables: time 1.232e-06/1.849, allocations: 0 / 1.025 GB, free: 55.57 MB / 0.4982 GB Notification: Performance of remove unused functions: time 0.009725/1.858, allocations: 2.345 MB / 1.028 GB, free: 53.23 MB / 0.4982 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 27 * Number of states: 10 (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,loadInertiaQS.w,quadraticLoadTorqueQS.phi,imcQS.rotorCage.port_p.reference.gamma) * Number of discrete variables: 6 (idealCloser.control[1],idealCloser.control[2],idealCloser.control[3],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 (438): * Single equations (assignments): 430 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 7 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 7 systems {(1,1,100.0%), (1,13,100.0%), (1,5,100.0%), (1,8,100.0%), (2,12,100.0%), (1,1,100.0%), (12,64,52.8%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.001046/1.859, allocations: 313.3 kB / 1.028 GB, free: 52.94 MB / 0.4982 GB Notification: Performance of simCode: created initialization part: time 0.01456/1.874, allocations: 9.897 MB / 1.038 GB, free: 42.96 MB / 0.4982 GB Notification: Performance of simCode: created event and clocks part: time 1.037e-05/1.874, allocations: 4 kB / 1.038 GB, free: 42.95 MB / 0.4982 GB Notification: Performance of simCode: created simulation system equations: time 0.008234/1.882, allocations: 5.463 MB / 1.043 GB, free: 37.41 MB / 0.4982 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008625/1.891, allocations: 1.628 MB / 1.044 GB, free: 35.84 MB / 0.4982 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04655/1.938, allocations: 24.6 MB / 1.068 GB, free: 11.16 MB / 0.4982 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01185/1.949, allocations: 8.848 MB / 1.077 GB, free: 2.266 MB / 0.4982 GB Notification: Performance of simCode: alias equations: time 0.2482/2.198, allocations: 2.526 MB / 1.08 GB, free: 132.8 MB / 0.4982 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00151/2.199, allocations: 457 kB / 1.08 GB, free: 132.8 MB / 0.4982 GB Notification: Performance of SimCode: time 9.92e-07/2.199, allocations: 0 / 1.08 GB, free: 132.8 MB / 0.4982 GB Notification: Performance of Templates: time 0.151/2.35, allocations: 94.42 MB / 1.172 GB, free: 77.5 MB / 0.4982 GB make -j1 -f HanserModelica_HanserModelica.InductionMachines.IMC_DOL.makefile (rm -f HanserModelica_HanserModelica.InductionMachines.IMC_DOL.pipe ; mkfifo HanserModelica_HanserModelica.InductionMachines.IMC_DOL.pipe ; head -c 1048576 < HanserModelica_HanserModelica.InductionMachines.IMC_DOL.pipe >> ../files/HanserModelica_HanserModelica.InductionMachines.IMC_DOL.sim & ./HanserModelica_HanserModelica.InductionMachines.IMC_DOL -abortSlowSimulation -alarm=480 -s gbode -lv LOG_STATS > HanserModelica_HanserModelica.InductionMachines.IMC_DOL.pipe 2>&1)