Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.1_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.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.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA") translateModel(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001135/0.001135, allocations: 108 kB / 15.6 MB, free: 128 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00118/0.00118, allocations: 195.2 kB / 16.53 MB, free: 6.672 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.297/1.297, allocations: 205.1 MB / 222.4 MB, free: 4.621 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.001422/0.001422, allocations: 52.41 kB / 278.7 MB, free: 12.34 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1869/0.1883, allocations: 46.63 MB / 325.3 MB, free: 1.844 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA): time 0.02851/0.2169, allocations: 29.21 MB / 354.5 MB, free: 6.586 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.01715/0.2341, allocations: 8.545 MB / 363.1 MB, free: 14.01 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006227/0.2403, allocations: 183.4 kB / 363.3 MB, free: 13.83 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01826/0.2587, allocations: 8.184 MB / 371.5 MB, free: 5.613 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01028/0.269, allocations: 3.031 MB / 374.5 MB, free: 2.566 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00561/0.2746, allocations: 1.894 MB / 376.4 MB, free: 0.668 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.01246/0.2871, allocations: 10.42 MB / 386.8 MB, free: 6.207 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02946/0.3166, allocations: 21.55 MB / 408.3 MB, free: 0.5117 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.007999/0.3246, allocations: 5.583 MB / 413.9 MB, free: 10.91 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.009465/0.3341, allocations: 6.397 MB / 420.3 MB, free: 4.496 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003994/0.3382, allocations: 1.582 MB / 421.9 MB, free: 2.914 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005707/0.3439, allocations: 1.941 MB / 423.9 MB, free: 0.9727 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005082/0.349, allocations: 3.191 MB / 427 MB, free: 13.77 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.009974/0.359, allocations: 6.12 MB / 433.2 MB, free: 7.629 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02281/0.3818, allocations: 21.07 MB / 454.2 MB, free: 2.496 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.117e-06/0.3819, allocations: 0 / 454.2 MB, free: 2.496 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.813e-06/0.3819, allocations: 0 / 454.2 MB, free: 2.496 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0006259/0.3825, allocations: 0 / 454.2 MB, free: 2.496 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: 2782 * Number of variables: 2782 Notification: Performance of Generate backend data structure: time 0.3048/0.6873, allocations: 12.47 MB / 466.7 MB, free: 98.94 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.435e-05/0.6874, allocations: 7.938 kB / 466.7 MB, free: 98.94 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04575/0.7331, allocations: 8.585 MB / 475.3 MB, free: 93.22 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0118/0.745, allocations: 5.881 MB / 481.2 MB, free: 87.33 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005876/0.7456, allocations: 0.7457 MB / 481.9 MB, free: 86.59 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003478/0.7491, allocations: 0.9794 MB / 482.9 MB, free: 85.62 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0367/0.7858, allocations: 16.57 MB / 499.5 MB, free: 69 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004995/0.7863, allocations: 19.78 kB / 499.5 MB, free: 68.98 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003471/0.7898, allocations: 418.5 kB / 499.9 MB, free: 68.59 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005494/0.7904, allocations: 0.6067 MB / 0.4888 GB, free: 67.98 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02897/0.8194, allocations: 15.96 MB / 0.5044 GB, free: 52 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07344/0.8928, allocations: 52.12 MB / 0.5553 GB, free: 14.62 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03593/0.9288, allocations: 52.29 MB / 0.6063 GB, free: 3.383 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.1671/1.096, allocations: 3.452 MB / 0.6097 GB, free: 150.4 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01614/1.112, allocations: 9.428 MB / 0.6189 GB, free: 147.7 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.117e-05/1.112, allocations: 60.28 kB / 0.619 GB, free: 147.7 MB / 446.1 MB Notification: Performance of pre-optimization done (n=270): time 4.759e-06/1.112, allocations: 0 / 0.619 GB, free: 147.7 MB / 446.1 MB Notification: Performance of matching and sorting (n=278): time 0.02575/1.138, allocations: 12.94 MB / 0.6316 GB, free: 142.2 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.329e-05/1.138, allocations: 83.72 kB / 0.6317 GB, free: 142.1 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005918/1.144, allocations: 4.063 MB / 0.6356 GB, free: 140.6 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002155/1.144, allocations: 73.55 kB / 0.6357 GB, free: 140.5 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00183/1.146, allocations: 4.624 MB / 0.6402 GB, free: 137 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006001/1.147, allocations: 0.9998 MB / 0.6412 GB, free: 136.3 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001525/1.148, allocations: 1.224 MB / 0.6424 GB, free: 135.7 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 4.48e-05/1.148, allocations: 309 kB / 0.6427 GB, free: 135.4 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002975/1.151, allocations: 2.444 MB / 0.6451 GB, free: 134.3 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003756/1.155, allocations: 5.609 MB / 0.6506 GB, free: 127.7 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007266/1.162, allocations: 8.691 MB / 0.659 GB, free: 118 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.518e-05/1.162, allocations: 31.94 kB / 0.6591 GB, free: 118 MB / 446.1 MB Notification: Performance of matching and sorting (n=778) (initialization): time 0.01144/1.174, allocations: 8.752 MB / 0.6676 GB, free: 109.2 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.285e-05/1.174, allocations: 52 kB / 0.6677 GB, free: 109.2 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.743e-05/1.174, allocations: 112.1 kB / 0.6678 GB, free: 109.1 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002012/1.176, allocations: 0.8724 MB / 0.6686 GB, free: 108.2 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003855/1.18, allocations: 1.408 MB / 0.67 GB, free: 106.8 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008378/1.188, allocations: 7.574 MB / 0.6774 GB, free: 99.07 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004844/1.193, allocations: 355.2 kB / 0.6777 GB, free: 98.72 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000723/1.194, allocations: 352 kB / 0.6781 GB, free: 98.38 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 498 * 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 (733): * Single equations (assignments): 732 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(8,38,65.6%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.005099/1.199, allocations: 3.68 MB / 0.6817 GB, free: 94.68 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009451/1.2, allocations: 403 kB / 0.6821 GB, free: 94.28 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007297/1.207, allocations: 5.085 MB / 0.687 GB, free: 89.14 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.569e-05/1.207, allocations: 28 kB / 0.6871 GB, free: 89.12 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.135e-05/1.207, allocations: 8 kB / 0.6871 GB, free: 89.11 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.288e-05/1.207, allocations: 15.95 kB / 0.6871 GB, free: 89.09 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01606/1.223, allocations: 12.22 MB / 0.699 GB, free: 76.79 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.027e-05/1.223, allocations: 4 kB / 0.699 GB, free: 76.79 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002034/1.225, allocations: 0.5187 MB / 0.6995 GB, free: 76.27 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001796/1.227, allocations: 0.7114 MB / 0.7002 GB, free: 75.55 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001728/1.227, allocations: 67.98 kB / 0.7003 GB, free: 75.49 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007288/1.235, allocations: 6.704 MB / 0.7068 GB, free: 68.65 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.026e-06/1.235, allocations: 4 kB / 0.7068 GB, free: 68.64 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008983/1.244, allocations: 7.344 MB / 0.714 GB, free: 61.16 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001415/1.245, allocations: 0.7966 MB / 0.7148 GB, free: 60.34 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004727/1.246, allocations: 67.84 kB / 0.7148 GB, free: 60.28 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001691/1.247, allocations: 159.8 kB / 0.715 GB, free: 60.12 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003768/1.248, allocations: 205.9 kB / 0.7152 GB, free: 59.92 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001644/1.248, allocations: 87.98 kB / 0.7153 GB, free: 59.83 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.003095/1.251, allocations: 2.68 MB / 0.7179 GB, free: 57.14 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.3e-07/1.251, allocations: 0 / 0.7179 GB, free: 57.14 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.004529/1.255, allocations: 1.549 MB / 0.7194 GB, free: 55.59 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 15 * Number of states: 1 (smpmQS.phiMechanical) * 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 (263): * Single equations (assignments): 262 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(8,38,65.6%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0003823/1.256, allocations: 216.6 kB / 0.7196 GB, free: 55.38 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.01482/1.271, allocations: 9.111 MB / 0.7285 GB, free: 46.28 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 6.833e-06/1.271, allocations: 4.062 kB / 0.7285 GB, free: 46.27 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003082/1.274, allocations: 2.479 MB / 0.7309 GB, free: 43.78 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003889/1.278, allocations: 0.9477 MB / 0.7319 GB, free: 42.84 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02154/1.299, allocations: 16.3 MB / 0.7478 GB, free: 26.51 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005115/1.304, allocations: 6.203 MB / 0.7538 GB, free: 20.27 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.005103/1.31, allocations: 1.947 MB / 0.7557 GB, free: 18.32 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007978/1.31, allocations: 327.4 kB / 0.756 GB, free: 18 MB / 446.1 MB Notification: Performance of SimCode: time 7.72e-07/1.31, allocations: 0 / 0.756 GB, free: 18 MB / 446.1 MB Notification: Performance of Templates: time 0.2461/1.556, allocations: 59.02 MB / 0.8137 GB, free: 111 MB / 446.1 MB make -j1 -f Modelica_3.2.1_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.makefile (rm -f Modelica_3.2.1_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe ; mkfifo Modelica_3.2.1_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe >> ../files/Modelica_3.2.1_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.sim & ./Modelica_3.2.1_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe 2>&1)