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.0007527/0.0007527, allocations: 97.64 kB / 15.36 MB, free: 0.7344 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: 223.3 MB / 239.4 MB, free: 5.355 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.001369/0.001369, allocations: 176.5 kB / 290.6 MB, free: 2.031 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03271/0.03271, allocations: 8.8 MB / 350.5 MB, free: 4.582 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003974/0.0003975, allocations: 12.5 kB / 417.2 MB, free: 40.82 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1167/0.1171, allocations: 52.56 MB / 469.8 MB, free: 9.703 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.InductionMachines.IMC_Transformer): time 0.04931/0.1664, allocations: 46.74 MB / 0.5044 GB, free: 10.75 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.03532/0.2018, allocations: 12.67 MB / 0.5168 GB, free: 14.05 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01454/0.2164, allocations: 354.8 kB / 0.5171 GB, free: 13.7 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01315/0.2296, allocations: 3.207 MB / 0.5203 GB, free: 10.48 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.02326/0.2529, allocations: 4.956 MB / 0.5251 GB, free: 5.512 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01315/0.2661, allocations: 2.899 MB / 0.5279 GB, free: 2.633 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.3296/0.5957, allocations: 24.67 MB / 0.552 GB, free: 9.059 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.09886/0.6946, allocations: 44.44 MB / 0.5954 GB, free: 5.141 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.02949/0.7241, allocations: 9.079 MB / 0.6043 GB, free: 13.85 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.02449/0.7487, allocations: 10.7 MB / 0.6148 GB, free: 3.688 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00804/0.7568, allocations: 1.409 MB / 0.6161 GB, free: 2.281 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01355/0.7703, allocations: 1.909 MB / 0.618 GB, free: 416 kB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.01271/0.7831, allocations: 4.627 MB / 0.6225 GB, free: 11.95 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.03137/0.8145, allocations: 10.88 MB / 0.6331 GB, free: 1.137 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.06297/0.8775, allocations: 45.71 MB / 0.6778 GB, free: 4.168 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.908e-06/0.8776, allocations: 0 / 0.6778 GB, free: 4.168 MB / 462.1 MB Notification: Performance of FrontEnd: time 2.535e-06/0.8776, allocations: 0 / 0.6778 GB, free: 4.168 MB / 462.1 MB Notification: Performance of Transformations before backend: time 0.00154/0.8791, allocations: 0 / 0.6778 GB, free: 4.168 MB / 462.1 MB 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.07693/0.9561, allocations: 22.89 MB / 0.7001 GB, free: 13.3 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.282e-05/0.9561, allocations: 8.031 kB / 0.7001 GB, free: 13.29 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.5572/1.513, allocations: 13.96 MB / 0.7138 GB, free: 132.1 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03341/1.547, allocations: 14.57 MB / 0.728 GB, free: 128.6 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.002309/1.549, allocations: 1.577 MB / 0.7295 GB, free: 127.9 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.01021/1.559, allocations: 2.076 MB / 0.7316 GB, free: 127.2 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.09686/1.656, allocations: 34.74 MB / 0.7655 GB, free: 111.7 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.001189/1.657, allocations: 31.39 kB / 0.7655 GB, free: 111.7 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.009057/1.667, allocations: 0.86 MB / 0.7664 GB, free: 111.1 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001379/1.668, allocations: 1.152 MB / 0.7675 GB, free: 110.8 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.07217/1.74, allocations: 32.35 MB / 0.7991 GB, free: 81.84 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1974/1.938, allocations: 108 MB / 0.9046 GB, free: 4.719 MB / 0.5138 GB Notification: Performance of preOpt comSubExp (simulation): time 0.5358/2.473, allocations: 50.83 MB / 0.9542 GB, free: 105.3 MB / 0.5139 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0168/2.49, allocations: 9.792 MB / 0.9638 GB, free: 102.3 MB / 0.5139 GB Notification: Performance of preOpt evalFunc (simulation): time 0.04488/2.535, allocations: 22.65 MB / 0.9859 GB, free: 92.43 MB / 0.5139 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001113/2.535, allocations: 131.5 kB / 0.986 GB, free: 92.32 MB / 0.5139 GB Notification: Performance of pre-optimization done (n=894): time 1.473e-05/2.535, allocations: 3.812 kB / 0.986 GB, free: 92.32 MB / 0.5139 GB Notification: Performance of matching and sorting (n=906): time 0.09036/2.626, allocations: 39.59 MB / 1.025 GB, free: 73.65 MB / 0.5139 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001143/2.626, allocations: 173.5 kB / 1.025 GB, free: 73.55 MB / 0.5139 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01879/2.645, allocations: 8.351 MB / 1.033 GB, free: 67.11 MB / 0.5139 GB Notification: Performance of collectPreVariables (initialization): time 0.002559/2.647, allocations: 177.6 kB / 1.033 GB, free: 66.93 MB / 0.5139 GB Notification: Performance of collectInitialEqns (initialization): time 0.005657/2.653, allocations: 8.686 MB / 1.042 GB, free: 59.06 MB / 0.5139 GB Notification: Performance of collectInitialBindings (initialization): time 0.00357/2.657, allocations: 3.048 MB / 1.045 GB, free: 56.04 MB / 0.5139 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003054/2.66, allocations: 0.9181 MB / 1.046 GB, free: 55.11 MB / 0.5139 GB Notification: Performance of setup shared object (initialization): time 4.82e-05/2.66, allocations: 309.1 kB / 1.046 GB, free: 54.8 MB / 0.5139 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01036/2.67, allocations: 6.257 MB / 1.052 GB, free: 48.54 MB / 0.5139 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01342/2.684, allocations: 9.982 MB / 1.062 GB, free: 36.92 MB / 0.5139 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.02424/2.708, allocations: 17.28 MB / 1.079 GB, free: 17.95 MB / 0.5139 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001251/2.708, allocations: 32 kB / 1.079 GB, free: 17.92 MB / 0.5139 GB Notification: Performance of matching and sorting (n=1484) (initialization): time 0.042/2.75, allocations: 20.33 MB / 1.098 GB, free: 13.47 MB / 0.5295 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001872/2.75, allocations: 52 kB / 1.098 GB, free: 13.42 MB / 0.5295 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002281/2.75, allocations: 120.9 kB / 1.099 GB, free: 13.3 MB / 0.5295 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.003314/2.754, allocations: 0.9356 MB / 1.1 GB, free: 12.36 MB / 0.5295 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01044/2.764, allocations: 2.414 MB / 1.102 GB, free: 9.938 MB / 0.5295 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.281/3.045, allocations: 11.53 MB / 1.113 GB, free: 140.4 MB / 0.5295 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01017/3.056, allocations: 0.6123 MB / 1.114 GB, free: 140.4 MB / 0.5295 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002364/3.058, allocations: 0.5074 MB / 1.114 GB, free: 140.4 MB / 0.5295 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.01769/3.076, allocations: 7.927 MB / 1.122 GB, free: 140.2 MB / 0.5295 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003591/3.079, allocations: 0.9046 MB / 1.123 GB, free: 140.2 MB / 0.5295 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03906/3.118, allocations: 17.08 MB / 1.14 GB, free: 135.5 MB / 0.5295 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001138/3.118, allocations: 90.78 kB / 1.14 GB, free: 135.5 MB / 0.5295 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001598/3.119, allocations: 43.41 kB / 1.14 GB, free: 135.5 MB / 0.5295 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0002711/3.119, allocations: 44.58 kB / 1.14 GB, free: 135.5 MB / 0.5295 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0732/3.192, allocations: 36 MB / 1.175 GB, free: 121.1 MB / 0.5295 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.835e-05/3.192, allocations: 9.938 kB / 1.175 GB, free: 121.1 MB / 0.5295 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.007126/3.199, allocations: 1.423 MB / 1.176 GB, free: 121 MB / 0.5295 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.00356/3.203, allocations: 0.9839 MB / 1.177 GB, free: 120.7 MB / 0.5295 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001769/3.205, allocations: 209 kB / 1.177 GB, free: 120.6 MB / 0.5295 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01266/3.218, allocations: 15.77 MB / 1.193 GB, free: 108.1 MB / 0.5295 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.153e-06/3.218, allocations: 11.84 kB / 1.193 GB, free: 108.1 MB / 0.5295 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03939/3.257, allocations: 24.83 MB / 1.217 GB, free: 93.55 MB / 0.5295 GB Notification: Performance of postOpt removeConstants (simulation): time 0.006364/3.263, allocations: 2.246 MB / 1.219 GB, free: 91.76 MB / 0.5295 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003719/3.267, allocations: 180.2 kB / 1.219 GB, free: 91.59 MB / 0.5295 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006866/3.274, allocations: 0.5072 MB / 1.22 GB, free: 91.08 MB / 0.5295 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002046/3.276, allocations: 0.7913 MB / 1.221 GB, free: 90.29 MB / 0.5295 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005951/3.277, allocations: 263.9 kB / 1.221 GB, free: 90.03 MB / 0.5295 GB Notification: Performance of sorting global known variables: time 0.01156/3.288, allocations: 5.681 MB / 1.226 GB, free: 84.36 MB / 0.5295 GB Notification: Performance of sort global known variables: time 7.72e-07/3.288, allocations: 0 / 1.226 GB, free: 84.36 MB / 0.5295 GB Notification: Performance of remove unused functions: time 0.01818/3.306, allocations: 3.47 MB / 1.23 GB, free: 80.89 MB / 0.5295 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.002716/3.309, allocations: 459.8 kB / 1.23 GB, free: 80.46 MB / 0.5295 GB Notification: Performance of simCode: created initialization part: time 0.02552/3.335, allocations: 16.12 MB / 1.246 GB, free: 64.25 MB / 0.5295 GB Notification: Performance of simCode: created event and clocks part: time 1.634e-05/3.335, allocations: 4.125 kB / 1.246 GB, free: 64.25 MB / 0.5295 GB Notification: Performance of simCode: created simulation system equations: time 0.01659/3.351, allocations: 8.787 MB / 1.255 GB, free: 55.38 MB / 0.5295 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.02681/3.378, allocations: 2.418 MB / 1.257 GB, free: 53 MB / 0.5295 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07605/3.454, allocations: 47.58 MB / 1.303 GB, free: 5.336 MB / 0.5295 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.2922/3.747, allocations: 13.12 MB / 1.316 GB, free: 131 MB / 0.5295 GB Notification: Performance of simCode: alias equations: time 0.01475/3.761, allocations: 3.991 MB / 1.32 GB, free: 130.6 MB / 0.5295 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003784/3.765, allocations: 0.6582 MB / 1.321 GB, free: 130.6 MB / 0.5295 GB Notification: Performance of SimCode: time 1.002e-06/3.765, allocations: 1.219 kB / 1.321 GB, free: 130.6 MB / 0.5295 GB Notification: Performance of Templates: time 0.2265/3.992, allocations: 150 MB / 1.467 GB, free: 25.51 MB / 0.5295 GB make -j1 -f HanserModelica_HanserModelica.InductionMachines.IMC_Transformer.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: