Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr HanserModelica_HanserModelica.InductionMachines.IMC_Transformer.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) Ignoring simflag -noemit -jacobian= since it seems broken on HelloWorld Running command: translateModel(HanserModelica.InductionMachines.IMC_Transformer,tolerance=1e-06,outputFormat="empty",numberOfIntervals=50000,variableFilter="",fileNamePrefix="HanserModelica_HanserModelica.InductionMachines.IMC_Transformer") translateModel(HanserModelica.InductionMachines.IMC_Transformer,tolerance=1e-06,outputFormat="empty",numberOfIntervals=50000,variableFilter="",fileNamePrefix="HanserModelica_HanserModelica.InductionMachines.IMC_Transformer") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001338/0.001338, allocations: 113.1 kB / 16.41 MB, free: 6.492 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.39/1.39, allocations: 222.9 MB / 240.1 MB, free: 4.406 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.00135/0.00135, allocations: 184.5 kB / 290.4 MB, free: 2.133 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03436/0.03436, allocations: 8.8 MB / 349.3 MB, free: 4.602 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001794/0.001794, allocations: 83.86 kB / 468.1 MB, free: 9.559 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1285/0.1303, allocations: 51.57 MB / 0.5075 GB, free: 5.953 MB / 350.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.InductionMachines.IMC_Transformer): time 0.3732/0.5035, allocations: 49.48 MB / 0.5558 GB, free: 15.33 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.03674/0.5403, allocations: 12.9 MB / 0.5684 GB, free: 9.258 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0169/0.5573, allocations: 377.1 kB / 0.5688 GB, free: 9.184 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.04296/0.6003, allocations: 13.81 MB / 0.5823 GB, free: 15.42 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.02746/0.6278, allocations: 5.422 MB / 0.5876 GB, free: 11.03 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01549/0.6433, allocations: 3.232 MB / 0.5907 GB, free: 8.418 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.04977/0.6931, allocations: 24.22 MB / 0.6144 GB, free: 1.973 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.1032/0.7963, allocations: 46.97 MB / 0.6602 GB, free: 2.723 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.02812/0.8245, allocations: 12.64 MB / 0.6726 GB, free: 6.07 MB / 478.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.03088/0.8554, allocations: 13.83 MB / 0.6861 GB, free: 8.195 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0158/0.8713, allocations: 3.625 MB / 0.6896 GB, free: 4.57 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02032/0.8917, allocations: 4.101 MB / 0.6936 GB, free: 484 kB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0168/0.9085, allocations: 7.295 MB / 0.7008 GB, free: 9.156 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.03815/0.9468, allocations: 13.78 MB / 0.7142 GB, free: 11.32 MB / 0.5137 GB Notification: Performance of NFConvertDAE.convert: time 0.724/1.671, allocations: 48.68 MB / 0.7618 GB, free: 86.55 MB / 0.5138 GB Notification: Performance of FrontEnd - DAE generated: time 8.867e-06/1.671, allocations: 1.812 kB / 0.7618 GB, free: 86.55 MB / 0.5138 GB Notification: Performance of FrontEnd: time 2.064e-06/1.671, allocations: 0.9062 kB / 0.7618 GB, free: 86.55 MB / 0.5138 GB Notification: Performance of Transformations before backend: time 0.002082/1.673, allocations: 0 / 0.7618 GB, free: 86.55 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: 5818 * Number of variables: 5818 Notification: Performance of Generate backend data structure: time 0.1268/1.8, allocations: 27.61 MB / 0.7887 GB, free: 72.66 MB / 0.5138 GB Notification: Performance of prepare preOptimizeDAE: time 5.343e-05/1.8, allocations: 7.625 kB / 0.7887 GB, free: 72.66 MB / 0.5138 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.07786/1.878, allocations: 13.93 MB / 0.8023 GB, free: 64.27 MB / 0.5138 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.04328/1.921, allocations: 14.98 MB / 0.817 GB, free: 49.95 MB / 0.5138 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.00194/1.923, allocations: 1.579 MB / 0.8185 GB, free: 48.39 MB / 0.5138 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.01472/1.938, allocations: 2.068 MB / 0.8205 GB, free: 46.34 MB / 0.5138 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.1252/2.063, allocations: 34.72 MB / 0.8544 GB, free: 11.55 MB / 0.5138 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.001327/2.064, allocations: 27.72 kB / 0.8545 GB, free: 11.53 MB / 0.5138 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.01309/2.078, allocations: 0.866 MB / 0.8553 GB, free: 10.68 MB / 0.5138 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001147/2.079, allocations: 1.153 MB / 0.8564 GB, free: 9.527 MB / 0.5138 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.08381/2.163, allocations: 32.32 MB / 0.888 GB, free: 9.191 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.6597/2.822, allocations: 106.3 MB / 0.9918 GB, free: 155.5 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.03777/2.86, allocations: 50.84 MB / 1.041 GB, free: 117.7 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.01579/2.876, allocations: 9.794 MB / 1.051 GB, free: 113.9 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 0.05217/2.928, allocations: 22.53 MB / 1.073 GB, free: 96.52 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001289/2.928, allocations: 129.9 kB / 1.073 GB, free: 96.38 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=894): time 1.833e-05/2.928, allocations: 4 kB / 1.073 GB, free: 96.38 MB / 0.5919 GB Notification: Performance of matching and sorting (n=906): time 0.09483/3.023, allocations: 39.46 MB / 1.112 GB, free: 56.49 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001412/3.023, allocations: 172.5 kB / 1.112 GB, free: 56.3 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.02184/3.045, allocations: 8.348 MB / 1.12 GB, free: 47.96 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 0.00237/3.048, allocations: 173.7 kB / 1.12 GB, free: 47.79 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 0.006238/3.054, allocations: 8.682 MB / 1.129 GB, free: 39.05 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 0.004636/3.059, allocations: 3.053 MB / 1.132 GB, free: 36.02 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0114/3.07, allocations: 2.212 MB / 1.134 GB, free: 33.8 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 6.135e-05/3.07, allocations: 301.1 kB / 1.134 GB, free: 33.5 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01135/3.082, allocations: 6.245 MB / 1.14 GB, free: 27.25 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01525/3.097, allocations: 9.959 MB / 1.15 GB, free: 15.66 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.02614/3.123, allocations: 17.24 MB / 1.167 GB, free: 12.73 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001637/3.123, allocations: 36 kB / 1.167 GB, free: 12.7 MB / 0.6075 GB Notification: Performance of matching and sorting (n=1484) (initialization): time 0.4506/3.574, allocations: 20.29 MB / 1.187 GB, free: 194.2 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001066/3.574, allocations: 56.78 kB / 1.187 GB, free: 194.2 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000246/3.574, allocations: 115.4 kB / 1.187 GB, free: 194.2 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0154/3.59, allocations: 4.328 MB / 1.191 GB, free: 194.1 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01209/3.602, allocations: 2.41 MB / 1.193 GB, free: 194.1 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04968/3.652, allocations: 40.85 MB / 1.233 GB, free: 174.4 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01181/3.663, allocations: 0.6079 MB / 1.234 GB, free: 174.2 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.004009/3.667, allocations: 0.5115 MB / 1.234 GB, free: 174.2 MB / 0.6075 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 531 * Number of states: 0 () * Number of discrete variables: 12 (booleanStep2[3].y,booleanStep2[2].y,booleanStep2[1].y,idealCloser.control[3],idealCloser.control[2],idealCloser.control[1],booleanStep2QS[3].y,booleanStep2QS[2].y,booleanStep2QS[1].y,booleanStep1QS[3].y,booleanStep1QS[2].y,booleanStep1QS[1].y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1230): * Single equations (assignments): 1223 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 6 * 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): 6 systems {(3,25,77.8%), (1,8,100.0%), (1,1,100.0%), (1,13,100.0%), (1,1,100.0%), (30,174,25.4%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.02142/3.689, allocations: 7.917 MB / 1.242 GB, free: 170.5 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003333/3.692, allocations: 0.9065 MB / 1.243 GB, free: 170.5 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03281/3.725, allocations: 17.03 MB / 1.26 GB, free: 156.8 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.813e-05/3.725, allocations: 94.08 kB / 1.26 GB, free: 156.7 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001081/3.725, allocations: 44 kB / 1.26 GB, free: 156.6 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0002448/3.726, allocations: 48.72 kB / 1.26 GB, free: 156.6 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.08469/3.81, allocations: 35.82 MB / 1.295 GB, free: 122.2 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.68e-05/3.81, allocations: 8 kB / 1.295 GB, free: 122.2 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006939/3.817, allocations: 1.42 MB / 1.296 GB, free: 120.7 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01333/3.831, allocations: 4.352 MB / 1.3 GB, free: 116.4 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.002439/3.833, allocations: 207.9 kB / 1.301 GB, free: 116.2 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.04521/3.878, allocations: 42.99 MB / 1.343 GB, free: 72.62 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.941e-06/3.878, allocations: 11.94 kB / 1.343 GB, free: 72.61 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04183/3.92, allocations: 24.79 MB / 1.367 GB, free: 47.89 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 0.008031/3.928, allocations: 2.236 MB / 1.369 GB, free: 45.63 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.005277/3.934, allocations: 184 kB / 1.369 GB, free: 45.45 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.009219/3.943, allocations: 495.5 kB / 1.37 GB, free: 44.96 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.003356/3.946, allocations: 0.7075 MB / 1.37 GB, free: 44.25 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001992/3.948, allocations: 255.9 kB / 1.37 GB, free: 44 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.01233/3.961, allocations: 5.681 MB / 1.376 GB, free: 38.34 MB / 0.6075 GB Notification: Performance of sort global known variables: time 8.31e-07/3.961, allocations: 0 / 1.376 GB, free: 38.34 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.02018/3.981, allocations: 3.803 MB / 1.38 GB, free: 34.54 MB / 0.6075 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 27 * Number of states: 12 (imcQS.inertiaRotor.w,imcQS.rotorCage.port_p.reference.gamma,quadraticLoadTorqueQS.phi,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,transformer.l1sigma.inductor[2].i,transformer.l1sigma.inductor[3].i,quadraticLoadTorque.phi) * Number of discrete variables: 12 (booleanStep1QS[1].y,booleanStep1QS[2].y,booleanStep1QS[3].y,booleanStep2QS[1].y,booleanStep2QS[2].y,booleanStep2QS[3].y,idealCloser.control[1],idealCloser.control[2],idealCloser.control[3],booleanStep2[1].y,booleanStep2[2].y,booleanStep2[3].y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (703): * Single equations (assignments): 695 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 8 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 8 systems {(1,1,100.0%), (30,174,25.9%), (1,8,100.0%), (3,25,88.9%), (1,1,100.0%), (1,13,100.0%), (1,8,100.0%), (2,12,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.002931/3.984, allocations: 484.7 kB / 1.38 GB, free: 34.09 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.02947/4.013, allocations: 17.23 MB / 1.397 GB, free: 16.75 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 1.62e-05/4.014, allocations: 4 kB / 1.397 GB, free: 16.74 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.3286/4.342, allocations: 9.838 MB / 1.407 GB, free: 190.5 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.02216/4.364, allocations: 2.552 MB / 1.409 GB, free: 190.2 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.09163/4.456, allocations: 37.7 MB / 1.446 GB, free: 180.2 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.02945/4.486, allocations: 12.82 MB / 1.458 GB, free: 176 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004412/4.49, allocations: 0.7509 MB / 1.459 GB, free: 175.3 MB / 0.6075 GB Notification: Performance of SimCode: time 1.123e-06/4.49, allocations: 0 / 1.459 GB, free: 175.3 MB / 0.6075 GB Notification: Performance of Templates: time 2.749/7.239, allocations: 1.131 GB / 2.59 GB, free: 203.9 MB / 0.6388 GB make -j1 -f HanserModelica_HanserModelica.InductionMachines.IMC_Transformer.makefile (rm -f HanserModelica_HanserModelica.InductionMachines.IMC_Transformer.pipe ; mkfifo HanserModelica_HanserModelica.InductionMachines.IMC_Transformer.pipe ; head -c 1048576 < HanserModelica_HanserModelica.InductionMachines.IMC_Transformer.pipe >> ../files/HanserModelica_HanserModelica.InductionMachines.IMC_Transformer.sim & ./HanserModelica_HanserModelica.InductionMachines.IMC_Transformer -nls=newton -s=dassl -lv=LOG_STATS -abortSlowSimulation -alarm=480 -lv LOG_STATS > HanserModelica_HanserModelica.InductionMachines.IMC_Transformer.pipe 2>&1)