Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.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.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.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.00577/0.00577, allocations: 98.02 kB / 15.73 MB, free: 6.062 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.00112/0.00112, allocations: 196.1 kB / 16.67 MB, free: 5.973 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.355/1.355, allocations: 205.1 MB / 222.5 MB, free: 4.535 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.001103/0.001103, allocations: 48.8 kB / 326.6 MB, free: 14.4 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08077/0.08188, allocations: 46.63 MB / 373.2 MB, free: 1.297 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA): time 0.03157/0.1135, allocations: 29.2 MB / 402.4 MB, free: 3.965 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01703/0.1306, allocations: 8.533 MB / 410.9 MB, free: 11.41 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004573/0.1352, allocations: 179.4 kB / 411.1 MB, free: 11.23 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01782/0.1531, allocations: 8.198 MB / 419.3 MB, free: 2.996 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01022/0.1633, allocations: 3.039 MB / 422.4 MB, free: 15.94 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006263/0.1696, allocations: 1.901 MB / 424.3 MB, free: 14.04 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01673/0.1863, allocations: 10.5 MB / 434.8 MB, free: 3.5 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.2235/0.4098, allocations: 21.46 MB / 456.2 MB, free: 16.86 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.009034/0.4189, allocations: 5.597 MB / 461.8 MB, free: 16.51 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01064/0.4296, allocations: 6.365 MB / 468.2 MB, free: 15.5 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.005127/0.4347, allocations: 1.584 MB / 469.8 MB, free: 15.49 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007104/0.4419, allocations: 1.941 MB / 471.7 MB, free: 15.49 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00504/0.4469, allocations: 3.186 MB / 474.9 MB, free: 15.13 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0103/0.4573, allocations: 6.124 MB / 481 MB, free: 13.17 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02518/0.4825, allocations: 21.23 MB / 0.4905 GB, free: 0.668 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.126e-06/0.4825, allocations: 0 / 0.4905 GB, free: 0.668 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.144e-06/0.4825, allocations: 0 / 0.4905 GB, free: 0.668 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0005752/0.4831, allocations: 7.562 kB / 0.4905 GB, free: 0.6641 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.0519/0.535, allocations: 12.67 MB / 0.5029 GB, free: 7.875 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.278e-05/0.5351, allocations: 12.03 kB / 0.5029 GB, free: 7.863 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.07275/0.6079, allocations: 8.641 MB / 0.5113 GB, free: 15.31 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0176/0.6255, allocations: 5.929 MB / 0.5171 GB, free: 9.625 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001105/0.6267, allocations: 0.7399 MB / 0.5178 GB, free: 8.895 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004725/0.6314, allocations: 0.9695 MB / 0.5188 GB, free: 7.938 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04413/0.6756, allocations: 16.57 MB / 0.535 GB, free: 7.32 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004537/0.6761, allocations: 15.89 kB / 0.535 GB, free: 7.305 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003415/0.6795, allocations: 410.7 kB / 0.5354 GB, free: 6.914 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0007234/0.6803, allocations: 0.6106 MB / 0.536 GB, free: 6.301 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03536/0.7156, allocations: 15.97 MB / 0.5515 GB, free: 6.324 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09138/0.8071, allocations: 51.72 MB / 0.6021 GB, free: 2.062 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.2256/1.033, allocations: 52.27 MB / 0.6531 GB, free: 152.3 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.006421/1.039, allocations: 3.465 MB / 0.6565 GB, free: 152.2 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01544/1.055, allocations: 9.398 MB / 0.6657 GB, free: 148.6 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.423e-05/1.055, allocations: 63.69 kB / 0.6657 GB, free: 148.6 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=270): time 4.549e-06/1.055, allocations: 4.812 kB / 0.6657 GB, free: 148.6 MB / 0.5137 GB Notification: Performance of matching and sorting (n=278): time 0.02376/1.078, allocations: 13.05 MB / 0.6785 GB, free: 143 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.338e-05/1.079, allocations: 89.08 kB / 0.6786 GB, free: 143 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005325/1.084, allocations: 4.07 MB / 0.6825 GB, free: 141.4 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 0.0002365/1.084, allocations: 75.83 kB / 0.6826 GB, free: 141.3 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 0.002032/1.086, allocations: 4.805 MB / 0.6873 GB, free: 137.7 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 0.0006638/1.087, allocations: 1.034 MB / 0.6883 GB, free: 136.9 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001383/1.088, allocations: 1.242 MB / 0.6895 GB, free: 136.3 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 4.233e-05/1.088, allocations: 305.1 kB / 0.6898 GB, free: 136 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002829/1.091, allocations: 2.446 MB / 0.6922 GB, free: 135.1 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003793/1.095, allocations: 5.601 MB / 0.6977 GB, free: 129.9 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007269/1.102, allocations: 8.695 MB / 0.7062 GB, free: 123 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.343e-05/1.102, allocations: 31.62 kB / 0.7062 GB, free: 123 MB / 0.5137 GB Notification: Performance of matching and sorting (n=778) (initialization): time 0.01199/1.114, allocations: 8.773 MB / 0.7148 GB, free: 119.4 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 5.688e-05/1.114, allocations: 51.44 kB / 0.7148 GB, free: 119.4 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001363/1.114, allocations: 111 kB / 0.7149 GB, free: 119.4 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002098/1.117, allocations: 0.8666 MB / 0.7158 GB, free: 118.9 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004199/1.121, allocations: 1.408 MB / 0.7171 GB, free: 117.6 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008808/1.13, allocations: 7.576 MB / 0.7245 GB, free: 110.9 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005176/1.135, allocations: 356.1 kB / 0.7249 GB, free: 110.6 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008622/1.136, allocations: 347.7 kB / 0.7252 GB, free: 110.2 MB / 0.5137 GB 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.005789/1.142, allocations: 3.677 MB / 0.7288 GB, free: 106.7 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009867/1.142, allocations: 429.3 kB / 0.7292 GB, free: 106.2 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007553/1.15, allocations: 5.079 MB / 0.7342 GB, free: 101.1 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.784e-05/1.15, allocations: 32 kB / 0.7342 GB, free: 101.1 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.169e-05/1.15, allocations: 4 kB / 0.7342 GB, free: 101.1 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.678e-05/1.15, allocations: 19.94 kB / 0.7342 GB, free: 101.1 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.018/1.168, allocations: 12.22 MB / 0.7462 GB, free: 88.77 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.183e-05/1.168, allocations: 7.469 kB / 0.7462 GB, free: 88.77 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002032/1.17, allocations: 0.5157 MB / 0.7467 GB, free: 88.25 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001834/1.172, allocations: 0.7073 MB / 0.7474 GB, free: 87.54 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002004/1.172, allocations: 63.98 kB / 0.7474 GB, free: 87.48 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007238/1.18, allocations: 6.714 MB / 0.754 GB, free: 80.64 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.366e-06/1.18, allocations: 8 kB / 0.754 GB, free: 80.63 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009111/1.189, allocations: 7.361 MB / 0.7612 GB, free: 73.12 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001923/1.191, allocations: 0.8184 MB / 0.762 GB, free: 72.29 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008686/1.192, allocations: 59.95 kB / 0.762 GB, free: 72.23 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001969/1.194, allocations: 167.9 kB / 0.7622 GB, free: 72.06 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004235/1.194, allocations: 201.9 kB / 0.7624 GB, free: 71.86 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001881/1.194, allocations: 87.97 kB / 0.7625 GB, free: 71.78 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.004036/1.198, allocations: 2.676 MB / 0.7651 GB, free: 69.09 MB / 0.5137 GB Notification: Performance of sort global known variables: time 6.42e-07/1.198, allocations: 0 / 0.7651 GB, free: 69.09 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.00708/1.205, allocations: 1.547 MB / 0.7666 GB, free: 67.54 MB / 0.5137 GB 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.0007479/1.206, allocations: 229.7 kB / 0.7668 GB, free: 67.31 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.00854/1.215, allocations: 6.144 MB / 0.7728 GB, free: 61.16 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 6.472e-06/1.215, allocations: 0 / 0.7728 GB, free: 61.16 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.003373/1.218, allocations: 2.482 MB / 0.7752 GB, free: 58.66 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004406/1.222, allocations: 0.9488 MB / 0.7762 GB, free: 57.73 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02351/1.246, allocations: 16.35 MB / 0.7921 GB, free: 41.32 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00502/1.251, allocations: 6.199 MB / 0.7982 GB, free: 35.08 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.004736/1.256, allocations: 1.951 MB / 0.8001 GB, free: 33.12 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008111/1.257, allocations: 323.4 kB / 0.8004 GB, free: 32.81 MB / 0.5137 GB Notification: Performance of SimCode: time 1.352e-06/1.257, allocations: 0 / 0.8004 GB, free: 32.81 MB / 0.5137 GB Notification: Performance of Templates: time 0.2908/1.547, allocations: 55.87 MB / 0.855 GB, free: 160.6 MB / 0.5137 GB make -j1 -f Modelica_3.1_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.makefile (rm -f Modelica_3.1_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe ; mkfifo Modelica_3.1_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe >> ../files/Modelica_3.1_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.sim & ./Modelica_3.1_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe 2>&1)