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.001271/0.001271, allocations: 122.1 kB / 18.46 MB, free: 4.566 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.001359/0.001359, allocations: 215.3 kB / 21.41 MB, free: 1.617 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.445/1.445, allocations: 227.7 MB / 251.9 MB, free: 15.87 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.001921/0.001921, allocations: 71.83 kB / 365.3 MB, free: 180 kB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1016/0.1036, allocations: 50.55 MB / 415.8 MB, free: 13.59 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA): time 0.03341/0.137, allocations: 28.61 MB / 444.4 MB, free: 0.8516 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.2363/0.3733, allocations: 8.484 MB / 452.9 MB, free: 6.316 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007112/0.3805, allocations: 216 kB / 453.1 MB, free: 6.316 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01922/0.3998, allocations: 8.17 MB / 461.3 MB, free: 5.605 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01045/0.4103, allocations: 2.785 MB / 464.1 MB, free: 4.801 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006407/0.4167, allocations: 1.878 MB / 465.9 MB, free: 4.617 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0156/0.4323, allocations: 10.02 MB / 476 MB, free: 44 kB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.03497/0.4673, allocations: 21.35 MB / 497.3 MB, free: 3.926 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01027/0.4777, allocations: 5.353 MB / 0.4909 GB, free: 14.66 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01072/0.4884, allocations: 6.074 MB / 0.4968 GB, free: 8.75 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.004581/0.4931, allocations: 1.539 MB / 0.4983 GB, free: 7.211 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006779/0.4999, allocations: 1.922 MB / 0.5002 GB, free: 5.297 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005089/0.505, allocations: 2.994 MB / 0.5031 GB, free: 2.336 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01134/0.5164, allocations: 5.846 MB / 0.5088 GB, free: 12.51 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0285/0.5449, allocations: 20.69 MB / 0.529 GB, free: 8.152 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.564e-06/0.545, allocations: 0 / 0.529 GB, free: 8.152 MB / 430.1 MB Notification: Performance of FrontEnd: time 7.474e-06/0.545, allocations: 0 / 0.529 GB, free: 8.152 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0005365/0.5455, allocations: 3.938 kB / 0.529 GB, free: 8.148 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: 2599 * Number of variables: 2599 Notification: Performance of Generate backend data structure: time 0.0383/0.5838, allocations: 12.09 MB / 0.5409 GB, free: 12.03 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.91e-05/0.5839, allocations: 12.03 kB / 0.5409 GB, free: 12.02 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.007128/0.5911, allocations: 1.533 MB / 0.5424 GB, free: 10.48 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03239/0.6235, allocations: 5.599 MB / 0.5478 GB, free: 4.941 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01542/0.639, allocations: 6.339 MB / 0.554 GB, free: 14.59 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007977/0.6398, allocations: 0.7058 MB / 0.5547 GB, free: 13.89 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004357/0.6442, allocations: 0.9255 MB / 0.5556 GB, free: 12.97 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04497/0.6892, allocations: 15.11 MB / 0.5704 GB, free: 13.81 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004478/0.6897, allocations: 11.95 kB / 0.5704 GB, free: 13.8 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003867/0.6936, allocations: 393.1 kB / 0.5708 GB, free: 13.42 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0007237/0.6943, allocations: 0.5155 MB / 0.5713 GB, free: 12.9 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03592/0.7303, allocations: 13.78 MB / 0.5847 GB, free: 15.09 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.5175/1.248, allocations: 47.7 MB / 0.6313 GB, free: 139.5 MB / 0.5138 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0213/1.269, allocations: 28.61 MB / 0.6592 GB, free: 114.2 MB / 0.5138 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.005935/1.275, allocations: 3.083 MB / 0.6623 GB, free: 114.2 MB / 0.5138 GB Notification: Performance of preOpt evalFunc (simulation): time 0.00058/1.276, allocations: 347.5 kB / 0.6626 GB, free: 113.9 MB / 0.5138 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.655e-05/1.276, allocations: 71.08 kB / 0.6627 GB, free: 113.9 MB / 0.5138 GB Notification: Performance of pre-optimization done (n=384): time 1.077e-05/1.276, allocations: 0 / 0.6627 GB, free: 113.9 MB / 0.5138 GB Notification: Performance of matching and sorting (n=392): time 0.03583/1.312, allocations: 14.94 MB / 0.6772 GB, free: 112.5 MB / 0.5138 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.652e-05/1.312, allocations: 91.42 kB / 0.6773 GB, free: 112.4 MB / 0.5138 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007239/1.319, allocations: 3.61 MB / 0.6809 GB, free: 111.4 MB / 0.5138 GB Notification: Performance of collectPreVariables (initialization): time 0.0007085/1.32, allocations: 89.52 kB / 0.6809 GB, free: 111.3 MB / 0.5138 GB Notification: Performance of collectInitialEqns (initialization): time 0.002541/1.322, allocations: 4.196 MB / 0.685 GB, free: 108.7 MB / 0.5138 GB Notification: Performance of collectInitialBindings (initialization): time 0.00152/1.324, allocations: 1.406 MB / 0.6864 GB, free: 107.6 MB / 0.5138 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003043/1.327, allocations: 1.172 MB / 0.6876 GB, free: 107 MB / 0.5138 GB Notification: Performance of setup shared object (initialization): time 5.006e-05/1.327, allocations: 311 kB / 0.6879 GB, free: 106.7 MB / 0.5138 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003911/1.331, allocations: 2.59 MB / 0.6904 GB, free: 105.8 MB / 0.5138 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005575/1.337, allocations: 5.095 MB / 0.6954 GB, free: 101.5 MB / 0.5138 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01019/1.347, allocations: 8.35 MB / 0.7035 GB, free: 95.59 MB / 0.5138 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001135/1.347, allocations: 24.12 kB / 0.7035 GB, free: 95.59 MB / 0.5138 GB Notification: Performance of matching and sorting (n=769) (initialization): time 0.01665/1.364, allocations: 8.683 MB / 0.712 GB, free: 92.1 MB / 0.5138 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001661/1.364, allocations: 43.91 kB / 0.7121 GB, free: 92.1 MB / 0.5138 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002163/1.364, allocations: 86.56 kB / 0.7121 GB, free: 92.1 MB / 0.5138 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002619/1.367, allocations: 0.8475 MB / 0.713 GB, free: 91.93 MB / 0.5138 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004891/1.372, allocations: 1.367 MB / 0.7143 GB, free: 91.78 MB / 0.5138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01014/1.382, allocations: 7.69 MB / 0.7218 GB, free: 86.96 MB / 0.5138 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004837/1.387, allocations: 328.8 kB / 0.7221 GB, free: 86.79 MB / 0.5138 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001196/1.388, allocations: 306.9 kB / 0.7224 GB, free: 86.73 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.007381/1.395, allocations: 3.511 MB / 0.7259 GB, free: 84.4 MB / 0.5138 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001611/1.397, allocations: 437.2 kB / 0.7263 GB, free: 83.97 MB / 0.5138 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01225/1.409, allocations: 5.985 MB / 0.7321 GB, free: 77.95 MB / 0.5138 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.748e-05/1.409, allocations: 40 kB / 0.7322 GB, free: 77.91 MB / 0.5138 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.984e-05/1.409, allocations: 8 kB / 0.7322 GB, free: 77.91 MB / 0.5138 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.35e-05/1.409, allocations: 23.92 kB / 0.7322 GB, free: 77.88 MB / 0.5138 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03233/1.442, allocations: 14.98 MB / 0.7468 GB, free: 62.86 MB / 0.5138 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.761e-05/1.442, allocations: 8 kB / 0.7468 GB, free: 62.85 MB / 0.5138 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002904/1.445, allocations: 0.6949 MB / 0.7475 GB, free: 62.15 MB / 0.5138 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002218/1.447, allocations: 0.7075 MB / 0.7482 GB, free: 61.45 MB / 0.5138 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006848/1.448, allocations: 92.73 kB / 0.7483 GB, free: 61.36 MB / 0.5138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008481/1.456, allocations: 6.715 MB / 0.7548 GB, free: 54.5 MB / 0.5138 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.865e-06/1.456, allocations: 11.92 kB / 0.7548 GB, free: 54.49 MB / 0.5138 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01483/1.471, allocations: 8.796 MB / 0.7634 GB, free: 45.57 MB / 0.5138 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002709/1.474, allocations: 0.9081 MB / 0.7643 GB, free: 44.64 MB / 0.5138 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001488/1.475, allocations: 79.94 kB / 0.7644 GB, free: 44.57 MB / 0.5138 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003042/1.478, allocations: 187.6 kB / 0.7646 GB, free: 44.39 MB / 0.5138 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009128/1.479, allocations: 266.7 kB / 0.7648 GB, free: 44.12 MB / 0.5138 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005228/1.48, allocations: 124 kB / 0.765 GB, free: 44 MB / 0.5138 GB Notification: Performance of sorting global known variables: time 0.004528/1.485, allocations: 2.416 MB / 0.7673 GB, free: 41.6 MB / 0.5138 GB Notification: Performance of sort global known variables: time 9.21e-07/1.485, allocations: 0 / 0.7673 GB, free: 41.6 MB / 0.5138 GB Notification: Performance of remove unused functions: time 0.007239/1.492, allocations: 1.555 MB / 0.7688 GB, free: 40.05 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.01322/1.505, allocations: 9.518 MB / 0.7781 GB, free: 30.41 MB / 0.5138 GB Notification: Performance of simCode: created initialization part: time 0.009883/1.515, allocations: 6.544 MB / 0.7845 GB, free: 23.86 MB / 0.5138 GB Notification: Performance of simCode: created event and clocks part: time 9.949e-06/1.515, allocations: 0 / 0.7845 GB, free: 23.86 MB / 0.5138 GB Notification: Performance of simCode: created simulation system equations: time 0.004339/1.519, allocations: 2.964 MB / 0.7874 GB, free: 20.88 MB / 0.5138 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006484/1.526, allocations: 0.9736 MB / 0.7884 GB, free: 19.95 MB / 0.5138 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3287/1.855, allocations: 52.61 MB / 0.8397 GB, free: 172.4 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01055/1.865, allocations: 5.98 MB / 0.8456 GB, free: 171.5 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.006295/1.872, allocations: 1.885 MB / 0.8474 GB, free: 171.4 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005545/1.877, allocations: 3.232 MB / 0.8506 GB, free: 171.4 MB / 0.545 GB Notification: Performance of SimCode: time 1.202e-06/1.877, allocations: 0 / 0.8506 GB, free: 171.4 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1763/2.053, allocations: 119.2 MB / 0.9669 GB, free: 78.58 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 20.6/22.65, allocations: 8.828 kB / 0.9669 GB, free: 78.57 MB / 0.545 GB " [Timeout remaining time 637] (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: 25.243339881999418] Failed to read output from testmodel.py, exit status != 0: ['time', 'quadraticSpeedDependentTorqueQS.phi'] 22.799082585959695 22.813612533 22.265812848 Calling exit ...