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.SMR_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.001829/0.001829, allocations: 121.4 kB / 18.45 MB, free: 4.59 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.002146/0.002146, allocations: 210.5 kB / 21.41 MB, free: 1.641 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.45/1.45, allocations: 227.7 MB / 251.9 MB, free: 15.86 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.SMR_Inverter,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMR_Inverter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMR_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.001918/0.001918, allocations: 71.83 kB / 365.2 MB, free: 184 kB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1115/0.1134, allocations: 50.54 MB / 415.8 MB, free: 13.59 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter): time 0.01332/0.1268, allocations: 9.669 MB / 425.4 MB, free: 3.883 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.006689/0.1335, allocations: 3.154 MB / 428.6 MB, free: 0.7188 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001544/0.1351, allocations: 55.75 kB / 428.7 MB, free: 0.6641 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001959/0.1371, allocations: 0.6753 MB / 429.3 MB, free: 15.98 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002713/0.1398, allocations: 0.7686 MB / 430.1 MB, free: 15.21 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009855/0.1408, allocations: 395.4 kB / 430.5 MB, free: 14.82 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.003226/0.1441, allocations: 2.56 MB / 433 MB, free: 12.25 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002737/0.1468, allocations: 2.33 MB / 435.4 MB, free: 9.855 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001833/0.1487, allocations: 1.176 MB / 436.6 MB, free: 8.676 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002163/0.1508, allocations: 1.502 MB / 438.1 MB, free: 7.168 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005281/0.1514, allocations: 316 kB / 438.4 MB, free: 6.859 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009062/0.1523, allocations: 427.8 kB / 438.8 MB, free: 6.441 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009512/0.1533, allocations: 0.896 MB / 439.7 MB, free: 5.543 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001747/0.155, allocations: 1.427 MB / 441.1 MB, free: 4.109 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.2432/0.3982, allocations: 4.166 MB / 445.3 MB, free: 14.2 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.096e-06/0.3983, allocations: 4.031 kB / 445.3 MB, free: 14.2 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.705e-06/0.3983, allocations: 0 / 445.3 MB, free: 14.2 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001903/0.3985, allocations: 0 / 445.3 MB, free: 14.2 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: 553 * Number of variables: 553 Notification: Performance of Generate backend data structure: time 0.006919/0.4054, allocations: 2.978 MB / 448.3 MB, free: 12.94 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.949e-05/0.4055, allocations: 11.5 kB / 448.3 MB, free: 12.94 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003629/0.4059, allocations: 308.1 kB / 448.6 MB, free: 12.89 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008379/0.4067, allocations: 315.1 kB / 448.9 MB, free: 12.74 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002359/0.4091, allocations: 1.551 MB / 450.4 MB, free: 12.29 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001241/0.4092, allocations: 159 kB / 450.6 MB, free: 12.28 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003118/0.4095, allocations: 212.8 kB / 450.8 MB, free: 12.27 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004861/0.4144, allocations: 2.799 MB / 453.6 MB, free: 12.06 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.286e-05/0.4145, allocations: 7.234 kB / 453.6 MB, free: 12.06 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002047/0.4147, allocations: 85.66 kB / 453.7 MB, free: 12.06 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002038/0.4149, allocations: 109.2 kB / 453.8 MB, free: 12.05 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004276/0.4192, allocations: 2.349 MB / 456.1 MB, free: 12.02 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01333/0.4326, allocations: 8.53 MB / 464.7 MB, free: 9.895 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002074/0.4347, allocations: 1.7 MB / 466.4 MB, free: 8.863 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001586/0.4363, allocations: 0.951 MB / 467.3 MB, free: 8.559 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002593/0.4365, allocations: 210.1 kB / 467.5 MB, free: 8.359 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.666e-05/0.4366, allocations: 44.16 kB / 467.6 MB, free: 8.312 MB / 366.1 MB Notification: Performance of pre-optimization done (n=101): time 3.085e-06/0.4366, allocations: 0 / 467.6 MB, free: 8.312 MB / 366.1 MB Notification: Performance of matching and sorting (n=116): time 0.01255/0.4491, allocations: 6.277 MB / 473.8 MB, free: 5.578 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.263e-05/0.4492, allocations: 63.72 kB / 473.9 MB, free: 5.512 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002006/0.4512, allocations: 1.439 MB / 475.3 MB, free: 4.953 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 8.504e-05/0.4513, allocations: 45.8 kB / 475.4 MB, free: 4.906 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005565/0.4519, allocations: 1.071 MB / 476.5 MB, free: 4.035 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002266/0.4521, allocations: 431.6 kB / 476.9 MB, free: 3.668 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003575/0.4525, allocations: 250 kB / 477.1 MB, free: 3.523 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 8.373e-05/0.4526, allocations: 361 kB / 477.5 MB, free: 3.18 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00101/0.4536, allocations: 0.6907 MB / 478.2 MB, free: 2.836 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001165/0.4548, allocations: 1.067 MB / 479.2 MB, free: 2.012 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002059/0.4568, allocations: 1.867 MB / 481.1 MB, free: 0.8164 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.354e-06/0.4568, allocations: 10.83 kB / 481.1 MB, free: 0.8086 MB / 366.1 MB Notification: Performance of matching and sorting (n=178) (initialization): time 0.003683/0.4605, allocations: 2.422 MB / 483.5 MB, free: 15.58 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.707e-05/0.4606, allocations: 13.34 kB / 483.5 MB, free: 15.58 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.284e-05/0.4606, allocations: 13.42 kB / 483.6 MB, free: 15.58 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009432/0.4616, allocations: 426.4 kB / 484 MB, free: 15.37 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001101/0.4627, allocations: 331 kB / 484.3 MB, free: 15.3 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007048/0.4697, allocations: 7.033 MB / 491.3 MB, free: 9.035 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001471/0.4712, allocations: 102 kB / 491.4 MB, free: 8.938 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001225/0.4714, allocations: 60 kB / 491.5 MB, free: 8.879 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 52 * 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 (157): * Single equations (assignments): 153 * 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,11,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.001361/0.4727, allocations: 0.6909 MB / 492.2 MB, free: 8.195 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003696/0.4731, allocations: 164.7 kB / 492.3 MB, free: 8.035 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004111/0.4772, allocations: 2.142 MB / 494.5 MB, free: 5.867 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.444e-05/0.4772, allocations: 12 kB / 494.5 MB, free: 5.855 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.742e-05/0.4773, allocations: 4 kB / 494.5 MB, free: 5.852 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.355e-05/0.4773, allocations: 3.984 kB / 494.5 MB, free: 5.848 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008054/0.4853, allocations: 4.57 MB / 499.1 MB, free: 1.211 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.787e-06/0.4854, allocations: 4.406 kB / 499.1 MB, free: 1.207 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009062/0.4863, allocations: 218.4 kB / 499.3 MB, free: 1.004 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001197/0.4875, allocations: 451 kB / 499.7 MB, free: 0.5586 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.678e-05/0.4876, allocations: 31.98 kB / 499.8 MB, free: 0.5273 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008987/0.4966, allocations: 8.619 MB / 0.4965 GB, free: 7.41 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.21e-06/0.4966, allocations: 6.297 kB / 0.4965 GB, free: 7.406 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005429/0.5021, allocations: 3.116 MB / 0.4995 GB, free: 4.227 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009285/0.503, allocations: 391.9 kB / 0.4999 GB, free: 3.824 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002638/0.5033, allocations: 33.86 kB / 0.4999 GB, free: 3.793 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008788/0.5042, allocations: 85.73 kB / 0.5 GB, free: 3.711 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002472/0.5044, allocations: 95.44 kB / 0.5001 GB, free: 3.621 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.848e-05/0.5045, allocations: 35.98 kB / 0.5001 GB, free: 3.586 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.001564/0.5061, allocations: 0.9927 MB / 0.5011 GB, free: 2.594 MB / 398.1 MB Notification: Performance of sort global known variables: time 2.2e-07/0.5061, allocations: 0 / 0.5011 GB, free: 2.594 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001748/0.5079, allocations: 463.9 kB / 0.5015 GB, free: 2.141 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 14 * Number of states: 7 (smr.inertiaRotor.w,smr.idq_sr[1],smr.idq_sr[2],smr.idq_dr[1],smr.idq_dr[2],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 (102): * Single equations (assignments): 98 * 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,11,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.005637/0.5135, allocations: 3.746 MB / 0.5052 GB, free: 14.33 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.003985/0.5175, allocations: 2.237 MB / 0.5074 GB, free: 12.09 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 5.941e-06/0.5175, allocations: 0 / 0.5074 GB, free: 12.09 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002447/0.52, allocations: 1.447 MB / 0.5088 GB, free: 10.62 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002217/0.5222, allocations: 419.9 kB / 0.5092 GB, free: 10.23 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02771/0.55, allocations: 16.92 MB / 0.5257 GB, free: 8.746 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001737/0.5517, allocations: 1.806 MB / 0.5275 GB, free: 6.914 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.001174/0.5529, allocations: 369.6 kB / 0.5278 GB, free: 6.547 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001174/0.5541, allocations: 0.8195 MB / 0.5286 GB, free: 5.727 MB / 430.1 MB Notification: Performance of SimCode: time 8.42e-07/0.5541, allocations: 0 / 0.5286 GB, free: 5.727 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.114/0.6681, allocations: 41.92 MB / 0.5696 GB, free: 12.28 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.4/13.07, allocations: 6.781 kB / 0.5696 GB, free: 12.28 MB / 478.1 MB " [Timeout remaining time 647] (rm -f Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_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_SMR_Inverter.fmu > Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 15.588731992058456] Failed to read output from testmodel.py, exit status != 0: ['time', 'loadInertia.phi', 'loadInertia.w', 'smr.is[1]', 'smr.is[2]', 'smr.idq_rr[1]', 'smr.idq_rr[2]', 'smr.idq_sr[1]', 'smr.idq_sr[2]', 'vfController.x'] 13.181429507909343 13.203933035 12.801654458 Calling exit ...