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.001057/0.001057, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.229/1.229, allocations: 222.9 MB / 238.8 MB, free: 4.746 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.001084/0.001084, allocations: 192.5 kB / 289.1 MB, free: 2.48 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03102/0.03102, allocations: 8.781 MB / 348.1 MB, free: 4.895 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00128/0.00128, allocations: 75.5 kB / 413.8 MB, free: 40.57 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08109/0.08238, allocations: 51.56 MB / 465.4 MB, free: 11.48 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.InductionMachines.IMC_Transformer): time 0.03964/0.1221, allocations: 48.58 MB / 0.5019 GB, free: 10.68 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0265/0.1486, allocations: 12.75 MB / 0.5144 GB, free: 13.89 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01434/0.163, allocations: 358.8 kB / 0.5147 GB, free: 13.54 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.02875/0.1918, allocations: 12.99 MB / 0.5274 GB, free: 0.5234 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.2501/0.4419, allocations: 4.96 MB / 0.5322 GB, free: 6.852 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01157/0.4535, allocations: 3.025 MB / 0.5352 GB, free: 6.793 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.03745/0.491, allocations: 24.7 MB / 0.5593 GB, free: 6.648 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.08141/0.5725, allocations: 38.7 MB / 0.5971 GB, free: 13.67 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.03133/0.6039, allocations: 10.67 MB / 0.6075 GB, free: 3.664 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0247/0.6286, allocations: 13.08 MB / 0.6203 GB, free: 6.984 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.009547/0.6382, allocations: 2.293 MB / 0.6225 GB, free: 4.691 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0158/0.654, allocations: 2.795 MB / 0.6253 GB, free: 1.945 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.01095/0.665, allocations: 5.903 MB / 0.631 GB, free: 12.15 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.03272/0.6978, allocations: 12.39 MB / 0.6431 GB, free: 15.96 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.05281/0.7506, allocations: 47.48 MB / 0.6895 GB, free: 1.227 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.246e-06/0.7506, allocations: 0 / 0.6895 GB, free: 1.227 MB / 478.1 MB Notification: Performance of FrontEnd: time 1.844e-06/0.7507, allocations: 0 / 0.6895 GB, free: 1.227 MB / 478.1 MB Notification: Performance of Transformations before backend: time 0.001532/0.7522, allocations: 0 / 0.6895 GB, free: 1.227 MB / 478.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.454/1.206, allocations: 27.65 MB / 0.7165 GB, free: 135.9 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.93e-05/1.206, allocations: 8.938 kB / 0.7165 GB, free: 135.9 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.07462/1.281, allocations: 13.89 MB / 0.7301 GB, free: 132.6 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02757/1.309, allocations: 14.53 MB / 0.7443 GB, free: 122.8 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001621/1.31, allocations: 1.582 MB / 0.7458 GB, free: 122.1 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.008172/1.318, allocations: 2.074 MB / 0.7478 GB, free: 121.4 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.07443/1.393, allocations: 34.72 MB / 0.7817 GB, free: 91.45 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0009707/1.394, allocations: 23.8 kB / 0.7818 GB, free: 91.43 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.006379/1.4, allocations: 0.8646 MB / 0.7826 GB, free: 90.58 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0009349/1.401, allocations: 1.153 MB / 0.7837 GB, free: 89.43 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.05912/1.46, allocations: 32.31 MB / 0.8153 GB, free: 57.09 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.6142/2.075, allocations: 107.6 MB / 0.9204 GB, free: 108.9 MB / 0.5139 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0346/2.109, allocations: 50.86 MB / 0.97 GB, free: 74.25 MB / 0.5139 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0142/2.123, allocations: 9.771 MB / 0.9796 GB, free: 74.08 MB / 0.5139 GB Notification: Performance of preOpt evalFunc (simulation): time 0.04166/2.165, allocations: 22.61 MB / 1.002 GB, free: 68.75 MB / 0.5139 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.674e-05/2.165, allocations: 138.1 kB / 1.002 GB, free: 68.64 MB / 0.5139 GB Notification: Performance of pre-optimization done (n=894): time 1.003e-05/2.165, allocations: 0 / 1.002 GB, free: 68.64 MB / 0.5139 GB Notification: Performance of matching and sorting (n=906): time 0.07751/2.243, allocations: 39.47 MB / 1.04 GB, free: 45.68 MB / 0.5139 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.404e-05/2.243, allocations: 173 kB / 1.04 GB, free: 45.58 MB / 0.5139 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01434/2.257, allocations: 8.347 MB / 1.049 GB, free: 39.01 MB / 0.5139 GB Notification: Performance of collectPreVariables (initialization): time 0.002839/2.26, allocations: 177.6 kB / 1.049 GB, free: 38.83 MB / 0.5139 GB Notification: Performance of collectInitialEqns (initialization): time 0.005289/2.265, allocations: 8.682 MB / 1.057 GB, free: 30.1 MB / 0.5139 GB Notification: Performance of collectInitialBindings (initialization): time 0.003799/2.269, allocations: 3.056 MB / 1.06 GB, free: 27.07 MB / 0.5139 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003585/2.273, allocations: 2.208 MB / 1.062 GB, free: 24.85 MB / 0.5139 GB Notification: Performance of setup shared object (initialization): time 4.61e-05/2.273, allocations: 309.1 kB / 1.063 GB, free: 24.54 MB / 0.5139 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007868/2.281, allocations: 6.241 MB / 1.069 GB, free: 18.3 MB / 0.5139 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009795/2.291, allocations: 9.962 MB / 1.079 GB, free: 6.688 MB / 0.5139 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0238/2.314, allocations: 17.23 MB / 1.095 GB, free: 3.766 MB / 0.5295 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001462/2.315, allocations: 32 kB / 1.095 GB, free: 3.734 MB / 0.5295 GB Notification: Performance of matching and sorting (n=1484) (initialization): time 0.2624/2.577, allocations: 20.3 MB / 1.115 GB, free: 159 MB / 0.5452 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001219/2.577, allocations: 56.73 kB / 1.115 GB, free: 159 MB / 0.5452 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002177/2.577, allocations: 115.6 kB / 1.115 GB, free: 159 MB / 0.5452 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.002779/2.58, allocations: 0.9358 MB / 1.116 GB, free: 159 MB / 0.5452 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009496/2.59, allocations: 2.401 MB / 1.119 GB, free: 159 MB / 0.5452 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01005/2.6, allocations: 11.52 MB / 1.13 GB, free: 152.5 MB / 0.5452 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00904/2.609, allocations: 0.6079 MB / 1.131 GB, free: 152.5 MB / 0.5452 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001879/2.611, allocations: 0.51 MB / 1.131 GB, free: 152.5 MB / 0.5452 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.01356/2.624, allocations: 7.927 MB / 1.139 GB, free: 152.4 MB / 0.5452 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002363/2.627, allocations: 0.9031 MB / 1.14 GB, free: 152.4 MB / 0.5452 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02474/2.651, allocations: 17.04 MB / 1.156 GB, free: 145.8 MB / 0.5452 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.814e-05/2.652, allocations: 95 kB / 1.156 GB, free: 145.8 MB / 0.5452 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.329e-05/2.652, allocations: 44.03 kB / 1.156 GB, free: 145.8 MB / 0.5452 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001015/2.652, allocations: 43.69 kB / 1.156 GB, free: 145.8 MB / 0.5452 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05596/2.708, allocations: 35.95 MB / 1.192 GB, free: 131.3 MB / 0.5452 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.444e-05/2.708, allocations: 6.875 kB / 1.192 GB, free: 131.3 MB / 0.5452 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006079/2.714, allocations: 1.426 MB / 1.193 GB, free: 130.9 MB / 0.5452 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.002817/2.717, allocations: 0.9799 MB / 1.194 GB, free: 130.4 MB / 0.5452 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000961/2.718, allocations: 207.3 kB / 1.194 GB, free: 130.2 MB / 0.5452 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01136/2.729, allocations: 15.75 MB / 1.209 GB, free: 116.7 MB / 0.5452 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.32e-06/2.729, allocations: 7.375 kB / 1.209 GB, free: 116.7 MB / 0.5452 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03335/2.762, allocations: 24.77 MB / 1.234 GB, free: 95.33 MB / 0.5452 GB Notification: Performance of postOpt removeConstants (simulation): time 0.005709/2.768, allocations: 2.242 MB / 1.236 GB, free: 93.54 MB / 0.5452 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003047/2.771, allocations: 176 kB / 1.236 GB, free: 93.37 MB / 0.5452 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00623/2.778, allocations: 495.5 kB / 1.237 GB, free: 92.89 MB / 0.5452 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002006/2.78, allocations: 0.7913 MB / 1.237 GB, free: 92.09 MB / 0.5452 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001/2.781, allocations: 256 kB / 1.238 GB, free: 91.84 MB / 0.5452 GB Notification: Performance of sorting global known variables: time 0.01046/2.791, allocations: 5.685 MB / 1.243 GB, free: 86.17 MB / 0.5452 GB Notification: Performance of sort global known variables: time 3.31e-07/2.791, allocations: 0 / 1.243 GB, free: 86.17 MB / 0.5452 GB Notification: Performance of remove unused functions: time 0.01512/2.806, allocations: 3.47 MB / 1.246 GB, free: 82.71 MB / 0.5452 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.002699/2.809, allocations: 470.3 kB / 1.247 GB, free: 82.26 MB / 0.5452 GB Notification: Performance of simCode: created initialization part: time 0.02542/2.834, allocations: 16.08 MB / 1.263 GB, free: 66.1 MB / 0.5452 GB Notification: Performance of simCode: created event and clocks part: time 1.243e-05/2.834, allocations: 8.25 kB / 1.263 GB, free: 66.09 MB / 0.5452 GB Notification: Performance of simCode: created simulation system equations: time 0.01483/2.849, allocations: 8.759 MB / 1.271 GB, free: 57.25 MB / 0.5452 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01618/2.866, allocations: 2.412 MB / 1.274 GB, free: 54.88 MB / 0.5452 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3101/3.176, allocations: 47.38 MB / 1.32 GB, free: 156.5 MB / 0.5452 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01928/3.195, allocations: 13.12 MB / 1.333 GB, free: 155.3 MB / 0.5452 GB Notification: Performance of simCode: alias equations: time 0.01126/3.206, allocations: 3.993 MB / 1.337 GB, free: 155 MB / 0.5452 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002439/3.209, allocations: 0.6581 MB / 1.337 GB, free: 155 MB / 0.5452 GB Notification: Performance of SimCode: time 2.114e-06/3.209, allocations: 0 / 1.337 GB, free: 155 MB / 0.5452 GB Notification: Performance of Templates: time 0.2182/3.427, allocations: 151.7 MB / 1.485 GB, free: 32.25 MB / 0.5452 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)