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.001285/0.001285, allocations: 106.5 kB / 21.23 MB, free: 0.6562 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.001546/0.001546, allocations: 212 kB / 24.54 MB, free: 4.016 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.494/1.494, allocations: 230.6 MB / 258.3 MB, free: 8.051 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.001982/0.001982, allocations: 68.77 kB / 378.6 MB, free: 3.156 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2847/0.2867, allocations: 53.37 MB / 431.9 MB, free: 6.883 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter): time 0.01408/0.3007, allocations: 10.46 MB / 442.4 MB, free: 12.39 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.007527/0.3083, allocations: 3.497 MB / 445.9 MB, free: 8.879 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002008/0.3103, allocations: 75.5 kB / 446 MB, free: 8.805 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00229/0.3126, allocations: 0.8349 MB / 446.8 MB, free: 7.965 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003142/0.3157, allocations: 0.8931 MB / 447.7 MB, free: 7.066 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001192/0.3169, allocations: 439.2 kB / 448.1 MB, free: 6.637 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.003959/0.3209, allocations: 2.766 MB / 450.9 MB, free: 3.859 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002036/0.3229, allocations: 1.352 MB / 452.2 MB, free: 2.438 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002481/0.3254, allocations: 1.304 MB / 453.5 MB, free: 1.129 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003515/0.3289, allocations: 1.623 MB / 455.2 MB, free: 15.5 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007218/0.3296, allocations: 336 kB / 455.5 MB, free: 15.17 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001252/0.3309, allocations: 439.8 kB / 455.9 MB, free: 14.74 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001494/0.3324, allocations: 0.9621 MB / 456.9 MB, free: 13.78 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002618/0.335, allocations: 1.509 MB / 458.4 MB, free: 12.26 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007772/0.3427, allocations: 4.402 MB / 462.8 MB, free: 7.844 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.227e-06/0.3428, allocations: 4 kB / 462.8 MB, free: 7.84 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.384e-06/0.3428, allocations: 0 / 462.8 MB, free: 7.84 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001359/0.3429, allocations: 0 / 462.8 MB, free: 7.84 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.009967/0.3529, allocations: 3.065 MB / 465.9 MB, free: 4.727 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.636e-05/0.3529, allocations: 8.031 kB / 465.9 MB, free: 4.719 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000484/0.3534, allocations: 325 kB / 466.2 MB, free: 4.391 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000958/0.3544, allocations: 335 kB / 466.5 MB, free: 4.062 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003357/0.3577, allocations: 1.558 MB / 468.1 MB, free: 2.465 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001607/0.3579, allocations: 168.4 kB / 468.2 MB, free: 2.297 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003598/0.3582, allocations: 220 kB / 468.5 MB, free: 2.082 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005233/0.3635, allocations: 2.921 MB / 471.4 MB, free: 15.07 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.165e-05/0.3635, allocations: 0 / 471.4 MB, free: 15.07 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002096/0.3637, allocations: 95.92 kB / 471.5 MB, free: 14.98 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000136/0.3639, allocations: 116.3 kB / 471.6 MB, free: 14.86 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004505/0.3684, allocations: 2.43 MB / 474 MB, free: 12.42 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01521/0.3836, allocations: 8.872 MB / 482.9 MB, free: 3.266 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002338/0.3859, allocations: 1.189 MB / 484.1 MB, free: 2.074 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001831/0.3877, allocations: 0.9209 MB / 485 MB, free: 1.156 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002385/0.388, allocations: 52.95 kB / 485 MB, free: 1.105 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.476e-05/0.388, allocations: 47.55 kB / 485.1 MB, free: 1.047 MB / 382.1 MB Notification: Performance of pre-optimization done (n=105): time 3.156e-06/0.388, allocations: 0 / 485.1 MB, free: 1.047 MB / 382.1 MB Notification: Performance of matching and sorting (n=122): time 0.01523/0.4033, allocations: 6.071 MB / 491.2 MB, free: 10.95 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.369e-05/0.4033, allocations: 64.41 kB / 491.2 MB, free: 10.88 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002483/0.4058, allocations: 1.569 MB / 492.8 MB, free: 9.297 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001475/0.406, allocations: 49.7 kB / 492.8 MB, free: 9.242 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009623/0.4069, allocations: 1.142 MB / 494 MB, free: 8.086 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004843/0.4074, allocations: 456.2 kB / 494.4 MB, free: 7.637 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000452/0.4079, allocations: 271.5 kB / 494.7 MB, free: 7.363 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.000134/0.408, allocations: 301.1 kB / 495 MB, free: 7.066 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0013/0.4093, allocations: 0.7066 MB / 495.7 MB, free: 6.359 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001643/0.4109, allocations: 1.138 MB / 496.8 MB, free: 5.035 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003023/0.414, allocations: 1.967 MB / 498.8 MB, free: 2.883 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.243e-06/0.414, allocations: 4 kB / 498.8 MB, free: 2.879 MB / 398.1 MB Notification: Performance of matching and sorting (n=191) (initialization): time 0.00458/0.4186, allocations: 2.452 MB / 0.4895 GB, free: 416 kB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.966e-05/0.4186, allocations: 12 kB / 0.4895 GB, free: 404 kB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.02e-05/0.4186, allocations: 12 kB / 0.4895 GB, free: 392 kB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001065/0.4197, allocations: 420.6 kB / 0.4899 GB, free: 15.96 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001287/0.421, allocations: 351.5 kB / 0.4903 GB, free: 15.62 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00761/0.4286, allocations: 6.823 MB / 0.4969 GB, free: 8.461 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001332/0.4299, allocations: 107.8 kB / 0.497 GB, free: 8.355 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001245/0.43, allocations: 67.94 kB / 0.4971 GB, free: 8.289 MB / 414.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.001263/0.4313, allocations: 0.7162 MB / 0.4978 GB, free: 7.562 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003503/0.4316, allocations: 178.9 kB / 0.498 GB, free: 7.387 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003954/0.4356, allocations: 2.111 MB / 0.5 GB, free: 5.25 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.28e-05/0.4356, allocations: 12 kB / 0.5 GB, free: 5.238 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.03e-05/0.4356, allocations: 7.938 kB / 0.5 GB, free: 5.23 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.351e-05/0.4356, allocations: 11.91 kB / 0.5001 GB, free: 5.219 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008725/0.4443, allocations: 4.668 MB / 0.5046 GB, free: 440 kB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.063e-05/0.4444, allocations: 4 kB / 0.5046 GB, free: 436 kB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009366/0.4453, allocations: 223.7 kB / 0.5048 GB, free: 212 kB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001221/0.4465, allocations: 451.2 kB / 0.5053 GB, free: 15.75 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001058/0.4466, allocations: 39.97 kB / 0.5053 GB, free: 15.71 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009045/0.4557, allocations: 8.269 MB / 0.5134 GB, free: 6.988 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.352e-06/0.4557, allocations: 4 kB / 0.5134 GB, free: 6.984 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00574/0.4614, allocations: 3.14 MB / 0.5164 GB, free: 3.77 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001036/0.4624, allocations: 334.8 kB / 0.5168 GB, free: 3.441 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002502/0.4627, allocations: 28 kB / 0.5168 GB, free: 3.414 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008868/0.4636, allocations: 87.84 kB / 0.5169 GB, free: 3.328 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002812/0.4639, allocations: 108.7 kB / 0.517 GB, free: 3.223 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.088e-05/0.4639, allocations: 39.98 kB / 0.517 GB, free: 3.184 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.001749/0.4657, allocations: 1.067 MB / 0.5181 GB, free: 2.121 MB / 430.1 MB Notification: Performance of sort global known variables: time 9e-08/0.4657, allocations: 0 / 0.5181 GB, free: 2.121 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.001762/0.4675, allocations: 492 kB / 0.5185 GB, free: 1.641 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.005811/0.4733, allocations: 3.785 MB / 0.5222 GB, free: 13.76 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.003984/0.4773, allocations: 2.14 MB / 0.5243 GB, free: 11.58 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 6.472e-06/0.4773, allocations: 4.125 kB / 0.5243 GB, free: 11.57 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00251/0.4798, allocations: 1.422 MB / 0.5257 GB, free: 10.11 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002261/0.482, allocations: 489.6 kB / 0.5262 GB, free: 9.641 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.257/0.739, allocations: 17.79 MB / 0.5435 GB, free: 98.29 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001252/0.7403, allocations: 1.871 MB / 0.5454 GB, free: 97.38 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.001098/0.7414, allocations: 390.9 kB / 0.5457 GB, free: 97.36 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008671/0.7422, allocations: 0.871 MB / 0.5466 GB, free: 96.66 MB / 446.1 MB Notification: Performance of SimCode: time 9.92e-07/0.7422, allocations: 2.594 kB / 0.5466 GB, free: 96.66 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09083/0.8331, allocations: 46.74 MB / 0.5922 GB, free: 54.34 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.29/14.13, allocations: 6.906 kB / 0.5923 GB, free: 54.34 MB / 446.1 MB " [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.79278087988496] 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'] 14.240783699322492 14.259417598 13.912502168 Calling exit ...