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.001345/0.001345, allocations: 99.16 kB / 15.05 MB, free: 1.105 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.001197/0.001196, allocations: 177.3 kB / 15.95 MB, free: 216 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.336/1.336, allocations: 205.4 MB / 222.1 MB, free: 5.656 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.0004621/0.0004623, allocations: 16 kB / 278.9 MB, free: 12.8 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2081/0.2086, allocations: 47.58 MB / 326.5 MB, free: 1.434 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains): time 0.02996/0.2386, allocations: 29.87 MB / 356.4 MB, free: 5.555 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.01828/0.2569, allocations: 9.639 MB / 366 MB, free: 11.89 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004655/0.2616, allocations: 219.2 kB / 366.2 MB, free: 11.68 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00539/0.267, allocations: 2.001 MB / 368.2 MB, free: 9.668 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009834/0.2769, allocations: 3.443 MB / 371.7 MB, free: 6.215 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004878/0.2817, allocations: 1.547 MB / 373.2 MB, free: 4.668 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.01847/0.3002, allocations: 11.28 MB / 384.5 MB, free: 9.363 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.03375/0.334, allocations: 20.2 MB / 404.7 MB, free: 5.059 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.007381/0.3414, allocations: 4.855 MB / 409.5 MB, free: 192 kB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.008158/0.3496, allocations: 5.392 MB / 414.9 MB, free: 10.77 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002586/0.3522, allocations: 0.7891 MB / 415.7 MB, free: 9.984 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003692/0.356, allocations: 1.101 MB / 416.8 MB, free: 8.883 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002311/0.3583, allocations: 2.469 MB / 419.3 MB, free: 6.406 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00355/0.3618, allocations: 2.656 MB / 421.9 MB, free: 3.738 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02312/0.385, allocations: 22.56 MB / 444.5 MB, free: 13.12 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.577e-06/0.385, allocations: 0 / 444.5 MB, free: 13.12 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.414e-06/0.385, allocations: 0 / 444.5 MB, free: 13.12 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0006784/0.3857, allocations: 0 / 444.5 MB, free: 13.12 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: 3387 * Number of variables: 3387 Notification: Performance of Generate backend data structure: time 0.321/0.7067, allocations: 13.42 MB / 457.9 MB, free: 89.43 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.559e-05/0.7068, allocations: 9 kB / 457.9 MB, free: 89.43 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04033/0.7471, allocations: 7.31 MB / 465.2 MB, free: 88.17 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01617/0.7633, allocations: 7.613 MB / 472.8 MB, free: 83.04 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007467/0.7641, allocations: 0.9107 MB / 473.8 MB, free: 82.62 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003714/0.7678, allocations: 1.212 MB / 475 MB, free: 82.22 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03367/0.8015, allocations: 19.04 MB / 494 MB, free: 65.67 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002289/0.8018, allocations: 19.84 kB / 494 MB, free: 65.65 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001186/0.803, allocations: 0.4973 MB / 494.5 MB, free: 65.16 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004514/0.8034, allocations: 0.6853 MB / 495.2 MB, free: 64.48 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02511/0.8285, allocations: 17.61 MB / 0.5008 GB, free: 46.86 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08165/0.9102, allocations: 63.95 MB / 0.5633 GB, free: 13.71 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03197/0.9422, allocations: 38.62 MB / 0.601 GB, free: 2.34 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02103/0.9633, allocations: 12.05 MB / 0.6127 GB, free: 6.273 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.658e-05/0.9634, allocations: 77.84 kB / 0.6128 GB, free: 6.184 MB / 462.1 MB Notification: Performance of pre-optimization done (n=416): time 5.851e-06/0.9634, allocations: 0 / 0.6128 GB, free: 6.184 MB / 462.1 MB Notification: Performance of matching and sorting (n=426): time 0.196/1.159, allocations: 20.52 MB / 0.6329 GB, free: 149.9 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.875e-05/1.16, allocations: 122.1 kB / 0.633 GB, free: 149.8 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005725/1.165, allocations: 5.161 MB / 0.638 GB, free: 147.8 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003434/1.166, allocations: 93.98 kB / 0.6381 GB, free: 147.8 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002091/1.168, allocations: 5.48 MB / 0.6435 GB, free: 143.6 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000928/1.169, allocations: 1.475 MB / 0.6449 GB, free: 142.5 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003034/1.169, allocations: 135.6 kB / 0.645 GB, free: 142.4 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.00025/1.169, allocations: 0.5751 MB / 0.6456 GB, free: 142 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003725/1.173, allocations: 2.959 MB / 0.6485 GB, free: 140.9 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004534/1.178, allocations: 5.661 MB / 0.654 GB, free: 136.2 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004806/1.182, allocations: 4.199 MB / 0.6581 GB, free: 134.3 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.271e-05/1.182, allocations: 27.16 kB / 0.6581 GB, free: 134.3 MB / 462.1 MB Notification: Performance of matching and sorting (n=880) (initialization): time 0.01306/1.195, allocations: 10.1 MB / 0.668 GB, free: 129 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.003e-05/1.196, allocations: 48.03 kB / 0.668 GB, free: 129 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.624e-05/1.196, allocations: 88 kB / 0.6681 GB, free: 128.9 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002538/1.198, allocations: 1.132 MB / 0.6692 GB, free: 128 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004728/1.203, allocations: 1.544 MB / 0.6707 GB, free: 126.6 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01186/1.215, allocations: 12.74 MB / 0.6832 GB, free: 113.4 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004679/1.219, allocations: 371.6 kB / 0.6835 GB, free: 113.1 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005335/1.22, allocations: 352 kB / 0.6839 GB, free: 112.7 MB / 462.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 411 * 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 (813): * Single equations (assignments): 804 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(1,100.0%) 5,(1,100.0%) 1,(1,100.0%) 1,(10,53.0%) 46} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.005593/1.226, allocations: 4.299 MB / 0.6881 GB, free: 108.4 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009834/1.227, allocations: 0.5411 MB / 0.6886 GB, free: 107.9 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01032/1.237, allocations: 7.273 MB / 0.6957 GB, free: 100.5 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.005609/1.243, allocations: 4.333 MB / 0.6999 GB, free: 96.12 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.664e-05/1.243, allocations: 16 kB / 0.6999 GB, free: 96.11 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.985e-05/1.243, allocations: 19.92 kB / 0.7 GB, free: 96.09 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02447/1.267, allocations: 17.25 MB / 0.7168 GB, free: 78.72 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.6e-05/1.267, allocations: 7.984 kB / 0.7168 GB, free: 78.71 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002803/1.27, allocations: 0.7105 MB / 0.7175 GB, free: 78 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002749/1.273, allocations: 1.165 MB / 0.7187 GB, free: 76.82 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003168/1.273, allocations: 103.9 kB / 0.7188 GB, free: 76.71 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01428/1.287, allocations: 16.26 MB / 0.7346 GB, free: 59.68 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.42e-06/1.287, allocations: 7.938 kB / 0.7346 GB, free: 59.68 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01397/1.301, allocations: 11.18 MB / 0.7456 GB, free: 48.23 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002997/1.304, allocations: 1.142 MB / 0.7467 GB, free: 47.06 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009113/1.305, allocations: 91.92 kB / 0.7468 GB, free: 46.97 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002535/1.308, allocations: 219.8 kB / 0.747 GB, free: 46.75 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005498/1.308, allocations: 311.4 kB / 0.7473 GB, free: 46.45 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002451/1.309, allocations: 124 kB / 0.7474 GB, free: 46.33 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.004385/1.313, allocations: 3.425 MB / 0.7507 GB, free: 42.92 MB / 462.1 MB Notification: Performance of sort global known variables: time 2.7e-07/1.313, allocations: 0 / 0.7507 GB, free: 42.92 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.006571/1.32, allocations: 1.988 MB / 0.7527 GB, free: 40.94 MB / 462.1 MB 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 (364): * Single equations (assignments): 354 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 6 {(1,100.0%) 1,(10,53.0%) 46,(1,100.0%) 5,(1,100.0%) 1,(1,100.0%) 8,(2,100.0%) 13} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0007021/1.32, allocations: 284.5 kB / 0.7529 GB, free: 40.66 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.01023/1.331, allocations: 7.96 MB / 0.7607 GB, free: 32.62 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 6.923e-06/1.331, allocations: 0 / 0.7607 GB, free: 32.62 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00538/1.336, allocations: 4.156 MB / 0.7648 GB, free: 28.38 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005202/1.341, allocations: 1.319 MB / 0.7661 GB, free: 27.07 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1954/1.537, allocations: 24.96 MB / 0.7904 GB, free: 138.9 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008637/1.545, allocations: 7.649 MB / 0.7979 GB, free: 138 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.006015/1.551, allocations: 2.099 MB / 0.8 GB, free: 137.9 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00102/1.552, allocations: 408.7 kB / 0.8003 GB, free: 137.9 MB / 462.1 MB Notification: Performance of SimCode: time 7.32e-07/1.552, allocations: 0 / 0.8003 GB, free: 137.9 MB / 462.1 MB Notification: Performance of Templates: time 0.1142/1.667, allocations: 79.31 MB / 0.8778 GB, free: 71.68 MB / 462.1 MB make -j1 -f Modelica_3.1_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: