Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator.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.SMEE_Generator,tolerance=1e-06,outputFormat="empty",numberOfIntervals=60000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator") translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator,tolerance=1e-06,outputFormat="empty",numberOfIntervals=60000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.008356/0.008357, allocations: 101.4 kB / 15.73 MB, free: 5.492 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.001736/0.001736, allocations: 186.3 kB / 16.67 MB, free: 5.422 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.523/1.523, allocations: 205.1 MB / 222.5 MB, free: 4.395 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.001311/0.001311, allocations: 42.34 kB / 326.6 MB, free: 14.43 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1001/0.1014, allocations: 46.63 MB / 373.2 MB, free: 1.27 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator): time 0.02625/0.1277, allocations: 24.05 MB / 397.2 MB, free: 9.109 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01451/0.1422, allocations: 7.106 MB / 404.4 MB, free: 1.977 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004041/0.1464, allocations: 127.5 kB / 404.5 MB, free: 1.852 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004521/0.1509, allocations: 1.611 MB / 406.1 MB, free: 240 kB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007546/0.1585, allocations: 2.357 MB / 408.4 MB, free: 13.86 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00435/0.1628, allocations: 1.467 MB / 409.9 MB, free: 12.39 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.01016/0.173, allocations: 7.208 MB / 417.1 MB, free: 5.152 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007041/0.1801, allocations: 5.474 MB / 422.6 MB, free: 15.59 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004835/0.185, allocations: 3.204 MB / 425.8 MB, free: 12.38 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005687/0.1907, allocations: 3.822 MB / 429.6 MB, free: 8.543 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001906/0.1926, allocations: 0.875 MB / 430.5 MB, free: 7.668 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003186/0.1958, allocations: 1.3 MB / 431.8 MB, free: 6.367 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002354/0.1982, allocations: 2.127 MB / 433.9 MB, free: 4.234 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006208/0.2044, allocations: 3.78 MB / 437.7 MB, free: 448 kB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01349/0.2179, allocations: 11.47 MB / 449.2 MB, free: 4.938 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.002e-06/0.218, allocations: 0 / 449.2 MB, free: 4.938 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.863e-06/0.218, allocations: 0 / 449.2 MB, free: 4.938 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0003139/0.2183, allocations: 0 / 449.2 MB, free: 4.938 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1496 * Number of variables: 1496 Notification: Performance of Generate backend data structure: time 0.2153/0.4336, allocations: 7.416 MB / 456.6 MB, free: 63.28 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.446e-05/0.4337, allocations: 9.125 kB / 456.6 MB, free: 63.28 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006995/0.4407, allocations: 1.217 MB / 457.8 MB, free: 62.88 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0102/0.4509, allocations: 3.919 MB / 461.7 MB, free: 60.79 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004588/0.4514, allocations: 432.4 kB / 462.2 MB, free: 60.59 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001874/0.4533, allocations: 0.5565 MB / 462.7 MB, free: 60.41 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0152/0.4685, allocations: 7.276 MB / 470 MB, free: 57.22 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001489/0.4687, allocations: 8.219 kB / 470 MB, free: 57.22 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000611/0.4693, allocations: 240.9 kB / 470.2 MB, free: 57.04 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002249/0.4695, allocations: 259.1 kB / 470.5 MB, free: 57 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01112/0.4807, allocations: 6.113 MB / 476.6 MB, free: 53.84 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03472/0.5154, allocations: 23.4 MB / 500 MB, free: 32.07 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006761/0.5222, allocations: 8.719 MB / 0.4968 GB, free: 22.43 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003415/0.5257, allocations: 2.359 MB / 0.4991 GB, free: 20.06 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01329/0.539, allocations: 6.93 MB / 0.5059 GB, free: 13 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.397e-05/0.5391, allocations: 60.56 kB / 0.5059 GB, free: 12.93 MB / 382.1 MB Notification: Performance of pre-optimization done (n=238): time 6.462e-06/0.5391, allocations: 0 / 0.5059 GB, free: 12.93 MB / 382.1 MB Notification: Performance of matching and sorting (n=282): time 0.03083/0.57, allocations: 13.72 MB / 0.5193 GB, free: 15.01 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.211e-05/0.5701, allocations: 79.84 kB / 0.5194 GB, free: 14.92 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006887/0.577, allocations: 3.424 MB / 0.5227 GB, free: 11.51 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004882/0.5775, allocations: 81.45 kB / 0.5228 GB, free: 11.43 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002216/0.5797, allocations: 2.684 MB / 0.5254 GB, free: 8.723 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001176/0.5809, allocations: 0.9578 MB / 0.5264 GB, free: 7.773 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001373/0.5823, allocations: 0.6371 MB / 0.527 GB, free: 7.129 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 9.188e-05/0.5824, allocations: 305.1 kB / 0.5273 GB, free: 6.828 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002786/0.5852, allocations: 1.549 MB / 0.5288 GB, free: 5.277 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003735/0.5889, allocations: 2.755 MB / 0.5315 GB, free: 1.992 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007358/0.5963, allocations: 4.61 MB / 0.536 GB, free: 12.81 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.774e-05/0.5964, allocations: 8 kB / 0.536 GB, free: 12.8 MB / 414.1 MB Notification: Performance of matching and sorting (n=472) (initialization): time 0.01172/0.6081, allocations: 5.47 MB / 0.5413 GB, free: 7.227 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.513e-05/0.6082, allocations: 27.94 kB / 0.5414 GB, free: 7.199 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.578e-05/0.6083, allocations: 36.66 kB / 0.5414 GB, free: 7.164 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001791/0.6101, allocations: 0.6647 MB / 0.542 GB, free: 6.48 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003954/0.6141, allocations: 0.8619 MB / 0.5429 GB, free: 5.617 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01109/0.6252, allocations: 10.36 MB / 0.553 GB, free: 10.7 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004175/0.6294, allocations: 223.6 kB / 0.5532 GB, free: 10.48 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007432/0.6302, allocations: 171.8 kB / 0.5534 GB, free: 10.32 MB / 430.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 175 * 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 (430): * Single equations (assignments): 420 * Array equations: 4 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * 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): 2 systems {(2,100.0%), (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,12,100.0%), (1,3,100.0%), (2,13,100.0%), (1,5,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.004007/0.6342, allocations: 1.625 MB / 0.555 GB, free: 8.684 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001317/0.6355, allocations: 391.2 kB / 0.5553 GB, free: 8.297 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008578/0.6441, allocations: 4.502 MB / 0.5597 GB, free: 3.668 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.315e-05/0.6442, allocations: 28 kB / 0.5598 GB, free: 3.641 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.419e-05/0.6442, allocations: 8 kB / 0.5598 GB, free: 3.633 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.822e-05/0.6442, allocations: 11.95 kB / 0.5598 GB, free: 3.621 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01789/0.6621, allocations: 9.907 MB / 0.5695 GB, free: 9.539 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.33e-05/0.6622, allocations: 4 kB / 0.5695 GB, free: 9.535 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00213/0.6643, allocations: 0.4993 MB / 0.57 GB, free: 9.035 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00195/0.6663, allocations: 0.7307 MB / 0.5707 GB, free: 8.285 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002544/0.6665, allocations: 71.97 kB / 0.5707 GB, free: 8.215 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01408/0.6806, allocations: 14.12 MB / 0.5845 GB, free: 9.27 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.915e-06/0.6807, allocations: 7.938 kB / 0.5845 GB, free: 9.262 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01183/0.6925, allocations: 6.594 MB / 0.591 GB, free: 2.418 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002432/0.6949, allocations: 0.7738 MB / 0.5917 GB, free: 1.621 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001218/0.6962, allocations: 63.98 kB / 0.5918 GB, free: 1.559 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003143/0.6993, allocations: 163.8 kB / 0.5919 GB, free: 1.398 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007569/0.7001, allocations: 213.6 kB / 0.5922 GB, free: 1.191 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003241/0.7005, allocations: 87.91 kB / 0.5922 GB, free: 1.105 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.005007/0.7055, allocations: 2.306 MB / 0.5945 GB, free: 14.82 MB / 478.1 MB Notification: Performance of sort global known variables: time 2.7e-07/0.7055, allocations: 4 kB / 0.5945 GB, free: 14.81 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.004841/0.7104, allocations: 1.095 MB / 0.5956 GB, free: 13.72 MB / 478.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 22 * Number of states: 10 (smeeM.phiMechanical,smeeM.stator.core.Phi.re,smeeM.stator.core.Phi.im,smeeM.stator.strayReluctance.Phi.re,smeeM.stator.strayReluctance.Phi.im,smeeE.phiMechanical,smeeE.idq_sr[1],smeeE.idq_sr[2],smeeE.idq_rr[2],smeeE.idq_dr[1]) * 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 (238): * Single equations (assignments): 228 * Array equations: 4 * 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 {(2,13,100.0%), (1,5,100.0%), (1,8,100.0%), (3,12,100.0%), (1,3,100.0%), (2,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0007271/0.7111, allocations: 280.1 kB / 0.5958 GB, free: 13.45 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.007568/0.7187, allocations: 4.69 MB / 0.6004 GB, free: 8.648 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 8.947e-06/0.7187, allocations: 8.188 kB / 0.6004 GB, free: 8.641 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004338/0.723, allocations: 2.813 MB / 0.6032 GB, free: 5.75 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004924/0.728, allocations: 0.9108 MB / 0.6041 GB, free: 4.844 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01924/0.7472, allocations: 10.43 MB / 0.6142 GB, free: 10.31 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004819/0.7521, allocations: 3.499 MB / 0.6177 GB, free: 6.773 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.003381/0.7555, allocations: 0.8562 MB / 0.6185 GB, free: 5.91 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001123/0.7566, allocations: 263.4 kB / 0.6187 GB, free: 5.652 MB / 494.1 MB Notification: Performance of SimCode: time 9.02e-07/0.7567, allocations: 0 / 0.6187 GB, free: 5.652 MB / 494.1 MB Notification: Performance of Templates: time 0.2924/1.049, allocations: 51.64 MB / 0.6692 GB, free: 131.3 MB / 494.1 MB make -j1 -f Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator.makefile (rm -f Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator.pipe ; mkfifo Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator.pipe >> ../files/Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator.sim & ./Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator.pipe 2>&1)