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_Mains.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_Mains,tolerance=1e-06,outputFormat="empty",numberOfIntervals=20000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains") translateModel(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains,tolerance=1e-06,outputFormat="empty",numberOfIntervals=20000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.005972/0.005972, allocations: 100.8 kB / 15.73 MB, free: 6.043 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.001157/0.001157, allocations: 190 kB / 16.67 MB, free: 5.977 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.444/1.444, allocations: 205.1 MB / 222.6 MB, free: 4.504 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.001224/0.001224, allocations: 50.11 kB / 326.6 MB, free: 14.43 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09853/0.09977, allocations: 46.63 MB / 373.2 MB, free: 1.309 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains): time 0.03778/0.1376, allocations: 37.34 MB / 410.5 MB, free: 11.8 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0237/0.1613, allocations: 10.02 MB / 420.6 MB, free: 1.75 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.008287/0.1697, allocations: 235.2 kB / 420.8 MB, free: 1.52 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.02123/0.191, allocations: 9.173 MB / 430 MB, free: 8.305 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01447/0.2055, allocations: 4.06 MB / 434 MB, free: 4.223 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00984/0.2153, allocations: 2.421 MB / 436.4 MB, free: 1.797 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.02301/0.2384, allocations: 14.25 MB / 450.7 MB, free: 3.492 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.2555/0.4939, allocations: 25.59 MB / 476.3 MB, free: 4.422 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01023/0.5042, allocations: 7.286 MB / 483.6 MB, free: 3.93 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01046/0.5147, allocations: 7.999 MB / 491.6 MB, free: 0.5312 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.004223/0.5189, allocations: 2.035 MB / 493.6 MB, free: 0.5312 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006634/0.5256, allocations: 2.434 MB / 496 MB, free: 440 kB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.006856/0.5325, allocations: 4.125 MB / 0.4884 GB, free: 13.5 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01854/0.551, allocations: 7.889 MB / 0.4961 GB, free: 6.078 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.03289/0.584, allocations: 27 MB / 0.5225 GB, free: 14.26 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.813e-06/0.584, allocations: 0 / 0.5225 GB, free: 14.26 MB / 430.1 MB Notification: Performance of FrontEnd: time 4.688e-06/0.584, allocations: 0 / 0.5225 GB, free: 14.26 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0006968/0.5848, allocations: 3.938 kB / 0.5225 GB, free: 14.26 MB / 430.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3387 * Number of variables: 3387 Notification: Performance of Generate backend data structure: time 0.05354/0.6383, allocations: 16.02 MB / 0.5382 GB, free: 14.28 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.637e-05/0.6384, allocations: 12.03 kB / 0.5382 GB, free: 14.27 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04385/0.6822, allocations: 7.393 MB / 0.5454 GB, free: 6.941 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01725/0.6995, allocations: 7.762 MB / 0.553 GB, free: 15.49 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001126/0.7007, allocations: 0.9203 MB / 0.5539 GB, free: 14.58 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005048/0.7057, allocations: 1.211 MB / 0.5551 GB, free: 13.39 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05266/0.7584, allocations: 19.22 MB / 0.5738 GB, free: 10.11 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005785/0.759, allocations: 19.38 kB / 0.5738 GB, free: 10.09 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003968/0.763, allocations: 0.5055 MB / 0.5743 GB, free: 9.602 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0008366/0.7639, allocations: 0.6775 MB / 0.575 GB, free: 8.922 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03576/0.7997, allocations: 17.68 MB / 0.5923 GB, free: 7.234 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.5003/1.3, allocations: 63.11 MB / 0.6539 GB, free: 142.9 MB / 0.5138 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02628/1.326, allocations: 38.67 MB / 0.6917 GB, free: 110.6 MB / 0.5138 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00631/1.333, allocations: 4.17 MB / 0.6957 GB, free: 109.7 MB / 0.5138 GB Notification: Performance of preOpt evalFunc (simulation): time 0.02121/1.354, allocations: 12.2 MB / 0.7076 GB, free: 103.8 MB / 0.5138 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.492e-05/1.354, allocations: 81.08 kB / 0.7077 GB, free: 103.8 MB / 0.5138 GB Notification: Performance of pre-optimization done (n=402): time 6.602e-06/1.354, allocations: 3.938 kB / 0.7077 GB, free: 103.7 MB / 0.5138 GB Notification: Performance of matching and sorting (n=412): time 0.03749/1.392, allocations: 20.05 MB / 0.7273 GB, free: 92.55 MB / 0.5138 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.961e-05/1.392, allocations: 121.4 kB / 0.7274 GB, free: 92.45 MB / 0.5138 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007616/1.399, allocations: 5.305 MB / 0.7326 GB, free: 89.66 MB / 0.5138 GB Notification: Performance of collectPreVariables (initialization): time 0.0007423/1.4, allocations: 89.52 kB / 0.7327 GB, free: 89.58 MB / 0.5138 GB Notification: Performance of collectInitialEqns (initialization): time 0.002842/1.403, allocations: 5.499 MB / 0.7381 GB, free: 84.79 MB / 0.5138 GB Notification: Performance of collectInitialBindings (initialization): time 0.001311/1.404, allocations: 1.429 MB / 0.7395 GB, free: 83.55 MB / 0.5138 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001673/1.406, allocations: 1.306 MB / 0.7407 GB, free: 82.8 MB / 0.5138 GB Notification: Performance of setup shared object (initialization): time 5.506e-05/1.406, allocations: 301.1 kB / 0.741 GB, free: 82.5 MB / 0.5138 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003775/1.41, allocations: 2.911 MB / 0.7439 GB, free: 79.84 MB / 0.5138 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004563/1.414, allocations: 5.64 MB / 0.7494 GB, free: 72.93 MB / 0.5138 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.009184/1.424, allocations: 9.118 MB / 0.7583 GB, free: 62.51 MB / 0.5138 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.976e-05/1.424, allocations: 28 kB / 0.7583 GB, free: 62.48 MB / 0.5138 GB Notification: Performance of matching and sorting (n=867) (initialization): time 0.01488/1.439, allocations: 9.994 MB / 0.7681 GB, free: 52.41 MB / 0.5138 GB Notification: Performance of prepare postOptimizeDAE: time 5.44e-05/1.439, allocations: 44 kB / 0.7681 GB, free: 52.37 MB / 0.5138 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001047/1.439, allocations: 96 kB / 0.7682 GB, free: 52.28 MB / 0.5138 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002762/1.441, allocations: 1.134 MB / 0.7693 GB, free: 51.12 MB / 0.5138 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005253/1.447, allocations: 1.525 MB / 0.7708 GB, free: 49.6 MB / 0.5138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01296/1.46, allocations: 13.46 MB / 0.7839 GB, free: 35.58 MB / 0.5138 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006118/1.466, allocations: 371.2 kB / 0.7843 GB, free: 35.22 MB / 0.5138 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001346/1.467, allocations: 344 kB / 0.7846 GB, free: 34.88 MB / 0.5138 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 412 * 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 (803): * Single equations (assignments): 797 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * 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): 1 system {(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 {(1,1,100.0%), (1,5,100.0%), (1,1,100.0%), (10,46,52.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.007796/1.475, allocations: 4.298 MB / 0.7888 GB, free: 30.57 MB / 0.5138 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001416/1.476, allocations: 0.5364 MB / 0.7893 GB, free: 30.03 MB / 0.5138 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01076/1.487, allocations: 7.105 MB / 0.7963 GB, free: 22.82 MB / 0.5138 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.005753/1.493, allocations: 4.229 MB / 0.8004 GB, free: 18.54 MB / 0.5138 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.746e-05/1.493, allocations: 16 kB / 0.8004 GB, free: 18.53 MB / 0.5138 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.741e-05/1.493, allocations: 19.92 kB / 0.8004 GB, free: 18.51 MB / 0.5138 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02649/1.52, allocations: 17.03 MB / 0.8171 GB, free: 1.352 MB / 0.5138 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.661e-05/1.52, allocations: 4.594 kB / 0.8171 GB, free: 1.348 MB / 0.5138 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00285/1.523, allocations: 0.6827 MB / 0.8177 GB, free: 0.6641 MB / 0.5138 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003274/1.526, allocations: 1.186 MB / 0.8189 GB, free: 15.46 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004824/1.526, allocations: 103.9 kB / 0.819 GB, free: 15.36 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2428/1.769, allocations: 17.37 MB / 0.836 GB, free: 167.3 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.975e-06/1.769, allocations: 7.656 kB / 0.836 GB, free: 167.3 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01699/1.786, allocations: 10.28 MB / 0.846 GB, free: 166 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002971/1.789, allocations: 1.124 MB / 0.8471 GB, free: 165.6 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001198/1.79, allocations: 87.06 kB / 0.8472 GB, free: 165.5 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00272/1.793, allocations: 210.1 kB / 0.8474 GB, free: 165.4 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00082/1.794, allocations: 303.3 kB / 0.8477 GB, free: 165.4 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002884/1.794, allocations: 130.3 kB / 0.8478 GB, free: 165.4 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.006683/1.801, allocations: 3.547 MB / 0.8513 GB, free: 164.1 MB / 0.5294 GB Notification: Performance of sort global known variables: time 1.41e-07/1.801, allocations: 0 / 0.8513 GB, free: 164.1 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.007825/1.809, allocations: 1.989 MB / 0.8532 GB, free: 163.9 MB / 0.5294 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 21 * Number of states: 10 (smpmQS.inertiaRotor.w,smpmQS.rotorCage.port_p.reference.gamma,loadInertiaMQS.phi,smpm.inertiaRotor.w,smpm.stator.zeroInductor.i0,smpm.stator.core.Phi.re,smpm.stator.core.Phi.im,smpm.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.re,smpm.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.im,loadInertiaM.phi) * 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 (353): * Single equations (assignments): 346 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * 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 {(1,1,100.0%), (10,46,52.0%), (1,1,100.0%), (1,5,100.0%), (1,8,100.0%), (2,13,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0009414/1.81, allocations: 279.5 kB / 0.8535 GB, free: 163.7 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.0118/1.822, allocations: 7.837 MB / 0.8611 GB, free: 160.5 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 9.708e-06/1.822, allocations: 0 / 0.8611 GB, free: 160.5 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.006279/1.828, allocations: 4.073 MB / 0.8651 GB, free: 158.5 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007128/1.835, allocations: 1.448 MB / 0.8665 GB, free: 157.9 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03378/1.869, allocations: 20.65 MB / 0.8867 GB, free: 148.7 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008002/1.877, allocations: 7.453 MB / 0.894 GB, free: 144.4 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.005599/1.883, allocations: 2.081 MB / 0.896 GB, free: 143 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001155/1.884, allocations: 406.6 kB / 0.8964 GB, free: 142.6 MB / 0.5294 GB Notification: Performance of SimCode: time 1.012e-06/1.884, allocations: 0 / 0.8964 GB, free: 142.6 MB / 0.5294 GB Notification: Performance of Templates: time 0.1172/2.001, allocations: 80.96 MB / 0.9754 GB, free: 64.13 MB / 0.5294 GB make -j1 -f Modelica_3.1_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains.makefile (rm -f Modelica_3.1_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains.pipe ; mkfifo Modelica_3.1_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains.pipe >> ../files/Modelica_3.1_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains.sim & ./Modelica_3.1_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains.pipe 2>&1)