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.001387/0.001387, allocations: 120.2 kB / 18.5 MB, free: 4.578 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.001587/0.001587, allocations: 205 kB / 21.45 MB, free: 1.629 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.466/1.466, allocations: 230.5 MB / 254.8 MB, free: 15.12 MB / 206.1 MB " [Timeout remaining time 178] 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.001951/0.001951, allocations: 64.03 kB / 373.7 MB, free: 10.18 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.112/0.114, allocations: 53.33 MB / 427 MB, free: 4.754 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA): time 0.2566/0.3706, allocations: 28.74 MB / 455.8 MB, free: 9.258 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.02512/0.3957, allocations: 8.517 MB / 464.3 MB, free: 3.172 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00959/0.4053, allocations: 251.9 kB / 464.5 MB, free: 3.094 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0218/0.4271, allocations: 8.272 MB / 472.8 MB, free: 13.81 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01185/0.4389, allocations: 2.854 MB / 475.7 MB, free: 11.54 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006216/0.4451, allocations: 1.878 MB / 477.5 MB, free: 10.06 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.01554/0.4607, allocations: 10.03 MB / 487.6 MB, free: 3.875 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02893/0.4896, allocations: 16.33 MB / 0.4921 GB, free: 3.953 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01008/0.4997, allocations: 5.463 MB / 0.4974 GB, free: 14.48 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01111/0.5108, allocations: 6.128 MB / 0.5034 GB, free: 8.328 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.004389/0.5152, allocations: 1.543 MB / 0.5049 GB, free: 6.785 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006396/0.5216, allocations: 1.918 MB / 0.5068 GB, free: 4.867 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005709/0.5273, allocations: 2.993 MB / 0.5097 GB, free: 1.867 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01262/0.5399, allocations: 5.852 MB / 0.5154 GB, free: 11.99 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.03157/0.5715, allocations: 20.69 MB / 0.5356 GB, free: 7.234 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.464e-06/0.5715, allocations: 0 / 0.5356 GB, free: 7.234 MB / 446.1 MB Notification: Performance of FrontEnd: time 3.517e-06/0.5715, allocations: 8 kB / 0.5357 GB, free: 7.227 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0006332/0.5721, allocations: 0 / 0.5357 GB, free: 7.227 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.04021/0.6123, allocations: 12.1 MB / 0.5475 GB, free: 11.02 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.319e-05/0.6124, allocations: 8.031 kB / 0.5475 GB, free: 11.01 MB / 462.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.005692/0.6181, allocations: 1.543 MB / 0.549 GB, free: 9.457 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03224/0.6503, allocations: 5.59 MB / 0.5544 GB, free: 3.855 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01608/0.6664, allocations: 6.334 MB / 0.5606 GB, free: 13.46 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001018/0.6674, allocations: 0.7024 MB / 0.5613 GB, free: 12.76 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004391/0.6718, allocations: 0.9296 MB / 0.5622 GB, free: 11.83 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04376/0.7156, allocations: 15.12 MB / 0.577 GB, free: 12.63 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0007172/0.7163, allocations: 7.953 kB / 0.577 GB, free: 12.62 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.005302/0.7216, allocations: 392 kB / 0.5774 GB, free: 12.24 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0007829/0.7224, allocations: 0.5234 MB / 0.5779 GB, free: 11.71 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03405/0.7564, allocations: 13.78 MB / 0.5913 GB, free: 13.91 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.5115/1.268, allocations: 47.69 MB / 0.6379 GB, free: 128 MB / 0.5138 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0191/1.287, allocations: 28.24 MB / 0.6655 GB, free: 102.7 MB / 0.5138 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.004906/1.292, allocations: 2.802 MB / 0.6682 GB, free: 102.7 MB / 0.5138 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004557/1.292, allocations: 344.1 kB / 0.6685 GB, free: 102.4 MB / 0.5138 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.651e-05/1.292, allocations: 74.14 kB / 0.6686 GB, free: 102.4 MB / 0.5138 GB Notification: Performance of pre-optimization done (n=384): time 6.142e-06/1.292, allocations: 0 / 0.6686 GB, free: 102.4 MB / 0.5138 GB Notification: Performance of matching and sorting (n=392): time 0.03013/1.323, allocations: 14.92 MB / 0.6832 GB, free: 96.95 MB / 0.5138 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.388e-05/1.323, allocations: 93.05 kB / 0.6833 GB, free: 96.89 MB / 0.5138 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004967/1.328, allocations: 3.615 MB / 0.6868 GB, free: 95.58 MB / 0.5138 GB Notification: Performance of collectPreVariables (initialization): time 0.0006284/1.328, allocations: 90.64 kB / 0.6869 GB, free: 95.5 MB / 0.5138 GB Notification: Performance of collectInitialEqns (initialization): time 0.002073/1.33, allocations: 4.193 MB / 0.691 GB, free: 92.84 MB / 0.5138 GB Notification: Performance of collectInitialBindings (initialization): time 0.001291/1.332, allocations: 1.406 MB / 0.6924 GB, free: 91.76 MB / 0.5138 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001608/1.333, allocations: 1.173 MB / 0.6935 GB, free: 91.18 MB / 0.5138 GB Notification: Performance of setup shared object (initialization): time 4.524e-05/1.333, allocations: 305.1 kB / 0.6938 GB, free: 90.88 MB / 0.5138 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003265/1.336, allocations: 2.596 MB / 0.6963 GB, free: 89.86 MB / 0.5138 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004502/1.341, allocations: 5.087 MB / 0.7013 GB, free: 85.09 MB / 0.5138 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.008737/1.35, allocations: 8.353 MB / 0.7094 GB, free: 78.41 MB / 0.5138 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.925e-05/1.35, allocations: 23.06 kB / 0.7095 GB, free: 78.41 MB / 0.5138 GB Notification: Performance of matching and sorting (n=769) (initialization): time 0.01333/1.363, allocations: 8.66 MB / 0.7179 GB, free: 73.43 MB / 0.5138 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001002/1.363, allocations: 40 kB / 0.718 GB, free: 73.39 MB / 0.5138 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001224/1.363, allocations: 80 kB / 0.718 GB, free: 73.31 MB / 0.5138 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002386/1.366, allocations: 0.8575 MB / 0.7189 GB, free: 72.46 MB / 0.5138 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004709/1.37, allocations: 1.369 MB / 0.7202 GB, free: 71.09 MB / 0.5138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009982/1.38, allocations: 7.679 MB / 0.7277 GB, free: 63.27 MB / 0.5138 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004787/1.385, allocations: 327.5 kB / 0.728 GB, free: 62.95 MB / 0.5138 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001196/1.386, allocations: 308 kB / 0.7283 GB, free: 62.65 MB / 0.5138 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.006995/1.393, allocations: 3.523 MB / 0.7318 GB, free: 59.11 MB / 0.5138 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00164/1.395, allocations: 433.3 kB / 0.7322 GB, free: 58.69 MB / 0.5138 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01213/1.407, allocations: 5.956 MB / 0.738 GB, free: 52.7 MB / 0.5138 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.194e-05/1.407, allocations: 44 kB / 0.738 GB, free: 52.66 MB / 0.5138 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.263e-05/1.407, allocations: 8 kB / 0.738 GB, free: 52.65 MB / 0.5138 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.99e-05/1.407, allocations: 19.92 kB / 0.7381 GB, free: 52.63 MB / 0.5138 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02788/1.435, allocations: 14.96 MB / 0.7527 GB, free: 37.62 MB / 0.5138 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.454e-05/1.435, allocations: 8.094 kB / 0.7527 GB, free: 37.61 MB / 0.5138 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002543/1.438, allocations: 0.6943 MB / 0.7534 GB, free: 36.91 MB / 0.5138 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002009/1.44, allocations: 0.7092 MB / 0.7541 GB, free: 36.2 MB / 0.5138 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003718/1.44, allocations: 91.97 kB / 0.7541 GB, free: 36.11 MB / 0.5138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007374/1.448, allocations: 6.709 MB / 0.7607 GB, free: 29.28 MB / 0.5138 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.16e-06/1.448, allocations: 11.94 kB / 0.7607 GB, free: 29.27 MB / 0.5138 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01079/1.458, allocations: 8.773 MB / 0.7693 GB, free: 20.36 MB / 0.5138 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002026/1.46, allocations: 0.9121 MB / 0.7702 GB, free: 19.43 MB / 0.5138 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005225/1.461, allocations: 75.94 kB / 0.7702 GB, free: 19.36 MB / 0.5138 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001767/1.463, allocations: 179.8 kB / 0.7704 GB, free: 19.18 MB / 0.5138 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00048/1.463, allocations: 278.4 kB / 0.7707 GB, free: 18.91 MB / 0.5138 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002052/1.463, allocations: 116 kB / 0.7708 GB, free: 18.8 MB / 0.5138 GB Notification: Performance of sorting global known variables: time 0.003055/1.466, allocations: 2.42 MB / 0.7731 GB, free: 16.39 MB / 0.5138 GB Notification: Performance of sort global known variables: time 9e-08/1.466, allocations: 0 / 0.7731 GB, free: 16.39 MB / 0.5138 GB Notification: Performance of remove unused functions: time 0.005192/1.472, allocations: 1.547 MB / 0.7747 GB, free: 14.84 MB / 0.5138 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.01085/1.482, allocations: 9.51 MB / 0.7839 GB, free: 5.207 MB / 0.5138 GB Notification: Performance of simCode: created initialization part: time 0.00959/1.492, allocations: 6.274 MB / 0.7901 GB, free: 14.93 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 1.289e-05/1.492, allocations: 4 kB / 0.7901 GB, free: 14.93 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.005643/1.498, allocations: 2.743 MB / 0.7927 GB, free: 12.17 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005746/1.503, allocations: 0.958 MB / 0.7937 GB, free: 11.25 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3566/1.86, allocations: 52.57 MB / 0.845 GB, free: 187.3 MB / 0.5607 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01274/1.873, allocations: 5.975 MB / 0.8509 GB, free: 185.1 MB / 0.5607 GB Notification: Performance of simCode: alias equations: time 0.00651/1.879, allocations: 1.883 MB / 0.8527 GB, free: 185.1 MB / 0.5607 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006278/1.886, allocations: 3.234 MB / 0.8559 GB, free: 182.4 MB / 0.5607 GB Notification: Performance of SimCode: time 1.412e-06/1.886, allocations: 6.344 kB / 0.8559 GB, free: 182.4 MB / 0.5607 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1829/2.068, allocations: 121.1 MB / 0.9741 GB, free: 77.71 MB / 0.5607 GB Notification: Performance of buildModelFMU: Generate platform static: time 20.13/22.2, allocations: 11.11 kB / 0.9741 GB, free: 77.7 MB / 0.5607 GB " [Timeout remaining time 638] (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 & python3 -m fmpy simulate --output-file Modelica_4.1.0-beta.om_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.001 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: 24.88130374578759] Failed to read output from testmodel.py, exit status != 0: ['time', 'quadraticSpeedDependentTorqueQS.phi'] 22.354671326931566 22.371812268 21.796582955 Calling exit ...