Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.1_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.1_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.1_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.006629/0.00663, allocations: 95.83 kB / 15.73 MB, free: 6.039 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.001366/0.001366, allocations: 197.9 kB / 16.68 MB, free: 5.969 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.459/1.459, allocations: 205.1 MB / 222.5 MB, free: 4.539 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.001147/0.001147, allocations: 53.8 kB / 326.6 MB, free: 14.37 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08252/0.08367, allocations: 46.63 MB / 373.2 MB, free: 1.273 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_withLosses): time 0.0141/0.09781, allocations: 13.56 MB / 386.8 MB, free: 3.645 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.009048/0.1069, allocations: 4.876 MB / 391.6 MB, free: 14.75 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002105/0.1091, allocations: 71.69 kB / 391.7 MB, free: 14.68 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002927/0.112, allocations: 1.068 MB / 392.8 MB, free: 13.61 MB / 334.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.004192/0.1162, allocations: 1.445 MB / 394.2 MB, free: 12.15 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002905/0.1191, allocations: 0.9664 MB / 395.2 MB, free: 11.18 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.006908/0.1261, allocations: 4.324 MB / 399.5 MB, free: 6.844 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005291/0.1314, allocations: 3.292 MB / 402.8 MB, free: 3.48 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003286/0.1347, allocations: 2.017 MB / 404.8 MB, free: 1.457 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003415/0.1381, allocations: 2.273 MB / 407.1 MB, free: 15.18 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008283/0.139, allocations: 0.5352 MB / 407.6 MB, free: 14.64 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001749/0.1407, allocations: 0.9096 MB / 408.6 MB, free: 13.73 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001234/0.142, allocations: 1.367 MB / 409.9 MB, free: 12.36 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002664/0.1447, allocations: 2.349 MB / 412.3 MB, free: 10 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007391/0.1521, allocations: 7.365 MB / 419.6 MB, free: 2.609 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.779e-06/0.1521, allocations: 0 / 419.6 MB, free: 2.609 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.833e-06/0.1521, allocations: 0 / 419.6 MB, free: 2.609 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.00011/0.1522, allocations: 0 / 419.6 MB, free: 2.609 MB / 350.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.01138/0.1636, allocations: 5.089 MB / 424.7 MB, free: 13.44 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.266e-05/0.1637, allocations: 15.88 kB / 424.7 MB, free: 13.42 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004308/0.168, allocations: 0.896 MB / 425.6 MB, free: 12.52 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005123/0.1731, allocations: 2.637 MB / 428.3 MB, free: 9.812 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001884/0.1733, allocations: 258.6 kB / 428.5 MB, free: 9.559 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006459/0.174, allocations: 335.9 kB / 428.8 MB, free: 9.23 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007442/0.1814, allocations: 4.547 MB / 433.4 MB, free: 4.637 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.967e-05/0.1815, allocations: 0 / 433.4 MB, free: 4.637 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003143/0.1819, allocations: 139.9 kB / 433.5 MB, free: 4.5 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001617/0.182, allocations: 154.7 kB / 433.7 MB, free: 4.348 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006984/0.189, allocations: 3.907 MB / 437.6 MB, free: 444 kB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02536/0.2144, allocations: 14.04 MB / 451.6 MB, free: 2.094 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.2134/0.4278, allocations: 6.96 MB / 458.6 MB, free: 61.15 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003997/0.4319, allocations: 1.724 MB / 460.3 MB, free: 61.13 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00897/0.4409, allocations: 4.258 MB / 464.6 MB, free: 59.24 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.769e-05/0.4409, allocations: 53 kB / 464.6 MB, free: 59.19 MB / 382.1 MB Notification: Performance of pre-optimization done (n=165): time 5.209e-06/0.4409, allocations: 0 / 464.6 MB, free: 59.19 MB / 382.1 MB Notification: Performance of matching and sorting (n=185): time 0.01673/0.4577, allocations: 7.881 MB / 472.5 MB, free: 55.89 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.91e-05/0.4578, allocations: 71.12 kB / 472.6 MB, free: 55.83 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00346/0.4612, allocations: 2.632 MB / 475.2 MB, free: 54.9 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001585/0.4614, allocations: 57.55 kB / 475.3 MB, free: 54.84 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009616/0.4624, allocations: 1.648 MB / 476.9 MB, free: 53.77 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003881/0.4628, allocations: 0.6503 MB / 477.6 MB, free: 53.34 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004496/0.4632, allocations: 339 kB / 477.9 MB, free: 53.18 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 4.108e-05/0.4633, allocations: 305.1 kB / 478.2 MB, free: 52.88 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001329/0.4646, allocations: 0.9107 MB / 479.1 MB, free: 52.52 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001422/0.466, allocations: 1.301 MB / 480.4 MB, free: 51.72 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00294/0.469, allocations: 2.356 MB / 482.8 MB, free: 50.19 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.843e-06/0.469, allocations: 3.938 kB / 482.8 MB, free: 50.19 MB / 382.1 MB Notification: Performance of matching and sorting (n=246) (initialization): time 0.00483/0.4738, allocations: 3.077 MB / 485.8 MB, free: 48.54 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.825e-05/0.4739, allocations: 7.562 kB / 485.8 MB, free: 48.54 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.129e-05/0.4739, allocations: 14.98 kB / 485.9 MB, free: 48.53 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001452/0.4754, allocations: 0.5622 MB / 486.4 MB, free: 48.26 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001683/0.4771, allocations: 432.2 kB / 486.8 MB, free: 48.15 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007499/0.4846, allocations: 7.576 MB / 494.4 MB, free: 40.83 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001977/0.4866, allocations: 88 kB / 494.5 MB, free: 40.74 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001835/0.4868, allocations: 75.98 kB / 494.6 MB, free: 40.67 MB / 382.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.001981/0.4888, allocations: 1.16 MB / 495.7 MB, free: 39.5 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000605/0.4894, allocations: 270.2 kB / 496 MB, free: 39.24 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004492/0.4939, allocations: 2.879 MB / 498.9 MB, free: 36.34 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.395e-05/0.4939, allocations: 20 kB / 498.9 MB, free: 36.32 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.005e-05/0.494, allocations: 12 kB / 498.9 MB, free: 36.31 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.352e-05/0.494, allocations: 7.969 kB / 498.9 MB, free: 36.3 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009345/0.5033, allocations: 6.337 MB / 0.4934 GB, free: 29.92 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.458e-06/0.5034, allocations: 0.875 kB / 0.4934 GB, free: 29.92 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001191/0.5046, allocations: 275.6 kB / 0.4937 GB, free: 29.65 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001477/0.5061, allocations: 0.6213 MB / 0.4943 GB, free: 29.02 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001151/0.5062, allocations: 43.98 kB / 0.4943 GB, free: 28.98 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009276/0.5155, allocations: 11.45 MB / 0.5055 GB, free: 17 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.968e-06/0.5155, allocations: 3.984 kB / 0.5055 GB, free: 17 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006216/0.5217, allocations: 4.168 MB / 0.5096 GB, free: 12.79 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001236/0.523, allocations: 0.5539 MB / 0.5101 GB, free: 12.22 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002799/0.5233, allocations: 39.98 kB / 0.5102 GB, free: 12.18 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001098/0.5244, allocations: 86.72 kB / 0.5103 GB, free: 12.1 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003102/0.5247, allocations: 145.7 kB / 0.5104 GB, free: 11.95 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001175/0.5249, allocations: 51.98 kB / 0.5104 GB, free: 11.9 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001994/0.5269, allocations: 1.842 MB / 0.5122 GB, free: 10.05 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.5269, allocations: 0 / 0.5122 GB, free: 10.05 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.002358/0.5292, allocations: 0.6894 MB / 0.5129 GB, free: 9.363 MB / 382.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.001037/0.5303, allocations: 442.5 kB / 0.5133 GB, free: 8.945 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.004367/0.5347, allocations: 2.846 MB / 0.5161 GB, free: 6.082 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 5.15e-06/0.5347, allocations: 1.938 kB / 0.5161 GB, free: 6.082 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002672/0.5374, allocations: 1.966 MB / 0.518 GB, free: 4.062 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002691/0.5401, allocations: 0.589 MB / 0.5186 GB, free: 3.469 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01299/0.5531, allocations: 7.161 MB / 0.5256 GB, free: 12.29 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003412/0.5565, allocations: 2.639 MB / 0.5282 GB, free: 9.617 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.002203/0.5588, allocations: 0.4927 MB / 0.5287 GB, free: 9.121 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007014/0.5595, allocations: 171.4 kB / 0.5288 GB, free: 8.953 MB / 398.1 MB Notification: Performance of SimCode: time 1.233e-06/0.5595, allocations: 0 / 0.5288 GB, free: 8.953 MB / 398.1 MB Notification: Performance of Templates: time 0.06984/0.6293, allocations: 35.69 MB / 0.5637 GB, free: 5.262 MB / 430.1 MB make -j1 -f Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_withLosses.makefile (rm -f Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_withLosses.pipe ; mkfifo Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_withLosses.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_withLosses.pipe >> ../files/Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_withLosses.sim & ./Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_withLosses -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_withLosses.pipe 2>&1)