Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.1_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.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/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Transformer,tolerance=1e-06,outputFormat="empty",numberOfIntervals=50000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Transformer") translateModel(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Transformer,tolerance=1e-06,outputFormat="empty",numberOfIntervals=50000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Transformer") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.005074/0.005079, allocations: 94.11 kB / 15.73 MB, free: 6.484 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001306/0.001306, allocations: 190.9 kB / 16.67 MB, free: 6.391 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.453/1.453, allocations: 205.1 MB / 222.6 MB, free: 4.543 MB / 174.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001211/0.001211, allocations: 53.89 kB / 328 MB, free: 13.39 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1215/0.1228, allocations: 46.62 MB / 374.6 MB, free: 15.9 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Transformer): time 0.0515/0.1743, allocations: 49.5 MB / 424.1 MB, free: 14.19 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.03766/0.212, allocations: 12.93 MB / 437 MB, free: 1.219 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01471/0.2268, allocations: 322.9 kB / 437.4 MB, free: 0.9023 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.03357/0.2604, allocations: 13.85 MB / 451.2 MB, free: 2.992 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.3275/0.588, allocations: 5.459 MB / 456.7 MB, free: 6.32 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01364/0.6016, allocations: 3.295 MB / 460 MB, free: 6.262 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.03875/0.6404, allocations: 24.41 MB / 484.4 MB, free: 5.363 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.09123/0.7317, allocations: 47.43 MB / 0.5193 GB, free: 2.453 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.02981/0.7616, allocations: 12.67 MB / 0.5317 GB, free: 6.238 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.02807/0.7897, allocations: 13.91 MB / 0.5453 GB, free: 8.895 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.01299/0.8027, allocations: 3.637 MB / 0.5489 GB, free: 5.258 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01747/0.8202, allocations: 4.115 MB / 0.5529 GB, free: 1.207 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.01496/0.8352, allocations: 7.353 MB / 0.5601 GB, free: 10.04 MB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 0.03449/0.8697, allocations: 13.87 MB / 0.5736 GB, free: 12.29 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0725/0.9423, allocations: 48.74 MB / 0.6212 GB, free: 12.37 MB / 0.5137 GB Notification: Performance of FrontEnd - DAE generated: time 4.749e-06/0.9423, allocations: 0 / 0.6212 GB, free: 12.37 MB / 0.5137 GB Notification: Performance of FrontEnd: time 1.432e-06/0.9423, allocations: 0 / 0.6212 GB, free: 12.37 MB / 0.5137 GB Notification: Performance of Transformations before backend: time 0.001669/0.944, allocations: 0 / 0.6212 GB, free: 12.37 MB / 0.5137 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 5875 * Number of variables: 5875 Notification: Performance of Generate backend data structure: time 0.5775/1.522, allocations: 28.29 MB / 0.6488 GB, free: 154.7 MB / 0.5138 GB Notification: Performance of prepare preOptimizeDAE: time 5.151e-05/1.522, allocations: 9.625 kB / 0.6488 GB, free: 154.7 MB / 0.5138 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.08057/1.602, allocations: 15.03 MB / 0.6635 GB, free: 148 MB / 0.5138 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03461/1.637, allocations: 13.46 MB / 0.6766 GB, free: 139.4 MB / 0.5138 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.00227/1.639, allocations: 1.584 MB / 0.6782 GB, free: 137.9 MB / 0.5138 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.01272/1.652, allocations: 2.083 MB / 0.6802 GB, free: 135.8 MB / 0.5138 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.09161/1.744, allocations: 35.17 MB / 0.7146 GB, free: 100.6 MB / 0.5138 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0009833/1.745, allocations: 35.78 kB / 0.7146 GB, free: 100.6 MB / 0.5138 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.008551/1.753, allocations: 0.8706 MB / 0.7155 GB, free: 99.71 MB / 0.5138 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001126/1.754, allocations: 1.181 MB / 0.7166 GB, free: 98.52 MB / 0.5138 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.07295/1.827, allocations: 33.01 MB / 0.7488 GB, free: 65.48 MB / 0.5138 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.7228/2.55, allocations: 107.9 MB / 0.8542 GB, free: 133.4 MB / 0.5452 GB Notification: Performance of preOpt comSubExp (simulation): time 0.04122/2.591, allocations: 55.89 MB / 0.9087 GB, free: 94.21 MB / 0.5452 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.01539/2.607, allocations: 9.955 MB / 0.9185 GB, free: 94.05 MB / 0.5452 GB Notification: Performance of preOpt evalFunc (simulation): time 0.08414/2.691, allocations: 27.33 MB / 0.9452 GB, free: 86.55 MB / 0.5452 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001738/2.691, allocations: 135.8 kB / 0.9453 GB, free: 86.45 MB / 0.5452 GB Notification: Performance of pre-optimization done (n=894): time 2.606e-05/2.691, allocations: 0 / 0.9453 GB, free: 86.45 MB / 0.5452 GB Notification: Performance of matching and sorting (n=906): time 0.1239/2.815, allocations: 39.94 MB / 0.9843 GB, free: 59.23 MB / 0.5452 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001295/2.816, allocations: 172.5 kB / 0.9845 GB, free: 59.04 MB / 0.5452 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.02121/2.837, allocations: 8.517 MB / 0.9928 GB, free: 50.61 MB / 0.5452 GB Notification: Performance of collectPreVariables (initialization): time 0.002498/2.839, allocations: 169.7 kB / 0.9929 GB, free: 50.44 MB / 0.5452 GB Notification: Performance of collectInitialEqns (initialization): time 0.005938/2.845, allocations: 9.13 MB / 1.002 GB, free: 42.12 MB / 0.5452 GB Notification: Performance of collectInitialBindings (initialization): time 0.00465/2.85, allocations: 3.206 MB / 1.005 GB, free: 38.95 MB / 0.5452 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0048/2.855, allocations: 2.284 MB / 1.007 GB, free: 36.66 MB / 0.5452 GB Notification: Performance of setup shared object (initialization): time 6.286e-05/2.855, allocations: 305.1 kB / 1.008 GB, free: 36.36 MB / 0.5452 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.009567/2.864, allocations: 6.304 MB / 1.014 GB, free: 30.05 MB / 0.5452 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01321/2.878, allocations: 10.26 MB / 1.024 GB, free: 18.04 MB / 0.5452 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.02194/2.9, allocations: 17.63 MB / 1.041 GB, free: 14.61 MB / 0.5608 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001408/2.9, allocations: 36 kB / 1.041 GB, free: 14.57 MB / 0.5608 GB Notification: Performance of matching and sorting (n=1523) (initialization): time 0.04687/2.947, allocations: 20.69 MB / 1.061 GB, free: 9.777 MB / 0.5764 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001838/2.947, allocations: 60 kB / 1.061 GB, free: 9.719 MB / 0.5764 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003904/2.947, allocations: 127.9 kB / 1.061 GB, free: 9.594 MB / 0.5764 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.002967/2.95, allocations: 0.8797 MB / 1.062 GB, free: 8.695 MB / 0.5764 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01093/2.961, allocations: 2.492 MB / 1.065 GB, free: 6.199 MB / 0.5764 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.3001/3.261, allocations: 12.46 MB / 1.077 GB, free: 178.2 MB / 0.5764 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01072/3.272, allocations: 0.619 MB / 1.077 GB, free: 178.2 MB / 0.5764 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002813/3.275, allocations: 0.5378 MB / 1.078 GB, free: 178.2 MB / 0.5764 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 570 * 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 (1269): * Single equations (assignments): 1262 * 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,100.0%), (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.0209/3.296, allocations: 7.983 MB / 1.086 GB, free: 175.6 MB / 0.5764 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003049/3.299, allocations: 0.9617 MB / 1.087 GB, free: 175.6 MB / 0.5764 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02793/3.327, allocations: 17.08 MB / 1.103 GB, free: 168.7 MB / 0.5764 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.617e-05/3.327, allocations: 95 kB / 1.103 GB, free: 168.7 MB / 0.5764 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.642e-05/3.327, allocations: 40.97 kB / 1.103 GB, free: 168.7 MB / 0.5764 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001149/3.327, allocations: 47.86 kB / 1.104 GB, free: 168.7 MB / 0.5764 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.06628/3.394, allocations: 35.96 MB / 1.139 GB, free: 154.5 MB / 0.5764 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.663e-05/3.394, allocations: 6.438 kB / 1.139 GB, free: 154.5 MB / 0.5764 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006879/3.401, allocations: 1.425 MB / 1.14 GB, free: 154.3 MB / 0.5764 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.403, allocations: 0.9153 MB / 1.141 GB, free: 154.1 MB / 0.5764 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.00189/3.405, allocations: 200.3 kB / 1.141 GB, free: 154 MB / 0.5764 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01268/3.418, allocations: 17.07 MB / 1.158 GB, free: 140.3 MB / 0.5764 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.869e-06/3.418, allocations: 7.688 kB / 1.158 GB, free: 140.3 MB / 0.5764 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03797/3.456, allocations: 24.87 MB / 1.182 GB, free: 116.5 MB / 0.5764 GB Notification: Performance of postOpt removeConstants (simulation): time 0.006164/3.462, allocations: 2.298 MB / 1.184 GB, free: 114.7 MB / 0.5764 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002762/3.465, allocations: 179.9 kB / 1.184 GB, free: 114.5 MB / 0.5764 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.007042/3.472, allocations: 0.4898 MB / 1.185 GB, free: 114 MB / 0.5764 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002066/3.474, allocations: 0.7913 MB / 1.186 GB, free: 113.2 MB / 0.5764 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0006489/3.475, allocations: 256 kB / 1.186 GB, free: 113 MB / 0.5764 GB Notification: Performance of sorting global known variables: time 0.008733/3.484, allocations: 5.778 MB / 1.192 GB, free: 107.2 MB / 0.5764 GB Notification: Performance of sort global known variables: time 2.3e-07/3.484, allocations: 3.938 kB / 1.192 GB, free: 107.2 MB / 0.5764 GB Notification: Performance of remove unused functions: time 0.01324/3.497, allocations: 3.502 MB / 1.195 GB, free: 103.7 MB / 0.5764 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%), (2,26,100.0%), (1,1,100.0%), (1,8,100.0%), (1,13,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.001902/3.499, allocations: 463.2 kB / 1.195 GB, free: 103.3 MB / 0.5764 GB Notification: Performance of simCode: created initialization part: time 0.02247/3.521, allocations: 16.29 MB / 1.211 GB, free: 86.93 MB / 0.5764 GB Notification: Performance of simCode: created event and clocks part: time 1.124e-05/3.521, allocations: 4 kB / 1.211 GB, free: 86.93 MB / 0.5764 GB Notification: Performance of simCode: created simulation system equations: time 0.01262/3.534, allocations: 8.755 MB / 1.22 GB, free: 78.09 MB / 0.5764 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01373/3.548, allocations: 2.575 MB / 1.222 GB, free: 75.51 MB / 0.5764 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06626/3.614, allocations: 38.99 MB / 1.261 GB, free: 36.44 MB / 0.5764 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.02283/3.637, allocations: 13.2 MB / 1.273 GB, free: 23.19 MB / 0.5764 GB Notification: Performance of simCode: alias equations: time 0.01233/3.649, allocations: 4.022 MB / 1.277 GB, free: 19.16 MB / 0.5764 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002886/3.652, allocations: 0.6751 MB / 1.278 GB, free: 18.48 MB / 0.5764 GB Notification: Performance of SimCode: time 8.31e-07/3.652, allocations: 0 / 1.278 GB, free: 18.48 MB / 0.5764 GB Notification: Performance of Templates: time 0.472/4.124, allocations: 146.7 MB / 1.421 GB, free: 71.3 MB / 0.5764 GB make -j1 -f Modelica_3.1_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Transformer.makefile (rm -f Modelica_3.1_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Transformer.pipe ; mkfifo Modelica_3.1_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Transformer.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Transformer.pipe >> ../files/Modelica_3.1_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Transformer.sim & ./Modelica_3.1_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Transformer -nls=newton -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Transformer.pipe 2>&1)