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.002121/0.002121, allocations: 110.5 kB / 21.23 MB, free: 0.6641 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.002694/0.002694, allocations: 213.2 kB / 24.54 MB, free: 4.02 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.446/1.446, allocations: 230.6 MB / 258.3 MB, free: 8.023 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.001992/0.001992, allocations: 64.78 kB / 378.6 MB, free: 3.105 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.298/0.2999, allocations: 53.37 MB / 432 MB, free: 6.863 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA): time 0.03364/0.3336, allocations: 28.8 MB / 460.8 MB, free: 9.938 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01933/0.3529, allocations: 8.536 MB / 469.3 MB, free: 1.371 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006629/0.3595, allocations: 250.8 kB / 469.5 MB, free: 1.125 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.02002/0.3796, allocations: 8.307 MB / 477.9 MB, free: 8.797 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01046/0.39, allocations: 2.913 MB / 480.8 MB, free: 5.875 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005806/0.3958, allocations: 1.918 MB / 482.7 MB, free: 3.957 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.01582/0.4116, allocations: 10.13 MB / 492.8 MB, free: 9.801 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02771/0.4394, allocations: 14.04 MB / 0.495 GB, free: 11.62 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01123/0.4506, allocations: 5.494 MB / 0.5003 GB, free: 6.117 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01199/0.4626, allocations: 6.152 MB / 0.5063 GB, free: 15.95 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.005194/0.4678, allocations: 1.539 MB / 0.5078 GB, free: 14.41 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007662/0.4754, allocations: 1.929 MB / 0.5097 GB, free: 12.48 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.006275/0.4817, allocations: 2.993 MB / 0.5126 GB, free: 9.477 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0135/0.4952, allocations: 5.848 MB / 0.5184 GB, free: 3.605 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.5375/1.033, allocations: 20.69 MB / 0.5386 GB, free: 38 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.765e-06/1.033, allocations: 0.5312 kB / 0.5386 GB, free: 38 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.863e-06/1.033, allocations: 0 / 0.5386 GB, free: 38 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0006192/1.033, allocations: 0.5312 kB / 0.5386 GB, free: 38 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.0399/1.073, allocations: 12.01 MB / 0.5503 GB, free: 34.68 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.783e-05/1.073, allocations: 9.531 kB / 0.5503 GB, free: 34.68 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.006262/1.08, allocations: 1.542 MB / 0.5518 GB, free: 34.55 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03027/1.11, allocations: 5.594 MB / 0.5573 GB, free: 33.98 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01614/1.126, allocations: 6.385 MB / 0.5635 GB, free: 33.1 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0009962/1.127, allocations: 0.7005 MB / 0.5642 GB, free: 33.08 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004835/1.132, allocations: 0.9344 MB / 0.5651 GB, free: 33.07 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04071/1.173, allocations: 15.11 MB / 0.5799 GB, free: 23.57 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005498/1.173, allocations: 19.94 kB / 0.5799 GB, free: 23.55 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003582/1.177, allocations: 394.6 kB / 0.5803 GB, free: 23.18 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004601/1.177, allocations: 0.5156 MB / 0.5808 GB, free: 22.66 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02988/1.207, allocations: 13.78 MB / 0.5942 GB, free: 8.855 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1012/1.308, allocations: 46.61 MB / 0.6397 GB, free: 10.05 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01657/1.325, allocations: 8.057 MB / 0.6476 GB, free: 3.297 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006632/1.331, allocations: 2.803 MB / 0.6503 GB, free: 0.5 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005865/1.332, allocations: 112.3 kB / 0.6504 GB, free: 420 kB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001044/1.332, allocations: 77.56 kB / 0.6505 GB, free: 332 kB / 494.1 MB Notification: Performance of pre-optimization done (n=384): time 8.696e-06/1.332, allocations: 0 / 0.6505 GB, free: 332 kB / 494.1 MB Notification: Performance of matching and sorting (n=392): time 0.03757/1.37, allocations: 14.76 MB / 0.6649 GB, free: 1.566 MB / 0.4982 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.331e-05/1.37, allocations: 90.48 kB / 0.665 GB, free: 1.465 MB / 0.4982 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007846/1.378, allocations: 3.608 MB / 0.6685 GB, free: 13.86 MB / 0.5138 GB Notification: Performance of collectPreVariables (initialization): time 0.0007137/1.378, allocations: 93.7 kB / 0.6686 GB, free: 13.77 MB / 0.5138 GB Notification: Performance of collectInitialEqns (initialization): time 0.003848/1.382, allocations: 4.186 MB / 0.6727 GB, free: 9.57 MB / 0.5138 GB Notification: Performance of collectInitialBindings (initialization): time 0.002235/1.384, allocations: 1.408 MB / 0.6741 GB, free: 8.18 MB / 0.5138 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003636/1.388, allocations: 1.18 MB / 0.6752 GB, free: 6.988 MB / 0.5138 GB Notification: Performance of setup shared object (initialization): time 0.0001424/1.388, allocations: 305.1 kB / 0.6755 GB, free: 6.688 MB / 0.5138 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00533/1.394, allocations: 2.592 MB / 0.6781 GB, free: 4.09 MB / 0.5138 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007811/1.401, allocations: 5.088 MB / 0.683 GB, free: 13.87 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01337/1.415, allocations: 8.357 MB / 0.6912 GB, free: 4.672 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001017/1.415, allocations: 20 kB / 0.6912 GB, free: 4.652 MB / 0.5294 GB Notification: Performance of matching and sorting (n=769) (initialization): time 0.01901/1.434, allocations: 8.659 MB / 0.6997 GB, free: 12.48 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 0.000147/1.434, allocations: 42.52 kB / 0.6997 GB, free: 12.45 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001883/1.434, allocations: 84 kB / 0.6998 GB, free: 12.36 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002722/1.437, allocations: 0.8527 MB / 0.7006 GB, free: 11.51 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005342/1.442, allocations: 1.373 MB / 0.702 GB, free: 10.23 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01286/1.455, allocations: 7.587 MB / 0.7094 GB, free: 2.582 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005016/1.46, allocations: 327.5 kB / 0.7097 GB, free: 2.262 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001332/1.461, allocations: 304 kB / 0.71 GB, free: 1.965 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.007897/1.469, allocations: 3.517 MB / 0.7134 GB, free: 14.54 MB / 0.5607 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001623/1.471, allocations: 429.3 kB / 0.7138 GB, free: 14.12 MB / 0.5607 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01424/1.485, allocations: 5.963 MB / 0.7196 GB, free: 8.145 MB / 0.5607 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.391e-05/1.485, allocations: 40 kB / 0.7197 GB, free: 8.105 MB / 0.5607 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.465e-05/1.485, allocations: 8 kB / 0.7197 GB, free: 8.098 MB / 0.5607 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.302e-05/1.485, allocations: 19.92 kB / 0.7197 GB, free: 8.078 MB / 0.5607 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03597/1.521, allocations: 14.98 MB / 0.7343 GB, free: 9.18 MB / 0.5763 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.83e-05/1.521, allocations: 4 kB / 0.7343 GB, free: 9.176 MB / 0.5763 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003182/1.525, allocations: 0.7009 MB / 0.735 GB, free: 8.512 MB / 0.5763 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002317/1.527, allocations: 0.7054 MB / 0.7357 GB, free: 7.805 MB / 0.5763 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005515/1.527, allocations: 95.91 kB / 0.7358 GB, free: 7.711 MB / 0.5763 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01081/1.538, allocations: 6.614 MB / 0.7423 GB, free: 1.012 MB / 0.5763 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.937e-06/1.538, allocations: 6.906 kB / 0.7423 GB, free: 1.008 MB / 0.5763 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01725/1.555, allocations: 8.778 MB / 0.7508 GB, free: 8.137 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002883/1.558, allocations: 0.8485 MB / 0.7517 GB, free: 7.285 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001152/1.559, allocations: 79.94 kB / 0.7517 GB, free: 7.207 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002721/1.562, allocations: 183.9 kB / 0.7519 GB, free: 7.027 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007789/1.563, allocations: 282.7 kB / 0.7522 GB, free: 6.754 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004131/1.563, allocations: 112 kB / 0.7523 GB, free: 6.645 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.005654/1.569, allocations: 2.426 MB / 0.7547 GB, free: 4.234 MB / 0.5919 GB Notification: Performance of sort global known variables: time 1.1e-07/1.569, allocations: 0 / 0.7547 GB, free: 4.234 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.007654/1.577, allocations: 1.555 MB / 0.7562 GB, free: 2.68 MB / 0.5919 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.274/1.851, allocations: 9.478 MB / 0.7654 GB, free: 225.4 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.01004/1.861, allocations: 6.291 MB / 0.7716 GB, free: 223.1 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 8.075e-06/1.861, allocations: 0 / 0.7716 GB, free: 223.1 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.004702/1.865, allocations: 2.745 MB / 0.7743 GB, free: 222 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00581/1.871, allocations: 0.9632 MB / 0.7752 GB, free: 221.7 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1023/1.974, allocations: 52.72 MB / 0.8267 GB, free: 180.3 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01147/1.985, allocations: 5.967 MB / 0.8325 GB, free: 174.3 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 0.006055/1.991, allocations: 1.889 MB / 0.8344 GB, free: 172.4 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005843/1.997, allocations: 3.233 MB / 0.8375 GB, free: 169.2 MB / 0.5919 GB Notification: Performance of SimCode: time 3.136e-06/1.997, allocations: 0 / 0.8375 GB, free: 169.2 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1882/2.185, allocations: 126.3 MB / 0.9608 GB, free: 43.48 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate platform static: time 20.08/22.27, allocations: 8.062 kB / 0.9608 GB, free: 43.48 MB / 0.5919 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.86775607895106] Failed to read output from testmodel.py, exit status != 0: ['time', 'quadraticSpeedDependentTorqueQS.phi'] 22.429552268236876 22.446943186 21.4101761 Calling exit ...