Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.2_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.2.2_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.2.2_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.001479/0.001479, allocations: 103.6 kB / 16.51 MB, free: 6.645 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.001702/0.001702, allocations: 195.1 kB / 17.42 MB, free: 6.066 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.281/1.281, allocations: 205.1 MB / 223.3 MB, free: 12.46 MB / 190.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.001132/0.001132, allocations: 51.92 kB / 279.3 MB, free: 3.582 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07902/0.08016, allocations: 46.63 MB / 326 MB, free: 4.883 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Transformer): time 0.01668/0.09687, allocations: 16.56 MB / 342.5 MB, free: 4.242 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.009786/0.1067, allocations: 5.647 MB / 348.2 MB, free: 14.57 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001933/0.1087, allocations: 95.56 kB / 348.3 MB, free: 14.48 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002769/0.1115, allocations: 1.154 MB / 349.4 MB, free: 13.32 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004318/0.1158, allocations: 1.636 MB / 351.1 MB, free: 11.68 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002062/0.1179, allocations: 0.9709 MB / 352 MB, free: 10.7 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.007132/0.125, allocations: 6.923 MB / 359 MB, free: 3.75 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004807/0.1299, allocations: 4.428 MB / 363.4 MB, free: 15.23 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003996/0.1339, allocations: 2.369 MB / 365.7 MB, free: 12.87 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003626/0.1375, allocations: 3.105 MB / 368.9 MB, free: 9.75 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007734/0.1383, allocations: 464 kB / 369.3 MB, free: 9.297 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001668/0.14, allocations: 0.7495 MB / 370.1 MB, free: 8.547 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001308/0.1413, allocations: 1.503 MB / 371.6 MB, free: 7.039 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00324/0.1445, allocations: 2.974 MB / 374.5 MB, free: 4.051 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.16/0.3046, allocations: 10.16 MB / 384.7 MB, free: 24.77 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.407e-06/0.3046, allocations: 1.094 kB / 384.7 MB, free: 24.77 MB / 318.1 MB Notification: Performance of FrontEnd: time 3.417e-06/0.3046, allocations: 0 / 384.7 MB, free: 24.77 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0003585/0.305, allocations: 3.609 kB / 384.7 MB, free: 24.77 MB / 318.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.02514/0.3302, allocations: 6.5 MB / 391.2 MB, free: 22.54 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.439e-05/0.3302, allocations: 9.031 kB / 391.2 MB, free: 22.54 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005433/0.3357, allocations: 1.06 MB / 392.3 MB, free: 22.25 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00674/0.3424, allocations: 3.338 MB / 395.6 MB, free: 21.51 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002657/0.3427, allocations: 361 kB / 396 MB, free: 21.5 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009286/0.3437, allocations: 491.4 kB / 396.4 MB, free: 21.49 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01165/0.3553, allocations: 6.864 MB / 403.3 MB, free: 18.18 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.99e-05/0.3554, allocations: 11.06 kB / 403.3 MB, free: 18.17 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004806/0.3559, allocations: 197.8 kB / 403.5 MB, free: 18.02 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001674/0.3561, allocations: 238.8 kB / 403.7 MB, free: 17.98 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008559/0.3647, allocations: 5.928 MB / 409.7 MB, free: 14.83 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02889/0.3936, allocations: 20.94 MB / 430.6 MB, free: 11.48 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009016/0.4026, allocations: 9.954 MB / 440.6 MB, free: 0.5234 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003687/0.4063, allocations: 2.49 MB / 443 MB, free: 14.04 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01126/0.4176, allocations: 6.507 MB / 449.6 MB, free: 7.512 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.708e-05/0.4177, allocations: 68.39 kB / 449.6 MB, free: 7.438 MB / 350.1 MB Notification: Performance of pre-optimization done (n=219): time 4.258e-06/0.4177, allocations: 0 / 449.6 MB, free: 7.438 MB / 350.1 MB Notification: Performance of matching and sorting (n=226): time 0.01784/0.4355, allocations: 9.67 MB / 459.3 MB, free: 13.61 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.277e-05/0.4356, allocations: 73.41 kB / 459.4 MB, free: 13.52 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004273/0.4399, allocations: 2.996 MB / 462.4 MB, free: 10.51 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001748/0.4401, allocations: 65.7 kB / 462.4 MB, free: 10.44 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001464/0.4416, allocations: 2.154 MB / 464.6 MB, free: 8.273 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005998/0.4422, allocations: 0.7622 MB / 465.3 MB, free: 7.52 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000712/0.4429, allocations: 465.1 kB / 465.8 MB, free: 7.059 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 8.411e-05/0.443, allocations: 305.1 kB / 466.1 MB, free: 6.758 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001932/0.4449, allocations: 1.293 MB / 467.4 MB, free: 5.461 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002288/0.4472, allocations: 1.916 MB / 469.3 MB, free: 3.289 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00431/0.4515, allocations: 3.344 MB / 472.6 MB, free: 15.77 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.063e-05/0.4516, allocations: 4 kB / 472.6 MB, free: 15.76 MB / 382.1 MB Notification: Performance of matching and sorting (n=328) (initialization): time 0.006863/0.4584, allocations: 4.247 MB / 476.9 MB, free: 11.6 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.015e-05/0.4585, allocations: 15.94 kB / 476.9 MB, free: 11.58 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.623e-05/0.4585, allocations: 23.38 kB / 476.9 MB, free: 11.56 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002535/0.4611, allocations: 0.7748 MB / 477.7 MB, free: 10.78 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002211/0.4633, allocations: 0.5675 MB / 478.3 MB, free: 10.24 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00973/0.473, allocations: 10.03 MB / 488.3 MB, free: 15.73 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002505/0.4755, allocations: 107.8 kB / 488.4 MB, free: 15.63 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002488/0.4758, allocations: 103.9 kB / 488.5 MB, free: 15.53 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.003189/0.479, allocations: 1.615 MB / 490.1 MB, free: 13.94 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006965/0.4797, allocations: 312.2 kB / 490.4 MB, free: 13.63 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006373/0.4861, allocations: 3.909 MB / 494.3 MB, free: 9.684 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.813e-05/0.4861, allocations: 20 kB / 494.4 MB, free: 9.664 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.656e-05/0.4861, allocations: 19.41 kB / 494.4 MB, free: 9.648 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.03e-05/0.4862, allocations: 15.95 kB / 494.4 MB, free: 9.633 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01389/0.5001, allocations: 8.558 MB / 0.4912 GB, free: 1.02 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.824e-06/0.5001, allocations: 4 kB / 0.4912 GB, free: 1.016 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001528/0.5016, allocations: 348.6 kB / 0.4915 GB, free: 0.6914 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003047/0.5047, allocations: 0.9338 MB / 0.4924 GB, free: 15.74 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001818/0.5049, allocations: 59.97 kB / 0.4925 GB, free: 15.68 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01442/0.5193, allocations: 14.4 MB / 0.5065 GB, free: 0.5625 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.068e-06/0.5194, allocations: 7.312 kB / 0.5065 GB, free: 0.5586 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009429/0.5288, allocations: 5.701 MB / 0.5121 GB, free: 10.8 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002193/0.531, allocations: 0.6846 MB / 0.5128 GB, free: 10.09 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000574/0.5316, allocations: 62.05 kB / 0.5128 GB, free: 10.04 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001456/0.5331, allocations: 107.9 kB / 0.5129 GB, free: 9.93 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004777/0.5336, allocations: 189 kB / 0.5131 GB, free: 9.75 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001471/0.5337, allocations: 63.98 kB / 0.5132 GB, free: 9.688 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.002973/0.5367, allocations: 2.062 MB / 0.5152 GB, free: 7.625 MB / 430.1 MB Notification: Performance of sort global known variables: time 3.61e-07/0.5367, allocations: 4 kB / 0.5152 GB, free: 7.621 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.003268/0.54, allocations: 0.9413 MB / 0.5161 GB, free: 6.68 MB / 430.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.0006408/0.5406, allocations: 246 kB / 0.5164 GB, free: 6.449 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.006024/0.5467, allocations: 3.895 MB / 0.5202 GB, free: 2.555 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 4.839e-06/0.5467, allocations: 0 / 0.5202 GB, free: 2.555 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004295/0.551, allocations: 2.644 MB / 0.5227 GB, free: 15.87 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004126/0.5551, allocations: 0.8727 MB / 0.5236 GB, free: 15 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01861/0.5737, allocations: 11.58 MB / 0.5349 GB, free: 3.383 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.1687/0.7425, allocations: 3.418 MB / 0.5382 GB, free: 158 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.003447/0.746, allocations: 0.7565 MB / 0.539 GB, free: 158 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005966/0.7466, allocations: 195 kB / 0.5392 GB, free: 158 MB / 446.1 MB Notification: Performance of SimCode: time 6.52e-07/0.7466, allocations: 0 / 0.5392 GB, free: 158 MB / 446.1 MB Notification: Performance of Templates: time 0.0811/0.8277, allocations: 49.01 MB / 0.587 GB, free: 125.5 MB / 446.1 MB make -j1 -f Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Transformer.makefile (rm -f Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Transformer.pipe ; mkfifo Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Transformer.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Transformer.pipe >> ../files/Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Transformer.sim & ./Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Transformer -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Transformer.pipe 2>&1)