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.009383/0.009384, allocations: 103.2 kB / 15.73 MB, free: 5.996 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.489/1.489, allocations: 222.9 MB / 239.4 MB, free: 4.477 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.0016/0.0016, allocations: 184.5 kB / 289.7 MB, free: 2.207 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03553/0.03553, allocations: 8.802 MB / 348.6 MB, free: 4.586 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001647/0.001647, allocations: 87.81 kB / 467.4 MB, free: 9.504 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1256/0.1273, allocations: 51.55 MB / 0.5068 GB, free: 5.914 MB / 350.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.InductionMachines.IMC_Transformer): time 0.3438/0.4711, allocations: 49.49 MB / 0.5552 GB, free: 15.37 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.04986/0.5211, allocations: 12.9 MB / 0.5678 GB, free: 9.219 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.02256/0.5437, allocations: 377.1 kB / 0.5681 GB, free: 9.145 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.03782/0.5816, allocations: 13.81 MB / 0.5816 GB, free: 15.37 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.03215/0.6138, allocations: 5.431 MB / 0.5869 GB, free: 10.96 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01768/0.6315, allocations: 3.24 MB / 0.5901 GB, free: 8.352 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.05042/0.6819, allocations: 24.21 MB / 0.6137 GB, free: 1.875 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.1032/0.7852, allocations: 46.97 MB / 0.6596 GB, free: 2.625 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.03122/0.8165, allocations: 12.65 MB / 0.6719 GB, free: 5.957 MB / 478.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.03224/0.8488, allocations: 13.82 MB / 0.6854 GB, free: 8.094 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 0.01518/0.864, allocations: 3.625 MB / 0.689 GB, free: 4.469 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02004/0.8841, allocations: 4.109 MB / 0.693 GB, free: 372 kB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.01633/0.9004, allocations: 7.299 MB / 0.7001 GB, free: 9.047 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.03634/0.9368, allocations: 13.78 MB / 0.7136 GB, free: 11.21 MB / 0.5137 GB Notification: Performance of NFConvertDAE.convert: time 0.7424/1.679, allocations: 48.67 MB / 0.7611 GB, free: 86.6 MB / 0.5138 GB Notification: Performance of FrontEnd - DAE generated: time 1.128e-05/1.679, allocations: 5.516 kB / 0.7611 GB, free: 86.6 MB / 0.5138 GB Notification: Performance of FrontEnd: time 1.733e-06/1.679, allocations: 0 / 0.7611 GB, free: 86.6 MB / 0.5138 GB Notification: Performance of Transformations before backend: time 0.002094/1.681, allocations: 1.938 kB / 0.7611 GB, free: 86.6 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.1263/1.808, allocations: 27.61 MB / 0.7881 GB, free: 72.61 MB / 0.5138 GB Notification: Performance of prepare preOptimizeDAE: time 8.027e-05/1.808, allocations: 7.719 kB / 0.7881 GB, free: 72.61 MB / 0.5138 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.08146/1.889, allocations: 13.93 MB / 0.8017 GB, free: 64.18 MB / 0.5138 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.04236/1.932, allocations: 14.99 MB / 0.8163 GB, free: 49.86 MB / 0.5138 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001731/1.934, allocations: 1.572 MB / 0.8178 GB, free: 48.31 MB / 0.5138 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.01621/1.95, allocations: 2.073 MB / 0.8199 GB, free: 46.25 MB / 0.5138 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.129/2.079, allocations: 34.71 MB / 0.8538 GB, free: 11.47 MB / 0.5138 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.001537/2.08, allocations: 31.7 kB / 0.8538 GB, free: 11.44 MB / 0.5138 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.01625/2.097, allocations: 0.8521 MB / 0.8546 GB, free: 10.61 MB / 0.5138 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001306/2.098, allocations: 1.157 MB / 0.8558 GB, free: 9.449 MB / 0.5138 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.09832/2.196, allocations: 32.33 MB / 0.8873 GB, free: 9.113 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.675/2.871, allocations: 106.3 MB / 0.9911 GB, free: 155.7 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.04345/2.915, allocations: 50.85 MB / 1.041 GB, free: 117.9 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.01974/2.935, allocations: 9.791 MB / 1.05 GB, free: 114.1 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 0.05027/2.985, allocations: 22.52 MB / 1.072 GB, free: 96.47 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.721e-05/2.985, allocations: 133.8 kB / 1.072 GB, free: 96.32 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=894): time 1.158e-05/2.985, allocations: 0 / 1.072 GB, free: 96.32 MB / 0.5919 GB Notification: Performance of matching and sorting (n=906): time 0.08435/3.069, allocations: 39.47 MB / 1.111 GB, free: 56.43 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.62e-05/3.07, allocations: 172.5 kB / 1.111 GB, free: 56.24 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01544/3.085, allocations: 8.352 MB / 1.119 GB, free: 47.9 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 0.00298/3.088, allocations: 173.7 kB / 1.119 GB, free: 47.72 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 0.004861/3.093, allocations: 8.686 MB / 1.128 GB, free: 38.99 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 0.004915/3.098, allocations: 3.046 MB / 1.131 GB, free: 35.96 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.004481/3.102, allocations: 2.208 MB / 1.133 GB, free: 33.75 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 6.705e-05/3.102, allocations: 305.1 kB / 1.133 GB, free: 33.45 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.008384/3.111, allocations: 6.241 MB / 1.139 GB, free: 27.2 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01041/3.121, allocations: 9.966 MB / 1.149 GB, free: 15.6 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.02346/3.145, allocations: 17.23 MB / 1.166 GB, free: 12.68 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.00015/3.145, allocations: 32 kB / 1.166 GB, free: 12.65 MB / 0.6075 GB Notification: Performance of matching and sorting (n=1484) (initialization): time 0.4637/3.609, allocations: 20.3 MB / 1.186 GB, free: 194.6 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001622/3.609, allocations: 59.31 kB / 1.186 GB, free: 194.6 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003445/3.609, allocations: 118.5 kB / 1.186 GB, free: 194.6 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.003474/3.613, allocations: 0.9305 MB / 1.187 GB, free: 194.6 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01103/3.624, allocations: 2.414 MB / 1.189 GB, free: 194.6 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01087/3.635, allocations: 12.48 MB / 1.202 GB, free: 187.4 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01448/3.649, allocations: 0.6052 MB / 1.202 GB, free: 187.4 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.005359/3.655, allocations: 0.5128 MB / 1.203 GB, free: 187.4 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.02344/3.678, allocations: 7.929 MB / 1.21 GB, free: 185.3 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002729/3.681, allocations: 0.9095 MB / 1.211 GB, free: 185.3 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02912/3.71, allocations: 17.01 MB / 1.228 GB, free: 178.4 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.803e-05/3.71, allocations: 92.81 kB / 1.228 GB, free: 178.4 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001117/3.71, allocations: 41.66 kB / 1.228 GB, free: 178.4 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0002298/3.71, allocations: 47.91 kB / 1.228 GB, free: 178.4 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.09317/3.804, allocations: 35.81 MB / 1.263 GB, free: 153.6 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.146e-05/3.804, allocations: 4 kB / 1.263 GB, free: 153.6 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.007154/3.811, allocations: 1.436 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.003248/3.814, allocations: 0.9763 MB / 1.265 GB, free: 151.2 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.002365/3.817, allocations: 209.2 kB / 1.266 GB, free: 151 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01312/3.83, allocations: 17.15 MB / 1.282 GB, free: 133.1 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.835e-06/3.83, allocations: 8.719 kB / 1.282 GB, free: 133.1 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0421/3.872, allocations: 24.78 MB / 1.307 GB, free: 108.6 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 0.008634/3.88, allocations: 2.242 MB / 1.309 GB, free: 106.8 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.004079/3.885, allocations: 176.8 kB / 1.309 GB, free: 106.6 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00839/3.893, allocations: 495.5 kB / 1.309 GB, free: 106.1 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00303/3.896, allocations: 0.7895 MB / 1.31 GB, free: 105.3 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001353/3.897, allocations: 263.9 kB / 1.31 GB, free: 105.1 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.01331/3.911, allocations: 5.681 MB / 1.316 GB, free: 99.42 MB / 0.6075 GB Notification: Performance of sort global known variables: time 6.41e-07/3.911, allocations: 4 kB / 1.316 GB, free: 99.41 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0196/3.93, allocations: 3.473 MB / 1.319 GB, free: 95.95 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.003054/3.933, allocations: 479.2 kB / 1.32 GB, free: 95.51 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.02759/3.961, allocations: 16.14 MB / 1.336 GB, free: 79.27 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 1.403e-05/3.961, allocations: 4.562 kB / 1.336 GB, free: 79.27 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.01473/3.976, allocations: 8.752 MB / 1.344 GB, free: 70.41 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.02324/3.999, allocations: 2.563 MB / 1.347 GB, free: 67.91 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.08951/4.089, allocations: 38.09 MB / 1.384 GB, free: 29.7 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.03339/4.122, allocations: 13.12 MB / 1.397 GB, free: 16.53 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 0.01809/4.14, allocations: 3.997 MB / 1.4 GB, free: 12.52 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005212/4.146, allocations: 0.6634 MB / 1.401 GB, free: 11.86 MB / 0.6075 GB Notification: Performance of SimCode: time 1.492e-06/4.146, allocations: 0 / 1.401 GB, free: 11.86 MB / 0.6075 GB Notification: Performance of Templates: time 0.5598/4.705, allocations: 146.8 MB / 1.544 GB, free: 73.88 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)