Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_withLosses.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_withLosses,tolerance=1e-06,outputFormat="empty",numberOfIntervals=100000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_withLosses") translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_withLosses,tolerance=1e-06,outputFormat="empty",numberOfIntervals=100000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_withLosses") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001718/0.001724, allocations: 114.6 kB / 17.06 MB, free: 6.004 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.00224/0.002241, allocations: 198.9 kB / 18 MB, free: 5.082 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.493/1.493, allocations: 205.1 MB / 223.9 MB, free: 12.24 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.001259/0.001259, allocations: 47.94 kB / 327.9 MB, free: 3.258 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09228/0.09355, allocations: 46.61 MB / 374.5 MB, free: 4.535 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_withLosses): time 0.1867/0.2802, allocations: 13.57 MB / 388.1 MB, free: 5.547 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.008737/0.289, allocations: 4.868 MB / 393 MB, free: 2.293 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003092/0.2922, allocations: 67.28 kB / 393 MB, free: 2.277 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003517/0.2957, allocations: 1.032 MB / 394.1 MB, free: 1.73 MB / 318.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Utilities/Strings.mo:139:3-175:14:writable] Warning: Pure function 'Modelica.Utilities.Strings.isEmpty' contains a call to impure function 'Modelica.Utilities.Strings.Advanced.skipWhiteSpace'. Notification: Performance of NFTyping.typeBindings: time 0.005155/0.3009, allocations: 1.399 MB / 395.5 MB, free: 0.8164 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002508/0.3034, allocations: 0.9722 MB / 396.4 MB, free: 216 kB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.005941/0.3094, allocations: 4.327 MB / 400.8 MB, free: 13.97 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004091/0.3135, allocations: 3.293 MB / 404 MB, free: 12.56 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004019/0.3176, allocations: 2.015 MB / 406.1 MB, free: 11.55 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005511/0.3231, allocations: 2.271 MB / 408.3 MB, free: 10.42 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001186/0.3243, allocations: 0.5373 MB / 408.9 MB, free: 10.41 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002604/0.3269, allocations: 0.912 MB / 409.8 MB, free: 10.28 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001269/0.3282, allocations: 1.359 MB / 411.1 MB, free: 9.23 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003043/0.3313, allocations: 2.345 MB / 413.5 MB, free: 7.504 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009138/0.3404, allocations: 7.342 MB / 420.8 MB, free: 1.25 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.801e-06/0.3405, allocations: 0 / 420.8 MB, free: 1.25 MB / 334.1 MB Notification: Performance of FrontEnd: time 3.607e-06/0.3405, allocations: 0 / 420.8 MB, free: 1.25 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0002281/0.3407, allocations: 0 / 420.8 MB, free: 1.25 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 877 * Number of variables: 877 Notification: Performance of Generate backend data structure: time 0.01486/0.3556, allocations: 4.977 MB / 425.8 MB, free: 12.19 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.071e-05/0.3557, allocations: 11.89 kB / 425.8 MB, free: 12.18 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00438/0.36, allocations: 0.8818 MB / 426.7 MB, free: 11.29 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005301/0.3654, allocations: 2.627 MB / 429.3 MB, free: 8.59 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001939/0.3656, allocations: 250.6 kB / 429.6 MB, free: 8.344 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005837/0.3662, allocations: 339.9 kB / 429.9 MB, free: 8.012 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007622/0.3738, allocations: 4.543 MB / 434.4 MB, free: 3.422 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.074e-05/0.3739, allocations: 3.906 kB / 434.5 MB, free: 3.418 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003024/0.3742, allocations: 132 kB / 434.6 MB, free: 3.289 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001534/0.3744, allocations: 154.7 kB / 434.7 MB, free: 3.137 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00689/0.3813, allocations: 3.915 MB / 438.6 MB, free: 15.21 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02184/0.4031, allocations: 14 MB / 452.6 MB, free: 0.9102 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008086/0.4113, allocations: 6.971 MB / 459.6 MB, free: 9.133 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003164/0.4145, allocations: 1.724 MB / 461.3 MB, free: 7.406 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007892/0.4224, allocations: 4.249 MB / 465.6 MB, free: 3.07 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.015e-05/0.4225, allocations: 43.88 kB / 465.6 MB, free: 3.02 MB / 382.1 MB Notification: Performance of pre-optimization done (n=165): time 4.408e-06/0.4225, allocations: 0 / 465.6 MB, free: 3.02 MB / 382.1 MB Notification: Performance of matching and sorting (n=185): time 0.01756/0.44, allocations: 7.831 MB / 473.5 MB, free: 11.05 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.45e-05/0.4402, allocations: 73.41 kB / 473.5 MB, free: 10.96 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003663/0.4438, allocations: 2.62 MB / 476.2 MB, free: 8.316 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002527/0.4441, allocations: 61.61 kB / 476.2 MB, free: 8.254 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001142/0.4452, allocations: 1.619 MB / 477.8 MB, free: 6.613 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006143/0.4459, allocations: 0.6237 MB / 478.5 MB, free: 5.98 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005376/0.4464, allocations: 331.4 kB / 478.8 MB, free: 5.652 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001012/0.4465, allocations: 305.1 kB / 479.1 MB, free: 5.352 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001544/0.4481, allocations: 0.9097 MB / 480 MB, free: 4.441 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001819/0.4499, allocations: 1.302 MB / 481.3 MB, free: 2.988 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003528/0.4535, allocations: 2.359 MB / 483.7 MB, free: 496 kB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.078e-05/0.4535, allocations: 4 kB / 483.7 MB, free: 492 kB / 398.1 MB Notification: Performance of matching and sorting (n=246) (initialization): time 0.005569/0.4591, allocations: 3.057 MB / 486.7 MB, free: 13.41 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.087e-05/0.4591, allocations: 12.03 kB / 486.7 MB, free: 13.39 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.713e-05/0.4592, allocations: 12 kB / 486.7 MB, free: 13.38 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001507/0.4607, allocations: 0.5594 MB / 487.3 MB, free: 12.82 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001772/0.4625, allocations: 439.3 kB / 487.7 MB, free: 12.39 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009266/0.4717, allocations: 7.563 MB / 495.3 MB, free: 4.547 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001848/0.4736, allocations: 96.06 kB / 495.4 MB, free: 4.453 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000204/0.4738, allocations: 75.98 kB / 495.5 MB, free: 4.379 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 48 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (198): * Single equations (assignments): 194 * Array equations: 2 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,6,100.0%), (8,33,56.2%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.002058/0.4759, allocations: 1.165 MB / 496.6 MB, free: 3.203 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005577/0.4765, allocations: 260.8 kB / 496.9 MB, free: 2.945 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005258/0.4817, allocations: 2.862 MB / 499.7 MB, free: 60 kB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.136e-05/0.4818, allocations: 23.98 kB / 499.8 MB, free: 36 kB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.291e-05/0.4818, allocations: 8 kB / 499.8 MB, free: 28 kB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.635e-05/0.4818, allocations: 7.969 kB / 499.8 MB, free: 20 kB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01128/0.4931, allocations: 6.344 MB / 0.4943 GB, free: 9.582 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.001e-05/0.4932, allocations: 0 / 0.4943 GB, free: 9.582 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001302/0.4945, allocations: 279.7 kB / 0.4945 GB, free: 9.309 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001625/0.4961, allocations: 0.6122 MB / 0.4951 GB, free: 8.684 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001566/0.4963, allocations: 43.98 kB / 0.4952 GB, free: 8.641 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01266/0.509, allocations: 11.45 MB / 0.5063 GB, free: 12.62 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.575e-06/0.509, allocations: 0 / 0.5063 GB, free: 12.62 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007918/0.5169, allocations: 4.144 MB / 0.5104 GB, free: 8.43 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001477/0.5184, allocations: 0.5408 MB / 0.5109 GB, free: 7.867 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000352/0.5188, allocations: 47.91 kB / 0.511 GB, free: 7.82 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001113/0.5199, allocations: 79.94 kB / 0.511 GB, free: 7.742 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003573/0.5203, allocations: 141.7 kB / 0.5112 GB, free: 7.605 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001311/0.5204, allocations: 55.97 kB / 0.5112 GB, free: 7.551 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002807/0.5233, allocations: 1.842 MB / 0.513 GB, free: 5.695 MB / 446.1 MB Notification: Performance of sort global known variables: time 5.11e-07/0.5233, allocations: 4 kB / 0.513 GB, free: 5.691 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.002408/0.5257, allocations: 0.6876 MB / 0.5137 GB, free: 5.004 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 8 (aimc.inertiaRotor.w,aimc.stator.zeroInductor.i0,aimc.stator.core.Phi.re,aimc.stator.core.Phi.im,aimc.stator.strayReluctance.Phi.re,aimc.stator.strayReluctance.Phi.im,loadInertia.phi,PI.x) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (126): * Single equations (assignments): 120 * Array equations: 2 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(2,12,100.0%), (1,6,100.0%), (1,12,100.0%), (2,25,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.001068/0.5268, allocations: 448.2 kB / 0.5141 GB, free: 4.562 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.005373/0.5321, allocations: 2.843 MB / 0.5169 GB, free: 1.695 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 5.731e-06/0.5322, allocations: 4.125 kB / 0.5169 GB, free: 1.691 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003093/0.5353, allocations: 1.954 MB / 0.5188 GB, free: 15.69 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002896/0.5382, allocations: 0.5889 MB / 0.5194 GB, free: 15.1 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0111/0.5493, allocations: 7.037 MB / 0.5263 GB, free: 8.023 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002248/0.5516, allocations: 2.631 MB / 0.5288 GB, free: 5.363 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.001612/0.5532, allocations: 0.5045 MB / 0.5293 GB, free: 4.855 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004893/0.5537, allocations: 163.4 kB / 0.5295 GB, free: 4.695 MB / 462.1 MB Notification: Performance of SimCode: time 7.71e-07/0.5537, allocations: 0 / 0.5295 GB, free: 4.695 MB / 462.1 MB Notification: Performance of Templates: time 0.2299/0.7836, allocations: 36.34 MB / 0.565 GB, free: 147.2 MB / 478.1 MB make -j1 -f Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_withLosses.makefile (rm -f Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_withLosses.pipe ; mkfifo Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_withLosses.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_withLosses.pipe >> ../files/Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_withLosses.sim & ./Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_withLosses -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_withLosses.pipe 2>&1)