Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001192/0.001192, allocations: 109.5 kB / 19.75 MB, free: 2.562 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001302/0.001302, allocations: 216.9 kB / 22.92 MB, free: 5.543 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.277/1.277, allocations: 230.5 MB / 256.4 MB, free: 8.238 MB / 206.1 MB " [Timeout remaining time 179] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_MTPA",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_MTPA",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.001777/0.001777, allocations: 67.83 kB / 376.1 MB, free: 4.031 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2189/0.2207, allocations: 53.31 MB / 429.4 MB, free: 7.434 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA): time 0.02917/0.2498, allocations: 28.81 MB / 458.2 MB, free: 10.5 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01577/0.2656, allocations: 8.528 MB / 466.8 MB, free: 1.941 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004209/0.2698, allocations: 211.4 kB / 467 MB, free: 1.734 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01739/0.2872, allocations: 8.267 MB / 475.3 MB, free: 9.449 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008641/0.2958, allocations: 2.832 MB / 478.1 MB, free: 6.605 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004855/0.3007, allocations: 1.909 MB / 480 MB, free: 4.699 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.01227/0.313, allocations: 10.04 MB / 490 MB, free: 10.62 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01945/0.3324, allocations: 13.16 MB / 0.4914 GB, free: 13.33 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.007284/0.3397, allocations: 5.385 MB / 0.4967 GB, free: 7.934 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.009397/0.3491, allocations: 6.144 MB / 0.5027 GB, free: 1.77 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003337/0.3524, allocations: 1.539 MB / 0.5042 GB, free: 236 kB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004843/0.3573, allocations: 1.922 MB / 0.506 GB, free: 14.3 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002776/0.3601, allocations: 2.989 MB / 0.509 GB, free: 11.31 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.007752/0.3678, allocations: 5.856 MB / 0.5147 GB, free: 5.434 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02111/0.3889, allocations: 20.69 MB / 0.5349 GB, free: 0.6758 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.02e-06/0.3889, allocations: 0 / 0.5349 GB, free: 0.6758 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.994e-06/0.3889, allocations: 0 / 0.5349 GB, free: 0.6758 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0004283/0.3894, allocations: 0 / 0.5349 GB, free: 0.6758 MB / 446.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2599 * Number of variables: 2599 Notification: Performance of Generate backend data structure: time 0.1982/0.5876, allocations: 12.09 MB / 0.5467 GB, free: 88.93 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.995e-05/0.5876, allocations: 11.84 kB / 0.5467 GB, free: 88.93 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002765/0.5904, allocations: 1.545 MB / 0.5482 GB, free: 87.95 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02724/0.6176, allocations: 5.596 MB / 0.5537 GB, free: 85.32 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01042/0.6281, allocations: 6.343 MB / 0.5599 GB, free: 78.98 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003435/0.6284, allocations: 0.7017 MB / 0.5605 GB, free: 78.29 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002285/0.6307, allocations: 0.9326 MB / 0.5615 GB, free: 77.36 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0232/0.6539, allocations: 15.11 MB / 0.5762 GB, free: 62.2 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002086/0.6541, allocations: 15.88 kB / 0.5762 GB, free: 62.18 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001181/0.6553, allocations: 395 kB / 0.5766 GB, free: 61.81 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003045/0.6556, allocations: 0.5156 MB / 0.5771 GB, free: 61.29 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01983/0.6754, allocations: 13.78 MB / 0.5906 GB, free: 47.48 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05271/0.7281, allocations: 47.69 MB / 0.6371 GB, free: 14.81 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02266/0.7508, allocations: 28.24 MB / 0.6647 GB, free: 14.86 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004744/0.7555, allocations: 2.8 MB / 0.6675 GB, free: 12.05 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004609/0.756, allocations: 346.2 kB / 0.6678 GB, free: 11.66 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.144e-05/0.7561, allocations: 73.58 kB / 0.6679 GB, free: 11.57 MB / 494.1 MB Notification: Performance of pre-optimization done (n=384): time 5.65e-06/0.7561, allocations: 4 kB / 0.6679 GB, free: 11.57 MB / 494.1 MB Notification: Performance of matching and sorting (n=392): time 0.02838/0.7845, allocations: 14.9 MB / 0.6824 GB, free: 12.58 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.758e-05/0.7845, allocations: 102.4 kB / 0.6825 GB, free: 12.47 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004903/0.7894, allocations: 3.603 MB / 0.686 GB, free: 8.871 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 0.0002529/0.7897, allocations: 91.02 kB / 0.6861 GB, free: 8.777 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.002758/0.7924, allocations: 4.188 MB / 0.6902 GB, free: 4.551 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.00116/0.7936, allocations: 1.406 MB / 0.6916 GB, free: 3.133 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001594/0.7952, allocations: 1.176 MB / 0.6927 GB, free: 1.945 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001126/0.7953, allocations: 309.1 kB / 0.693 GB, free: 1.641 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003678/0.799, allocations: 2.6 MB / 0.6956 GB, free: 15.04 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005612/0.8046, allocations: 5.083 MB / 0.7005 GB, free: 8.777 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01063/0.8152, allocations: 8.356 MB / 0.7087 GB, free: 15.23 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.507e-05/0.8153, allocations: 24 kB / 0.7087 GB, free: 15.21 MB / 0.5294 GB Notification: Performance of matching and sorting (n=769) (initialization): time 0.01464/0.8299, allocations: 8.657 MB / 0.7172 GB, free: 6.523 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 6.065e-05/0.83, allocations: 40.88 kB / 0.7172 GB, free: 6.484 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000105/0.8301, allocations: 84 kB / 0.7173 GB, free: 6.402 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002237/0.8323, allocations: 0.8497 MB / 0.7181 GB, free: 5.551 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00441/0.8368, allocations: 1.376 MB / 0.7194 GB, free: 4.172 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01067/0.8474, allocations: 7.682 MB / 0.7269 GB, free: 12.34 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003678/0.8511, allocations: 335.4 kB / 0.7273 GB, free: 12.01 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005544/0.8517, allocations: 316 kB / 0.7276 GB, free: 11.7 MB / 0.545 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 378 * 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 (722): * Single equations (assignments): 721 * 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,40,65.6%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.005204/0.8569, allocations: 3.507 MB / 0.731 GB, free: 8.18 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008652/0.8577, allocations: 437.2 kB / 0.7314 GB, free: 7.75 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009831/0.8676, allocations: 5.961 MB / 0.7372 GB, free: 1.75 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.144e-05/0.8676, allocations: 40 kB / 0.7373 GB, free: 1.711 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.367e-05/0.8676, allocations: 8 kB / 0.7373 GB, free: 1.703 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.598e-05/0.8676, allocations: 19.92 kB / 0.7373 GB, free: 1.684 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.363/1.231, allocations: 14.95 MB / 0.7519 GB, free: 178.2 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.258e-05/1.231, allocations: 3.938 kB / 0.7519 GB, free: 178.2 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00228/1.233, allocations: 0.7003 MB / 0.7526 GB, free: 178.2 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001626/1.235, allocations: 0.7067 MB / 0.7533 GB, free: 178 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001863/1.235, allocations: 90.92 kB / 0.7534 GB, free: 178 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006726/1.241, allocations: 6.711 MB / 0.7599 GB, free: 174.2 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.218e-06/1.241, allocations: 10.66 kB / 0.7599 GB, free: 174.2 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009839/1.251, allocations: 8.782 MB / 0.7685 GB, free: 170.6 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001835/1.253, allocations: 0.9086 MB / 0.7694 GB, free: 170.2 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004559/1.254, allocations: 81.42 kB / 0.7695 GB, free: 170.2 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001667/1.255, allocations: 182.7 kB / 0.7696 GB, free: 170.1 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003895/1.256, allocations: 270.8 kB / 0.7699 GB, free: 170.1 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001821/1.256, allocations: 119.9 kB / 0.77 GB, free: 170.1 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.002676/1.258, allocations: 2.416 MB / 0.7724 GB, free: 168.5 MB / 0.545 GB Notification: Performance of sort global known variables: time 1e-07/1.258, allocations: 0 / 0.7724 GB, free: 168.5 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.004287/1.263, allocations: 1.551 MB / 0.7739 GB, free: 167 MB / 0.545 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 21 * 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 (377): * Single equations (assignments): 376 * 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,59.4%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.009714/1.272, allocations: 9.492 MB / 0.7832 GB, free: 158.8 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.007575/1.28, allocations: 6.286 MB / 0.7893 GB, free: 153.1 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 5.23e-06/1.28, allocations: 0 / 0.7893 GB, free: 153.1 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.003255/1.283, allocations: 2.735 MB / 0.792 GB, free: 150.4 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003866/1.287, allocations: 0.9698 MB / 0.7929 GB, free: 149.5 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05782/1.345, allocations: 52.71 MB / 0.8444 GB, free: 93.72 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004212/1.349, allocations: 5.975 MB / 0.8502 GB, free: 87.7 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.003617/1.353, allocations: 1.885 MB / 0.8521 GB, free: 85.8 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003004/1.356, allocations: 3.225 MB / 0.8552 GB, free: 82.58 MB / 0.545 GB Notification: Performance of SimCode: time 1.082e-06/1.356, allocations: 0 / 0.8552 GB, free: 82.58 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3365/1.692, allocations: 121.6 MB / 0.974 GB, free: 178.9 MB / 0.5607 GB Notification: Performance of buildModelFMU: Generate platform static: time 16.44/18.13, allocations: 6.859 kB / 0.974 GB, free: 178.9 MB / 0.5607 GB " [Timeout remaining time 642] (rm -f Modelica_4.1.0-beta.om_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0-beta.om_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA_res.mat --tempDir=temp_Modelica_4_1_0-beta_om_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_MTPA_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_4_1_0-beta_om_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_MTPA.fmu > Modelica_4.1.0-beta.om_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 20.526810421004484]