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.007058/0.007058, allocations: 105.3 kB / 15.74 MB, free: 6.441 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.408/1.408, allocations: 222.9 MB / 239.4 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.001436/0.001436, allocations: 184.5 kB / 289.7 MB, free: 2.238 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03427/0.03427, allocations: 8.803 MB / 348.6 MB, free: 4.602 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00173/0.00173, allocations: 75.88 kB / 467.4 MB, free: 9.547 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1224/0.1241, allocations: 51.56 MB / 0.5068 GB, free: 5.949 MB / 350.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.InductionMachines.IMC_Transformer): time 0.3536/0.4778, allocations: 49.48 MB / 0.5552 GB, free: 15.36 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0381/0.5159, allocations: 12.89 MB / 0.5677 GB, free: 9.223 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01826/0.5342, allocations: 382 kB / 0.5681 GB, free: 9.145 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.04063/0.5749, allocations: 13.8 MB / 0.5816 GB, free: 15.38 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.03115/0.6061, allocations: 5.43 MB / 0.5869 GB, free: 10.98 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01734/0.6235, allocations: 3.234 MB / 0.59 GB, free: 8.375 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.04699/0.6705, allocations: 24.22 MB / 0.6137 GB, free: 1.918 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.09475/0.7653, allocations: 46.97 MB / 0.6596 GB, free: 2.664 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.02905/0.7944, allocations: 12.64 MB / 0.6719 GB, free: 6.012 MB / 478.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.02769/0.8222, allocations: 13.82 MB / 0.6854 GB, free: 8.145 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 0.01335/0.8356, allocations: 3.625 MB / 0.6889 GB, free: 4.52 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02022/0.8558, allocations: 4.105 MB / 0.693 GB, free: 424 kB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0189/0.8748, allocations: 7.291 MB / 0.7001 GB, free: 9.105 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.0475/0.9223, allocations: 13.79 MB / 0.7135 GB, free: 11.26 MB / 0.5137 GB Notification: Performance of NFConvertDAE.convert: time 0.7002/1.623, allocations: 48.68 MB / 0.7611 GB, free: 86.61 MB / 0.5138 GB Notification: Performance of FrontEnd - DAE generated: time 7.504e-06/1.623, allocations: 0.625 kB / 0.7611 GB, free: 86.61 MB / 0.5138 GB Notification: Performance of FrontEnd: time 1.623e-06/1.623, allocations: 0.9062 kB / 0.7611 GB, free: 86.61 MB / 0.5138 GB Notification: Performance of Transformations before backend: time 0.002045/1.625, allocations: 2.312 kB / 0.7611 GB, free: 86.61 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.1197/1.744, allocations: 27.61 MB / 0.788 GB, free: 72.61 MB / 0.5138 GB Notification: Performance of prepare preOptimizeDAE: time 4.896e-05/1.744, allocations: 11.81 kB / 0.7881 GB, free: 72.61 MB / 0.5138 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.07645/1.821, allocations: 13.94 MB / 0.8017 GB, free: 64.18 MB / 0.5138 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.04359/1.865, allocations: 14.98 MB / 0.8163 GB, free: 49.86 MB / 0.5138 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001672/1.866, allocations: 1.582 MB / 0.8178 GB, free: 48.3 MB / 0.5138 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0161/1.882, allocations: 2.068 MB / 0.8199 GB, free: 46.25 MB / 0.5138 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.1143/1.997, allocations: 34.72 MB / 0.8538 GB, free: 11.47 MB / 0.5138 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.00109/1.998, allocations: 31.7 kB / 0.8538 GB, free: 11.44 MB / 0.5138 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.01002/2.008, allocations: 0.8595 MB / 0.8546 GB, free: 10.6 MB / 0.5138 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0009195/2.009, allocations: 1.153 MB / 0.8558 GB, free: 9.441 MB / 0.5138 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.07938/2.088, allocations: 32.32 MB / 0.8873 GB, free: 9.105 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.6227/2.711, allocations: 106.3 MB / 0.9911 GB, free: 155.7 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.03996/2.751, allocations: 50.86 MB / 1.041 GB, free: 117.9 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.01732/2.768, allocations: 9.794 MB / 1.05 GB, free: 114.1 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0534/2.822, allocations: 22.52 MB / 1.072 GB, free: 96.45 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001332/2.822, allocations: 137 kB / 1.072 GB, free: 96.3 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=894): time 1.09e-05/2.822, allocations: 4 kB / 1.072 GB, free: 96.3 MB / 0.5919 GB Notification: Performance of matching and sorting (n=906): time 0.08616/2.908, allocations: 39.46 MB / 1.111 GB, free: 56.41 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.054e-05/2.908, allocations: 172.5 kB / 1.111 GB, free: 56.22 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0191/2.927, allocations: 8.348 MB / 1.119 GB, free: 47.88 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 0.002427/2.93, allocations: 173.7 kB / 1.119 GB, free: 47.71 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 0.005416/2.935, allocations: 8.682 MB / 1.128 GB, free: 38.97 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 0.004267/2.94, allocations: 3.05 MB / 1.131 GB, free: 35.95 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.007956/2.948, allocations: 2.208 MB / 1.133 GB, free: 33.73 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 5.824e-05/2.948, allocations: 301.1 kB / 1.133 GB, free: 33.43 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01035/2.958, allocations: 6.245 MB / 1.139 GB, free: 27.18 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01416/2.972, allocations: 9.966 MB / 1.149 GB, free: 15.58 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.02368/2.996, allocations: 17.23 MB / 1.166 GB, free: 12.66 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001526/2.996, allocations: 36 kB / 1.166 GB, free: 12.63 MB / 0.6075 GB Notification: Performance of matching and sorting (n=1484) (initialization): time 0.4166/3.413, allocations: 20.3 MB / 1.186 GB, free: 194.7 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001445/3.413, allocations: 59.92 kB / 1.186 GB, free: 194.7 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003422/3.413, allocations: 115.9 kB / 1.186 GB, free: 194.7 MB / 0.6075 GB Notification: Tearing is skipped for strong component 1 because system size of 204 exceeds maximum system size for tearing of linear systems (200). To adjust the maximum system size for tearing use --maxSizeLinearTearing=. Notification: Performance of postOpt tearingSystem (initialization): time 0.003344/3.417, allocations: 0.9293 MB / 1.187 GB, free: 194.6 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01078/3.427, allocations: 2.419 MB / 1.189 GB, free: 194.6 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009915/3.437, allocations: 12.48 MB / 1.201 GB, free: 187.5 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01063/3.448, allocations: 0.6024 MB / 1.202 GB, free: 187.5 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003069/3.451, allocations: 0.5149 MB / 1.203 GB, free: 187.5 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): 2 * 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): 2 systems {(2,100.0%), (204,1.3%)} * 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 {(3,25,77.8%), (1,8,100.0%), (1,1,100.0%), (1,13,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.01799/3.469, allocations: 7.921 MB / 1.21 GB, free: 185.3 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003046/3.472, allocations: 0.912 MB / 1.211 GB, free: 185.3 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02824/3.5, allocations: 17.02 MB / 1.228 GB, free: 178.4 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.979e-05/3.501, allocations: 96.38 kB / 1.228 GB, free: 178.4 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.362e-05/3.501, allocations: 41.91 kB / 1.228 GB, free: 178.4 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001403/3.501, allocations: 44.11 kB / 1.228 GB, free: 178.4 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.06387/3.565, allocations: 35.81 MB / 1.263 GB, free: 153.6 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.965e-05/3.565, allocations: 8 kB / 1.263 GB, free: 153.6 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005996/3.571, allocations: 1.431 MB / 1.264 GB, free: 152.2 MB / 0.6075 GB Notification: Tearing is skipped for strong component 14 because system size of 204 exceeds maximum system size for tearing of linear systems (200). To adjust the maximum system size for tearing use --maxSizeLinearTearing=. Notification: Performance of postOpt tearingSystem (simulation): time 0.00279/3.573, allocations: 0.9793 MB / 1.265 GB, free: 151.2 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008695/3.574, allocations: 204 kB / 1.266 GB, free: 151 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01213/3.586, allocations: 17.16 MB / 1.282 GB, free: 133.1 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.2e-06/3.587, allocations: 7.938 kB / 1.282 GB, free: 133.1 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0335/3.62, allocations: 24.78 MB / 1.307 GB, free: 108.6 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 0.006642/3.627, allocations: 2.239 MB / 1.309 GB, free: 106.8 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002364/3.629, allocations: 176 kB / 1.309 GB, free: 106.6 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005034/3.634, allocations: 499.5 kB / 1.309 GB, free: 106.1 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001538/3.636, allocations: 0.7913 MB / 1.31 GB, free: 105.3 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005946/3.636, allocations: 259.9 kB / 1.31 GB, free: 105.1 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.009674/3.646, allocations: 5.681 MB / 1.316 GB, free: 99.39 MB / 0.6075 GB Notification: Performance of sort global known variables: time 2.6e-07/3.646, allocations: 0 / 1.316 GB, free: 99.39 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.017/3.663, allocations: 3.475 MB / 1.319 GB, free: 95.92 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): 1 * Torn equation systems: 7 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 1 system {(204,1.3%)} * 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): 7 systems {(1,1,100.0%), (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.002281/3.665, allocations: 479.1 kB / 1.32 GB, free: 95.47 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.02192/3.687, allocations: 16.14 MB / 1.336 GB, free: 79.24 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 1.265e-05/3.687, allocations: 4 kB / 1.336 GB, free: 79.23 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.01152/3.699, allocations: 8.75 MB / 1.344 GB, free: 70.38 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01216/3.711, allocations: 2.545 MB / 1.347 GB, free: 67.89 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06971/3.781, allocations: 38.11 MB / 1.384 GB, free: 29.67 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.02738/3.808, allocations: 13.12 MB / 1.397 GB, free: 16.5 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 0.01335/3.822, allocations: 3.987 MB / 1.4 GB, free: 12.5 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004227/3.826, allocations: 0.6673 MB / 1.401 GB, free: 11.83 MB / 0.6075 GB Notification: Performance of SimCode: time 8.51e-07/3.826, allocations: 0 / 1.401 GB, free: 11.83 MB / 0.6075 GB Notification: Performance of Templates: time 0.5608/4.387, allocations: 146.1 MB / 1.544 GB, free: 74.48 MB / 0.6075 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)