Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_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.FundamentalWave.Examples.BasicMachines.AIMC_Transformer,tolerance=1e-06,outputFormat="empty",numberOfIntervals=50000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Transformer") translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Transformer,tolerance=1e-06,outputFormat="empty",numberOfIntervals=50000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Transformer") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.006406/0.006406, allocations: 101.9 kB / 15.73 MB, free: 6.008 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.001195/0.001195, allocations: 190.9 kB / 16.67 MB, free: 5.949 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.395/1.395, allocations: 205.1 MB / 222.6 MB, free: 4.512 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.001347/0.001347, allocations: 59.05 kB / 326.6 MB, free: 14.32 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.109/0.1104, allocations: 46.62 MB / 373.2 MB, free: 1.316 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Transformer): time 0.01912/0.1295, allocations: 16.76 MB / 389.9 MB, free: 488 kB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01273/0.1423, allocations: 5.72 MB / 395.7 MB, free: 10.74 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004198/0.1466, allocations: 95.62 kB / 395.8 MB, free: 10.64 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004763/0.1514, allocations: 1.379 MB / 397.1 MB, free: 9.258 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007201/0.1587, allocations: 1.833 MB / 399 MB, free: 7.414 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00348/0.1622, allocations: 1.056 MB / 400 MB, free: 6.355 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.008836/0.171, allocations: 6.319 MB / 406.3 MB, free: 12 kB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.008823/0.1799, allocations: 5.287 MB / 411.6 MB, free: 10.64 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006414/0.1863, allocations: 2.948 MB / 414.6 MB, free: 7.68 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007048/0.1934, allocations: 3.343 MB / 417.9 MB, free: 4.324 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003089/0.1965, allocations: 0.7891 MB / 418.7 MB, free: 3.535 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004279/0.2008, allocations: 1.062 MB / 419.8 MB, free: 2.473 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002958/0.2038, allocations: 1.87 MB / 421.6 MB, free: 0.5977 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006496/0.2103, allocations: 3.349 MB / 425 MB, free: 13.23 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0134/0.2237, allocations: 10.5 MB / 435.5 MB, free: 2.699 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.917e-06/0.2238, allocations: 0 / 435.5 MB, free: 2.699 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.795e-06/0.2238, allocations: 0 / 435.5 MB, free: 2.699 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0004138/0.2242, allocations: 0 / 435.5 MB, free: 2.699 MB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1287 * Number of variables: 1287 Notification: Performance of Generate backend data structure: time 0.02119/0.2454, allocations: 6.522 MB / 442 MB, free: 12.09 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.95e-05/0.2455, allocations: 15.89 kB / 442 MB, free: 12.08 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006124/0.2516, allocations: 1.044 MB / 443.1 MB, free: 11.03 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009174/0.2608, allocations: 3.416 MB / 446.5 MB, free: 7.535 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005111/0.2614, allocations: 373.7 kB / 446.9 MB, free: 7.168 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002287/0.2637, allocations: 479.9 kB / 447.3 MB, free: 6.699 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.2395/0.5033, allocations: 6.87 MB / 454.2 MB, free: 64.77 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001989/0.5035, allocations: 3.438 kB / 454.2 MB, free: 64.77 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001043/0.5046, allocations: 200.7 kB / 454.4 MB, free: 64.77 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004565/0.505, allocations: 239.5 kB / 454.6 MB, free: 64.75 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01375/0.5188, allocations: 5.924 MB / 460.6 MB, free: 63.21 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03935/0.5582, allocations: 20.67 MB / 481.2 MB, free: 49.92 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0086/0.5668, allocations: 9.954 MB / 491.2 MB, free: 40.89 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003588/0.5705, allocations: 2.479 MB / 493.7 MB, free: 38.7 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01105/0.5815, allocations: 6.487 MB / 0.4884 GB, free: 32.18 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.819e-05/0.5816, allocations: 61.31 kB / 0.4885 GB, free: 32.11 MB / 382.1 MB Notification: Performance of pre-optimization done (n=219): time 4.559e-06/0.5816, allocations: 0 / 0.4885 GB, free: 32.11 MB / 382.1 MB Notification: Performance of matching and sorting (n=226): time 0.01773/0.5994, allocations: 9.686 MB / 0.4979 GB, free: 22.22 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.705e-05/0.5995, allocations: 73.41 kB / 0.498 GB, free: 22.14 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005155/0.6046, allocations: 2.988 MB / 0.5009 GB, free: 19.13 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002424/0.6049, allocations: 65.7 kB / 0.501 GB, free: 19.06 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001134/0.6061, allocations: 2.156 MB / 0.5031 GB, free: 16.89 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005649/0.6066, allocations: 0.7563 MB / 0.5038 GB, free: 16.14 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007912/0.6074, allocations: 473 kB / 0.5043 GB, free: 15.68 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 4.187e-05/0.6075, allocations: 301.1 kB / 0.5046 GB, free: 15.38 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001906/0.6094, allocations: 1.294 MB / 0.5058 GB, free: 14.08 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002085/0.6115, allocations: 1.924 MB / 0.5077 GB, free: 11.9 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003913/0.6154, allocations: 3.347 MB / 0.511 GB, free: 8.305 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.4e-05/0.6154, allocations: 4 kB / 0.511 GB, free: 8.301 MB / 382.1 MB Notification: Performance of matching and sorting (n=328) (initialization): time 0.006332/0.6218, allocations: 4.253 MB / 0.5151 GB, free: 4.004 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.878e-05/0.6219, allocations: 15.94 kB / 0.5152 GB, free: 3.988 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.376e-05/0.6219, allocations: 16 kB / 0.5152 GB, free: 3.973 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002126/0.624, allocations: 0.7146 MB / 0.5159 GB, free: 3.25 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002131/0.6262, allocations: 0.5656 MB / 0.5164 GB, free: 2.684 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01111/0.6373, allocations: 10.89 MB / 0.5271 GB, free: 7.254 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003419/0.6407, allocations: 107.8 kB / 0.5272 GB, free: 7.148 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000648/0.6414, allocations: 100 kB / 0.5272 GB, free: 7.051 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 82 * Number of states: 0 () * Number of discrete variables: 6 (booleanStep2[3].y,booleanStep2[2].y,booleanStep2[1].y,idealCloser.control[3],idealCloser.control[2],idealCloser.control[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (278): * Single equations (assignments): 273 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 1 system {(2,100.0%)} * 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): 4 systems {(3,25,77.8%), (1,8,100.0%), (1,1,100.0%), (1,13,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.004068/0.6455, allocations: 1.614 MB / 0.5288 GB, free: 5.426 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009972/0.6465, allocations: 312.2 kB / 0.5291 GB, free: 5.117 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007454/0.654, allocations: 3.906 MB / 0.5329 GB, free: 1.145 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.263e-05/0.654, allocations: 24 kB / 0.533 GB, free: 1.121 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.374e-05/0.6541, allocations: 8 kB / 0.533 GB, free: 1.113 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.37e-05/0.6541, allocations: 15.95 kB / 0.533 GB, free: 1.098 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0171/0.6712, allocations: 8.566 MB / 0.5413 GB, free: 8.43 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.006e-05/0.6712, allocations: 0 / 0.5413 GB, free: 8.43 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00162/0.6729, allocations: 351.8 kB / 0.5417 GB, free: 8.086 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002767/0.6757, allocations: 0.8703 MB / 0.5425 GB, free: 7.199 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002116/0.6759, allocations: 59.97 kB / 0.5426 GB, free: 7.141 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01666/0.6926, allocations: 15.7 MB / 0.5579 GB, free: 6.641 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.116e-06/0.6926, allocations: 0 / 0.5579 GB, free: 6.641 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01021/0.7028, allocations: 5.698 MB / 0.5635 GB, free: 0.8438 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002099/0.705, allocations: 0.6807 MB / 0.5642 GB, free: 144 kB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009904/0.706, allocations: 55.98 kB / 0.5642 GB, free: 88 kB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002193/0.7082, allocations: 111.9 kB / 0.5643 GB, free: 15.98 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005549/0.7088, allocations: 185.8 kB / 0.5645 GB, free: 15.8 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001984/0.709, allocations: 60.55 kB / 0.5645 GB, free: 15.74 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.004702/0.7137, allocations: 2.066 MB / 0.5666 GB, free: 13.67 MB / 446.1 MB Notification: Performance of sort global known variables: time 3.1e-07/0.7137, allocations: 0 / 0.5666 GB, free: 13.67 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.004416/0.7181, allocations: 0.9427 MB / 0.5675 GB, free: 12.73 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * Number of states: 9 (aimc.inertiaRotor.w,aimc.stator.zeroInductor.i0,aimc.stator.core.Phi.re,aimc.stator.core.Phi.im,aimc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[3].Phi.re,aimc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[3].Phi.im,transformer.l1sigma.inductor[2].i,transformer.l1sigma.inductor[3].i,quadraticLoadTorque.phi) * Number of discrete variables: 6 (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 (156): * Single equations (assignments): 150 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 6 systems {(1,8,100.0%), (2,26,100.0%), (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.0007935/0.7189, allocations: 256.2 kB / 0.5677 GB, free: 12.48 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.007372/0.7263, allocations: 3.913 MB / 0.5716 GB, free: 8.5 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 6.903e-06/0.7264, allocations: 4 kB / 0.5716 GB, free: 8.496 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004415/0.7308, allocations: 2.625 MB / 0.5741 GB, free: 5.801 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005151/0.736, allocations: 0.9145 MB / 0.575 GB, free: 4.883 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0192/0.7552, allocations: 9.405 MB / 0.5842 GB, free: 11.43 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004665/0.7599, allocations: 3.418 MB / 0.5875 GB, free: 7.98 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.002939/0.7628, allocations: 0.7604 MB / 0.5883 GB, free: 7.215 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008346/0.7637, allocations: 199.4 kB / 0.5885 GB, free: 7.02 MB / 462.1 MB Notification: Performance of SimCode: time 1.212e-06/0.7637, allocations: 0 / 0.5885 GB, free: 7.02 MB / 462.1 MB Notification: Performance of Templates: time 0.3092/1.073, allocations: 48.87 MB / 0.6362 GB, free: 157.7 MB / 494.1 MB make -j1 -f Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Transformer.makefile (rm -f Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Transformer.pipe ; mkfifo Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Transformer.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Transformer.pipe >> ../files/Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Transformer.sim & ./Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Transformer -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Transformer.pipe 2>&1)