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.004517/0.004517, allocations: 95.91 kB / 15.73 MB, free: 6.055 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.26/1.26, allocations: 222.9 MB / 239.4 MB, free: 4.555 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.001214/0.001214, allocations: 195.7 kB / 289.7 MB, free: 2.273 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03303/0.03303, allocations: 8.801 MB / 348.6 MB, free: 4.625 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001728/0.001728, allocations: 75.88 kB / 467.4 MB, free: 9.566 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09491/0.09665, allocations: 51.55 MB / 0.5068 GB, free: 5.977 MB / 350.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.InductionMachines.IMC_Transformer): time 0.2342/0.3309, allocations: 49.49 MB / 0.5552 GB, free: 15.43 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.02771/0.3586, allocations: 12.88 MB / 0.5677 GB, free: 9.281 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01349/0.3721, allocations: 380.7 kB / 0.5681 GB, free: 9.203 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.03176/0.4039, allocations: 13.81 MB / 0.5816 GB, free: 15.43 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.02036/0.4243, allocations: 5.421 MB / 0.5869 GB, free: 11.04 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01047/0.4348, allocations: 3.242 MB / 0.59 GB, free: 8.426 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.03294/0.4678, allocations: 24.22 MB / 0.6137 GB, free: 1.973 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.07108/0.5389, allocations: 46.97 MB / 0.6596 GB, free: 2.723 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.02227/0.5612, allocations: 12.61 MB / 0.6719 GB, free: 6.109 MB / 478.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.02317/0.5845, allocations: 13.82 MB / 0.6854 GB, free: 8.238 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 0.01092/0.5954, allocations: 3.625 MB / 0.6889 GB, free: 4.613 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01556/0.611, allocations: 4.109 MB / 0.6929 GB, free: 0.5039 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.012/0.623, allocations: 7.295 MB / 0.7001 GB, free: 9.191 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.0242/0.6473, allocations: 13.78 MB / 0.7135 GB, free: 11.36 MB / 0.5137 GB Notification: Performance of NFConvertDAE.convert: time 0.4486/1.096, allocations: 48.79 MB / 0.7612 GB, free: 86.27 MB / 0.5138 GB Notification: Performance of FrontEnd - DAE generated: time 4.919e-06/1.096, allocations: 0.8125 kB / 0.7612 GB, free: 86.27 MB / 0.5138 GB Notification: Performance of FrontEnd: time 1.933e-06/1.096, allocations: 0 / 0.7612 GB, free: 86.27 MB / 0.5138 GB Notification: Performance of Transformations before backend: time 0.001332/1.097, allocations: 0.875 kB / 0.7612 GB, free: 86.27 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.08589/1.183, allocations: 28.12 MB / 0.7886 GB, free: 71.77 MB / 0.5138 GB Notification: Performance of prepare preOptimizeDAE: time 3.742e-05/1.183, allocations: 7.531 kB / 0.7886 GB, free: 71.77 MB / 0.5138 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0704/1.254, allocations: 14.05 MB / 0.8023 GB, free: 63.27 MB / 0.5138 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03025/1.284, allocations: 15.04 MB / 0.817 GB, free: 48.9 MB / 0.5138 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001085/1.285, allocations: 1.575 MB / 0.8186 GB, free: 47.34 MB / 0.5138 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00856/1.294, allocations: 2.074 MB / 0.8206 GB, free: 45.29 MB / 0.5138 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.08554/1.379, allocations: 34.71 MB / 0.8545 GB, free: 10.51 MB / 0.5138 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.001362/1.381, allocations: 32.02 kB / 0.8545 GB, free: 10.48 MB / 0.5138 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.01/1.391, allocations: 0.8542 MB / 0.8554 GB, free: 9.645 MB / 0.5138 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0009842/1.392, allocations: 1.153 MB / 0.8565 GB, free: 8.488 MB / 0.5138 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.06689/1.459, allocations: 32.33 MB / 0.888 GB, free: 8.152 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.422/1.881, allocations: 106.5 MB / 0.9921 GB, free: 156.1 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0336/1.914, allocations: 50.86 MB / 1.042 GB, free: 117.5 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.01316/1.927, allocations: 9.793 MB / 1.051 GB, free: 113.5 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 0.03394/1.961, allocations: 22.57 MB / 1.073 GB, free: 95.29 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.186e-05/1.961, allocations: 129.9 kB / 1.073 GB, free: 95.15 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=894): time 9.307e-06/1.961, allocations: 4 kB / 1.073 GB, free: 95.14 MB / 0.5919 GB Notification: Performance of matching and sorting (n=906): time 0.06208/2.024, allocations: 39.92 MB / 1.112 GB, free: 54.85 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.503e-05/2.024, allocations: 168.5 kB / 1.113 GB, free: 54.66 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0112/2.035, allocations: 8.36 MB / 1.121 GB, free: 46.31 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 0.001541/2.036, allocations: 173.7 kB / 1.121 GB, free: 46.14 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 0.003775/2.04, allocations: 8.967 MB / 1.13 GB, free: 37.15 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 0.002875/2.043, allocations: 3.206 MB / 1.133 GB, free: 33.98 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00368/2.047, allocations: 2.221 MB / 1.135 GB, free: 31.75 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 3.366e-05/2.047, allocations: 305.1 kB / 1.135 GB, free: 31.45 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.008029/2.055, allocations: 6.238 MB / 1.141 GB, free: 25.21 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01118/2.066, allocations: 9.966 MB / 1.151 GB, free: 13.61 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.02064/2.087, allocations: 17.24 MB / 1.168 GB, free: 10.69 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.487e-05/2.087, allocations: 36 kB / 1.168 GB, free: 10.65 MB / 0.6075 GB Notification: Performance of matching and sorting (n=1484) (initialization): time 0.2606/2.348, allocations: 20.34 MB / 1.188 GB, free: 194.3 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 9.754e-05/2.348, allocations: 65.08 kB / 1.188 GB, free: 194.3 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002058/2.348, allocations: 115.7 kB / 1.188 GB, free: 194.3 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.002526/2.35, allocations: 0.9295 MB / 1.189 GB, free: 194.3 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008633/2.359, allocations: 2.413 MB / 1.191 GB, free: 194.3 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008944/2.368, allocations: 12.49 MB / 1.203 GB, free: 187.1 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008513/2.377, allocations: 0.6087 MB / 1.204 GB, free: 187.1 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001422/2.378, allocations: 0.5161 MB / 1.205 GB, free: 187.1 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.01229/2.39, allocations: 7.915 MB / 1.212 GB, free: 184.2 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002239/2.393, allocations: 0.954 MB / 1.213 GB, free: 184.2 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0245/2.417, allocations: 17.03 MB / 1.23 GB, free: 177.3 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.446e-05/2.417, allocations: 89.62 kB / 1.23 GB, free: 177.3 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.407e-05/2.417, allocations: 46.06 kB / 1.23 GB, free: 177.3 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.479e-05/2.417, allocations: 46.03 kB / 1.23 GB, free: 177.3 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05115/2.468, allocations: 35.82 MB / 1.265 GB, free: 151.3 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.912e-05/2.468, allocations: 4 kB / 1.265 GB, free: 151.3 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005359/2.474, allocations: 1.436 MB / 1.266 GB, free: 149.9 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.00262/2.476, allocations: 0.9769 MB / 1.267 GB, free: 148.9 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006886/2.477, allocations: 204 kB / 1.268 GB, free: 148.7 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0113/2.488, allocations: 17.17 MB / 1.284 GB, free: 130.7 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.32e-06/2.489, allocations: 16.09 kB / 1.284 GB, free: 130.7 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03024/2.519, allocations: 24.83 MB / 1.309 GB, free: 106.2 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004617/2.523, allocations: 2.293 MB / 1.311 GB, free: 104.4 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001568/2.525, allocations: 176 kB / 1.311 GB, free: 104.2 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004471/2.529, allocations: 495.5 kB / 1.311 GB, free: 103.7 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00135/2.531, allocations: 0.791 MB / 1.312 GB, free: 102.9 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005361/2.531, allocations: 259.9 kB / 1.312 GB, free: 102.7 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.007447/2.539, allocations: 5.689 MB / 1.318 GB, free: 97.02 MB / 0.6075 GB Notification: Performance of sort global known variables: time 2.8e-07/2.539, allocations: 0 / 1.318 GB, free: 97.02 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.01064/2.549, allocations: 3.471 MB / 1.321 GB, free: 93.55 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.001336/2.551, allocations: 461.4 kB / 1.322 GB, free: 93.12 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.01906/2.57, allocations: 16.15 MB / 1.338 GB, free: 76.86 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 1.033e-05/2.57, allocations: 0 / 1.338 GB, free: 76.86 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.01036/2.58, allocations: 8.764 MB / 1.346 GB, free: 67.98 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01083/2.591, allocations: 2.554 MB / 1.349 GB, free: 65.49 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05348/2.645, allocations: 38.67 MB / 1.386 GB, free: 26.7 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01275/2.657, allocations: 13.12 MB / 1.399 GB, free: 13.53 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 0.2351/2.893, allocations: 3.994 MB / 1.403 GB, free: 175.5 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00374/2.896, allocations: 0.6585 MB / 1.404 GB, free: 175.5 MB / 0.6075 GB Notification: Performance of SimCode: time 1.082e-06/2.896, allocations: 0.6875 kB / 1.404 GB, free: 175.5 MB / 0.6075 GB Notification: Performance of Templates: time 0.201/3.097, allocations: 146.2 MB / 1.547 GB, free: 70.87 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)