Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.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.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.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.009128/0.009128, allocations: 96.3 kB / 15.73 MB, free: 6.484 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.001937/0.001938, allocations: 191.4 kB / 16.67 MB, free: 6.391 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.412/1.412, allocations: 205.1 MB / 222.5 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.001273/0.001273, allocations: 50.77 kB / 326.6 MB, free: 14.39 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09192/0.0932, allocations: 46.62 MB / 373.2 MB, free: 1.289 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_withLosses): time 0.01595/0.1092, allocations: 13.56 MB / 386.8 MB, free: 3.66 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01067/0.1199, allocations: 4.868 MB / 391.6 MB, free: 14.77 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0032/0.1232, allocations: 67.75 kB / 391.7 MB, free: 14.71 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004064/0.1272, allocations: 1.037 MB / 392.7 MB, free: 13.66 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.005843/0.1331, allocations: 1.394 MB / 394.1 MB, free: 12.26 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003149/0.1363, allocations: 0.9664 MB / 395.1 MB, free: 11.29 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.006442/0.1427, allocations: 4.328 MB / 399.4 MB, free: 6.949 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004718/0.1475, allocations: 3.292 MB / 402.7 MB, free: 3.586 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003527/0.151, allocations: 1.998 MB / 404.7 MB, free: 1.582 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004774/0.1558, allocations: 2.277 MB / 407 MB, free: 15.3 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001588/0.1574, allocations: 0.5352 MB / 407.5 MB, free: 14.76 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002871/0.1603, allocations: 0.9096 MB / 408.4 MB, free: 13.85 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001904/0.1623, allocations: 1.363 MB / 409.8 MB, free: 12.48 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004472/0.1668, allocations: 2.357 MB / 412.2 MB, free: 10.12 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01074/0.1775, allocations: 7.354 MB / 419.5 MB, free: 2.738 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.731e-06/0.1776, allocations: 0 / 419.5 MB, free: 2.738 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.743e-06/0.1776, allocations: 0 / 419.5 MB, free: 2.738 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0002481/0.1778, allocations: 0 / 419.5 MB, free: 2.738 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.01505/0.1929, allocations: 5.101 MB / 424.6 MB, free: 13.55 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.143e-05/0.1929, allocations: 8.031 kB / 424.6 MB, free: 13.55 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005609/0.1986, allocations: 0.8921 MB / 425.5 MB, free: 12.65 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006618/0.2052, allocations: 2.645 MB / 428.2 MB, free: 9.934 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003576/0.2056, allocations: 254.6 kB / 428.4 MB, free: 9.684 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001517/0.2071, allocations: 340 kB / 428.7 MB, free: 9.352 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01202/0.2192, allocations: 4.543 MB / 433.3 MB, free: 4.762 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001307/0.2193, allocations: 0 / 433.3 MB, free: 4.762 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008276/0.2202, allocations: 140 kB / 433.4 MB, free: 4.625 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001802/0.2203, allocations: 154.6 kB / 433.6 MB, free: 4.473 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008956/0.2293, allocations: 3.911 MB / 437.5 MB, free: 0.5547 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02747/0.2568, allocations: 14.04 MB / 451.5 MB, free: 2.219 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.2115/0.4684, allocations: 6.965 MB / 458.5 MB, free: 61.12 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003672/0.4721, allocations: 1.726 MB / 460.2 MB, free: 61.1 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007496/0.4796, allocations: 4.248 MB / 464.5 MB, free: 59.27 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.972e-05/0.4797, allocations: 50.94 kB / 464.5 MB, free: 59.22 MB / 382.1 MB Notification: Performance of pre-optimization done (n=165): time 3.857e-06/0.4797, allocations: 0 / 464.5 MB, free: 59.22 MB / 382.1 MB Notification: Performance of matching and sorting (n=185): time 0.01839/0.4981, allocations: 7.88 MB / 472.4 MB, free: 55.94 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.684e-05/0.4981, allocations: 70.91 kB / 472.5 MB, free: 55.88 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005027/0.5032, allocations: 2.631 MB / 475.1 MB, free: 54.95 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002945/0.5035, allocations: 57.61 kB / 475.1 MB, free: 54.89 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001307/0.5048, allocations: 1.653 MB / 476.8 MB, free: 53.82 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007462/0.5056, allocations: 0.6552 MB / 477.5 MB, free: 53.38 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007101/0.5063, allocations: 335.1 kB / 477.8 MB, free: 53.22 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 4.32e-05/0.5064, allocations: 305.1 kB / 478.1 MB, free: 52.92 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002065/0.5085, allocations: 0.9039 MB / 479 MB, free: 52.57 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002245/0.5107, allocations: 1.305 MB / 480.3 MB, free: 51.77 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004821/0.5156, allocations: 2.357 MB / 482.6 MB, free: 50.25 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.224e-05/0.5156, allocations: 4.25 kB / 482.7 MB, free: 50.25 MB / 382.1 MB Notification: Performance of matching and sorting (n=246) (initialization): time 0.007221/0.5228, allocations: 3.081 MB / 485.7 MB, free: 48.6 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.945e-05/0.5229, allocations: 10.88 kB / 485.7 MB, free: 48.6 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.263e-05/0.5229, allocations: 12.44 kB / 485.8 MB, free: 48.6 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001392/0.5243, allocations: 0.5603 MB / 486.3 MB, free: 48.33 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001548/0.5259, allocations: 437.5 kB / 486.7 MB, free: 48.22 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009649/0.5355, allocations: 7.57 MB / 494.3 MB, free: 40.97 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002611/0.5382, allocations: 79.94 kB / 494.4 MB, free: 40.89 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003831/0.5386, allocations: 79.98 kB / 494.5 MB, free: 40.82 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.003006/0.5416, allocations: 1.164 MB / 495.6 MB, free: 39.65 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009997/0.5426, allocations: 268.2 kB / 495.9 MB, free: 39.39 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006875/0.5495, allocations: 2.877 MB / 498.8 MB, free: 36.49 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.255e-05/0.5496, allocations: 27.48 kB / 498.8 MB, free: 36.46 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.647e-05/0.5496, allocations: 8 kB / 498.8 MB, free: 36.46 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.245e-05/0.5496, allocations: 7.969 kB / 498.8 MB, free: 36.45 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0145/0.5641, allocations: 6.343 MB / 0.4933 GB, free: 30.06 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.205e-05/0.5642, allocations: 0 / 0.4933 GB, free: 30.06 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001637/0.5658, allocations: 279.7 kB / 0.4936 GB, free: 29.79 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002082/0.5679, allocations: 0.6221 MB / 0.4942 GB, free: 29.15 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001893/0.5682, allocations: 43.98 kB / 0.4942 GB, free: 29.11 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01258/0.5807, allocations: 11.45 MB / 0.5054 GB, free: 17.13 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.056e-06/0.5808, allocations: 4.031 kB / 0.5054 GB, free: 17.13 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006795/0.5876, allocations: 4.167 MB / 0.5095 GB, free: 12.93 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001364/0.589, allocations: 0.5539 MB / 0.51 GB, free: 12.35 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006333/0.5896, allocations: 39.98 kB / 0.5101 GB, free: 12.31 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001674/0.5913, allocations: 87.88 kB / 0.5101 GB, free: 12.23 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003946/0.5917, allocations: 133.8 kB / 0.5103 GB, free: 12.09 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001484/0.5919, allocations: 56.84 kB / 0.5103 GB, free: 12.04 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.002929/0.5948, allocations: 1.846 MB / 0.5121 GB, free: 10.18 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.5948, allocations: 0 / 0.5121 GB, free: 10.18 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.002815/0.5977, allocations: 0.6894 MB / 0.5128 GB, free: 9.496 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.001079/0.5988, allocations: 453.1 kB / 0.5132 GB, free: 9.074 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.004389/0.6032, allocations: 2.844 MB / 0.516 GB, free: 6.207 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.359e-06/0.6032, allocations: 8 kB / 0.516 GB, free: 6.199 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002667/0.6058, allocations: 1.954 MB / 0.5179 GB, free: 4.191 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002982/0.6088, allocations: 0.5916 MB / 0.5185 GB, free: 3.598 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01216/0.621, allocations: 7.155 MB / 0.5255 GB, free: 12.42 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003648/0.6247, allocations: 2.639 MB / 0.5281 GB, free: 9.75 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.001963/0.6267, allocations: 0.4966 MB / 0.5286 GB, free: 9.25 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007281/0.6275, allocations: 171.4 kB / 0.5287 GB, free: 9.082 MB / 398.1 MB Notification: Performance of SimCode: time 1.022e-06/0.6275, allocations: 0 / 0.5287 GB, free: 9.082 MB / 398.1 MB Notification: Performance of Templates: time 0.06295/0.6904, allocations: 35.69 MB / 0.5636 GB, free: 5.387 MB / 430.1 MB make -j1 -f Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_withLosses.makefile (rm -f Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_withLosses.pipe ; mkfifo Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_withLosses.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_withLosses.pipe >> ../files/Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_withLosses.sim & ./Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_withLosses -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_withLosses.pipe 2>&1)