Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.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.001328/0.001328, allocations: 120 kB / 18.5 MB, free: 4.52 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.001321/0.001321, allocations: 213.6 kB / 21.46 MB, free: 1.566 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.419/1.419, allocations: 230.5 MB / 254.8 MB, free: 15.1 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.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_Inverter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_Inverter",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.001932/0.001932, allocations: 71.83 kB / 373.7 MB, free: 10.18 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09908/0.101, allocations: 53.33 MB / 427 MB, free: 4.758 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter): time 0.2008/0.3018, allocations: 10.39 MB / 437.4 MB, free: 5.859 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00689/0.3087, allocations: 3.493 MB / 440.9 MB, free: 4.07 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00233/0.311, allocations: 74.75 kB / 441 MB, free: 4.039 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002379/0.3134, allocations: 0.8363 MB / 441.8 MB, free: 3.59 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003206/0.3166, allocations: 0.8714 MB / 442.7 MB, free: 3.031 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001117/0.3177, allocations: 435.2 kB / 443.1 MB, free: 2.762 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.003336/0.321, allocations: 2.761 MB / 445.9 MB, free: 1.367 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002122/0.3232, allocations: 1.718 MB / 447.6 MB, free: 0.5703 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002133/0.3253, allocations: 1.299 MB / 448.9 MB, free: 15.95 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002642/0.3279, allocations: 1.624 MB / 450.5 MB, free: 15.21 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005659/0.3285, allocations: 334.7 kB / 450.8 MB, free: 15.21 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001072/0.3296, allocations: 443.1 kB / 451.3 MB, free: 15.18 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001107/0.3307, allocations: 0.9543 MB / 452.2 MB, free: 14.65 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00187/0.3326, allocations: 1.513 MB / 453.7 MB, free: 13.66 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005573/0.3381, allocations: 4.406 MB / 458.2 MB, free: 11.43 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.981e-06/0.3381, allocations: 1.031 kB / 458.2 MB, free: 11.43 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.783e-06/0.3381, allocations: 0 / 458.2 MB, free: 11.43 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.000109/0.3383, allocations: 0 / 458.2 MB, free: 11.43 MB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 581 * Number of variables: 581 Notification: Performance of Generate backend data structure: time 0.007206/0.3455, allocations: 3.137 MB / 461.3 MB, free: 9.227 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.701e-05/0.3455, allocations: 12.91 kB / 461.3 MB, free: 9.223 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005181/0.346, allocations: 326 kB / 461.6 MB, free: 8.977 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001068/0.3471, allocations: 333.9 kB / 461.9 MB, free: 8.809 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003273/0.3504, allocations: 1.639 MB / 463.6 MB, free: 7.617 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001671/0.3505, allocations: 169 kB / 463.7 MB, free: 7.535 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003592/0.3509, allocations: 220.2 kB / 464 MB, free: 7.461 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005494/0.3564, allocations: 2.921 MB / 466.9 MB, free: 5.715 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.398e-05/0.3564, allocations: 6.516 kB / 466.9 MB, free: 5.711 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002191/0.3567, allocations: 87.59 kB / 467 MB, free: 5.645 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001473/0.3568, allocations: 122.9 kB / 467.1 MB, free: 5.613 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004653/0.3615, allocations: 2.427 MB / 469.5 MB, free: 4.375 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0174/0.3789, allocations: 9.037 MB / 478.6 MB, free: 12.87 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002456/0.3813, allocations: 1.634 MB / 480.2 MB, free: 11.13 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001734/0.383, allocations: 0.9174 MB / 481.1 MB, free: 10.21 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003102/0.3834, allocations: 207.2 kB / 481.3 MB, free: 9.977 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.811e-05/0.3834, allocations: 43.56 kB / 481.4 MB, free: 9.926 MB / 382.1 MB Notification: Performance of pre-optimization done (n=105): time 3.627e-06/0.3834, allocations: 0 / 481.4 MB, free: 9.926 MB / 382.1 MB Notification: Performance of matching and sorting (n=122): time 0.01489/0.3983, allocations: 6.594 MB / 488 MB, free: 3.164 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.623e-05/0.3983, allocations: 68.39 kB / 488 MB, free: 3.086 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002583/0.4009, allocations: 1.57 MB / 489.6 MB, free: 1.508 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001473/0.4011, allocations: 49.64 kB / 489.6 MB, free: 1.453 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009356/0.402, allocations: 1.134 MB / 490.8 MB, free: 312 kB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004345/0.4024, allocations: 452.1 kB / 491.2 MB, free: 15.86 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004523/0.4029, allocations: 275.5 kB / 491.5 MB, free: 15.58 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001196/0.403, allocations: 301.1 kB / 491.8 MB, free: 15.29 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001239/0.4043, allocations: 0.7066 MB / 492.5 MB, free: 14.58 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001566/0.4058, allocations: 1.146 MB / 493.6 MB, free: 13.25 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002959/0.4088, allocations: 1.967 MB / 495.6 MB, free: 11.1 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.276e-05/0.4088, allocations: 4 kB / 495.6 MB, free: 11.09 MB / 398.1 MB Notification: Performance of matching and sorting (n=191) (initialization): time 0.00465/0.4134, allocations: 2.526 MB / 498.1 MB, free: 8.531 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.14e-05/0.4135, allocations: 12 kB / 498.1 MB, free: 8.52 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.475e-05/0.4135, allocations: 12 kB / 498.1 MB, free: 8.508 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001075/0.4146, allocations: 420 kB / 498.6 MB, free: 8.086 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00132/0.4159, allocations: 355.4 kB / 498.9 MB, free: 7.738 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007825/0.4237, allocations: 7.122 MB / 0.4942 GB, free: 216 kB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001736/0.4255, allocations: 103.9 kB / 0.4943 GB, free: 112 kB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001601/0.4256, allocations: 71.98 kB / 0.4943 GB, free: 40 kB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 59 * 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 (169): * Single equations (assignments): 165 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 1 system {(2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(3,12,100.0%), (1,6,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001558/0.4272, allocations: 0.7159 MB / 0.495 GB, free: 15.31 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004774/0.4276, allocations: 178.9 kB / 0.4952 GB, free: 15.14 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004089/0.4317, allocations: 2.19 MB / 0.4973 GB, free: 12.91 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.319e-05/0.4318, allocations: 12 kB / 0.4974 GB, free: 12.9 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.927e-06/0.4318, allocations: 7.938 kB / 0.4974 GB, free: 12.89 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.757e-05/0.4318, allocations: 15.91 kB / 0.4974 GB, free: 12.88 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008445/0.4402, allocations: 4.765 MB / 0.502 GB, free: 7.965 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.933e-06/0.4402, allocations: 4 kB / 0.502 GB, free: 7.961 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009576/0.4412, allocations: 223.7 kB / 0.5022 GB, free: 7.742 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00117/0.4424, allocations: 455.3 kB / 0.5027 GB, free: 7.285 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.367e-05/0.4425, allocations: 39.97 kB / 0.5027 GB, free: 7.246 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008801/0.4513, allocations: 8.687 MB / 0.5112 GB, free: 14 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.861e-06/0.4513, allocations: 4 kB / 0.5112 GB, free: 13.99 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005501/0.4568, allocations: 3.223 MB / 0.5144 GB, free: 10.68 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009889/0.4577, allocations: 403.8 kB / 0.5147 GB, free: 10.27 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002519/0.458, allocations: 39.98 kB / 0.5148 GB, free: 10.23 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009395/0.4589, allocations: 87.91 kB / 0.5149 GB, free: 10.14 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002478/0.4592, allocations: 92.75 kB / 0.515 GB, free: 10.05 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.227e-05/0.4593, allocations: 39.98 kB / 0.515 GB, free: 10.01 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.001714/0.461, allocations: 1.071 MB / 0.516 GB, free: 8.945 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.461, allocations: 0 / 0.516 GB, free: 8.945 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.001799/0.4628, allocations: 491.9 kB / 0.5165 GB, free: 8.465 MB / 430.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 7 (smpm.inertiaRotor.w,smpm.idq_sr[1],smpm.idq_sr[2],smpm.idq_rr[2],smpm.idq_dr[1],vfController.x,loadInertia.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 (107): * Single equations (assignments): 103 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(3,12,100.0%), (1,6,100.0%), (1,1,100.0%), (2,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.005714/0.4685, allocations: 3.855 MB / 0.5203 GB, free: 4.508 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.003956/0.4725, allocations: 2.231 MB / 0.5224 GB, free: 2.219 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 5.911e-06/0.4725, allocations: 0 / 0.5224 GB, free: 2.219 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00246/0.4749, allocations: 1.423 MB / 0.5238 GB, free: 0.7422 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002481/0.4774, allocations: 493.2 kB / 0.5243 GB, free: 292 kB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03006/0.5075, allocations: 17.91 MB / 0.5418 GB, free: 13.62 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001771/0.5092, allocations: 1.883 MB / 0.5436 GB, free: 11.71 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.001244/0.5105, allocations: 386.8 kB / 0.544 GB, free: 11.33 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001237/0.5117, allocations: 0.8742 MB / 0.5449 GB, free: 10.45 MB / 462.1 MB Notification: Performance of SimCode: time 1.353e-06/0.5117, allocations: 4 kB / 0.5449 GB, free: 10.45 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1007/0.6124, allocations: 45.6 MB / 0.5894 GB, free: 13.29 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.95/13.56, allocations: 4 kB / 0.5894 GB, free: 13.29 MB / 0.4981 GB " [Timeout remaining time 646] (rm -f Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter_res.csv --start-time 0 --stop-time 1.5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0001 Modelica_4_1_0-beta_om_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_Inverter.fmu > Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 16.071693502832204] Failed to read output from testmodel.py, exit status != 0: ['time', 'loadInertia.phi', 'loadInertia.w', 'smpm.is[1]', 'smpm.is[2]', 'smpm.idq_dr[1]', 'smpm.idq_rr[2]', 'smpm.idq_sr[1]', 'smpm.idq_sr[2]', 'vfController.x'] 13.670292562339455 13.690786418 13.348637787 Calling exit ...