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.0008457/0.0008459, allocations: 89.84 kB / 16.65 MB, free: 6.535 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.0008309/0.0008311, allocations: 176.7 kB / 17.56 MB, free: 6.18 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.41/1.41, allocations: 205.4 MB / 223.7 MB, free: 13.07 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.0007719/0.0007719, allocations: 16 kB / 280.7 MB, free: 3.422 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1073/0.108, allocations: 47.59 MB / 328.3 MB, free: 3.762 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_withLosses): time 0.01298/0.1211, allocations: 12.76 MB / 341.1 MB, free: 6.938 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.008505/0.1296, allocations: 4.768 MB / 345.9 MB, free: 2.156 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001708/0.1314, allocations: 67.69 kB / 345.9 MB, free: 2.09 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002649/0.134, allocations: 0.8862 MB / 346.8 MB, free: 1.199 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003584/0.1376, allocations: 1.263 MB / 348.1 MB, free: 15.93 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002128/0.1398, allocations: 0.8889 MB / 349 MB, free: 15.04 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.005188/0.145, allocations: 4.636 MB / 353.6 MB, free: 10.38 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003014/0.148, allocations: 2.699 MB / 356.3 MB, free: 7.617 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001755/0.1498, allocations: 1.412 MB / 357.7 MB, free: 6.199 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00215/0.1519, allocations: 1.91 MB / 359.6 MB, free: 4.281 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003427/0.1523, allocations: 220 kB / 359.8 MB, free: 4.066 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001185/0.1535, allocations: 0.6009 MB / 360.4 MB, free: 3.465 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007472/0.1542, allocations: 0.9495 MB / 361.4 MB, free: 2.512 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001702/0.156, allocations: 1.964 MB / 363.3 MB, free: 0.5312 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005516/0.1615, allocations: 6.883 MB / 370.2 MB, free: 9.625 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.238e-06/0.1615, allocations: 0 / 370.2 MB, free: 9.625 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.593e-06/0.1615, allocations: 4 kB / 370.2 MB, free: 9.621 MB / 318.1 MB Notification: Performance of Transformations before backend: time 9.196e-05/0.1616, allocations: 4 kB / 370.2 MB, free: 9.617 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: 877 * Number of variables: 877 Notification: Performance of Generate backend data structure: time 0.009254/0.1709, allocations: 4.213 MB / 374.4 MB, free: 5.328 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.314e-05/0.1709, allocations: 12.02 kB / 374.5 MB, free: 5.316 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004258/0.1752, allocations: 0.8819 MB / 375.3 MB, free: 4.43 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00387/0.1791, allocations: 2.561 MB / 377.9 MB, free: 1.793 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000174/0.1793, allocations: 254.6 kB / 378.1 MB, free: 1.543 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005198/0.1798, allocations: 339.9 kB / 378.5 MB, free: 1.211 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.17/0.3498, allocations: 4.55 MB / 383 MB, free: 30.13 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.95e-05/0.3499, allocations: 3.391 kB / 383 MB, free: 30.13 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003736/0.3503, allocations: 138.2 kB / 383.2 MB, free: 30.13 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001998/0.3505, allocations: 153.6 kB / 383.3 MB, free: 30.12 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007576/0.3581, allocations: 3.932 MB / 387.2 MB, free: 30.09 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01921/0.3774, allocations: 14.26 MB / 401.5 MB, free: 22.95 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005856/0.3832, allocations: 6.979 MB / 408.5 MB, free: 16.55 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002408/0.3857, allocations: 1.701 MB / 410.2 MB, free: 15.73 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006017/0.3917, allocations: 4.261 MB / 414.5 MB, free: 12.64 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.031e-05/0.3918, allocations: 51.88 kB / 414.5 MB, free: 12.58 MB / 318.1 MB Notification: Performance of pre-optimization done (n=165): time 3.616e-06/0.3918, allocations: 0 / 414.5 MB, free: 12.58 MB / 318.1 MB Notification: Performance of matching and sorting (n=185): time 0.0145/0.4063, allocations: 7.922 MB / 422.4 MB, free: 4.574 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.069e-05/0.4063, allocations: 74.62 kB / 422.5 MB, free: 4.492 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002776/0.4091, allocations: 2.627 MB / 425.1 MB, free: 1.84 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001196/0.4093, allocations: 57.7 kB / 425.2 MB, free: 1.777 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007531/0.41, allocations: 1.616 MB / 426.8 MB, free: 148 kB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005015/0.4105, allocations: 0.6318 MB / 427.4 MB, free: 15.52 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000219/0.4107, allocations: 149.6 kB / 427.6 MB, free: 15.36 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001001/0.4109, allocations: 305.1 kB / 427.9 MB, free: 15.06 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001661/0.4125, allocations: 0.9247 MB / 428.8 MB, free: 14.14 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001937/0.4145, allocations: 1.317 MB / 430.1 MB, free: 12.67 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003541/0.418, allocations: 2.378 MB / 432.5 MB, free: 10.19 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.324e-06/0.418, allocations: 4 kB / 432.5 MB, free: 10.19 MB / 334.1 MB Notification: Performance of matching and sorting (n=246) (initialization): time 0.005414/0.4235, allocations: 3.092 MB / 435.6 MB, free: 7.164 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.386e-05/0.4235, allocations: 8 kB / 435.6 MB, free: 7.156 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.169e-05/0.4235, allocations: 12 kB / 435.6 MB, free: 7.145 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001514/0.4251, allocations: 0.5597 MB / 436.2 MB, free: 6.578 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00175/0.4268, allocations: 440.8 kB / 436.6 MB, free: 6.172 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008889/0.4357, allocations: 6.951 MB / 443.5 MB, free: 15 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001678/0.4374, allocations: 99.91 kB / 443.6 MB, free: 14.9 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001501/0.4376, allocations: 75.98 kB / 443.7 MB, free: 14.82 MB / 350.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.001961/0.4395, allocations: 1.163 MB / 444.9 MB, free: 13.68 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004084/0.44, allocations: 248.9 kB / 445.1 MB, free: 13.43 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005201/0.4452, allocations: 2.911 MB / 448 MB, free: 10.53 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.274e-05/0.4452, allocations: 24 kB / 448.1 MB, free: 10.51 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.282e-05/0.4452, allocations: 16 kB / 448.1 MB, free: 10.49 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.596e-05/0.4453, allocations: 7.969 kB / 448.1 MB, free: 10.48 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009742/0.455, allocations: 6.371 MB / 454.5 MB, free: 4.094 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.712e-06/0.455, allocations: 0 / 454.5 MB, free: 4.094 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001314/0.4564, allocations: 286.9 kB / 454.7 MB, free: 3.824 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001563/0.4579, allocations: 0.6097 MB / 455.3 MB, free: 3.207 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001228/0.4581, allocations: 43.97 kB / 455.4 MB, free: 3.164 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01142/0.4695, allocations: 10.5 MB / 465.9 MB, free: 8.203 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.4e-06/0.4695, allocations: 6.234 kB / 465.9 MB, free: 8.199 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007384/0.4769, allocations: 4.197 MB / 470.1 MB, free: 3.992 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001084/0.478, allocations: 0.5447 MB / 470.6 MB, free: 3.426 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002744/0.4783, allocations: 32.86 kB / 470.7 MB, free: 3.395 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001116/0.4794, allocations: 95.92 kB / 470.8 MB, free: 3.301 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003866/0.4798, allocations: 145.7 kB / 470.9 MB, free: 3.16 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001171/0.48, allocations: 52.77 kB / 471 MB, free: 3.109 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.002546/0.4825, allocations: 1.842 MB / 472.8 MB, free: 1.254 MB / 366.1 MB Notification: Performance of sort global known variables: time 2.5e-07/0.4825, allocations: 1.125 kB / 472.8 MB, free: 1.254 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.002286/0.4848, allocations: 0.6946 MB / 473.5 MB, free: 0.5625 MB / 366.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.00112/0.4859, allocations: 442.6 kB / 473.9 MB, free: 172 kB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.005411/0.4914, allocations: 2.859 MB / 476.8 MB, free: 13.33 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.647e-06/0.4914, allocations: 0.6875 kB / 476.8 MB, free: 13.33 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003162/0.4946, allocations: 1.955 MB / 478.7 MB, free: 11.35 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00327/0.4978, allocations: 0.5556 MB / 479.3 MB, free: 10.79 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01171/0.5096, allocations: 8.777 MB / 488.1 MB, free: 1.996 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002229/0.5118, allocations: 2.624 MB / 490.7 MB, free: 15.34 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.001692/0.5135, allocations: 0.5045 MB / 491.2 MB, free: 14.84 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004572/0.514, allocations: 167.4 kB / 491.4 MB, free: 14.67 MB / 398.1 MB Notification: Performance of SimCode: time 1.112e-06/0.514, allocations: 0 / 491.4 MB, free: 14.67 MB / 398.1 MB Notification: Performance of Templates: time 0.05738/0.5714, allocations: 35.19 MB / 0.5142 GB, free: 11.51 MB / 430.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)