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.001572/0.001572, allocations: 117.9 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.001784/0.001784, allocations: 214.5 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.453/1.453, allocations: 230.5 MB / 254.8 MB, free: 15.27 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.001938/0.001938, allocations: 71.83 kB / 373.7 MB, free: 10.22 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1047/0.1066, allocations: 53.33 MB / 427 MB, free: 4.797 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter): time 0.01191/0.1185, allocations: 9.704 MB / 436.7 MB, free: 11.05 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.007018/0.1256, allocations: 3.186 MB / 439.9 MB, free: 7.855 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001677/0.1272, allocations: 71.5 kB / 440 MB, free: 7.785 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002317/0.1295, allocations: 0.7104 MB / 440.7 MB, free: 7.07 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00315/0.1327, allocations: 0.8038 MB / 441.5 MB, free: 6.262 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00139/0.1341, allocations: 395.4 kB / 441.9 MB, free: 5.875 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.004097/0.1382, allocations: 2.568 MB / 444.4 MB, free: 3.293 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003108/0.1413, allocations: 1.666 MB / 446.1 MB, free: 1.562 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002251/0.1435, allocations: 1.219 MB / 447.3 MB, free: 348 kB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.2089/0.3525, allocations: 1.531 MB / 448.9 MB, free: 11.19 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008963/0.3534, allocations: 318.9 kB / 449.2 MB, free: 11.19 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00118/0.3545, allocations: 424.6 kB / 449.6 MB, free: 11.19 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000864/0.3554, allocations: 0.9068 MB / 450.5 MB, free: 11.19 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002104/0.3575, allocations: 1.422 MB / 451.9 MB, free: 10.84 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006011/0.3635, allocations: 4.175 MB / 456.1 MB, free: 10.32 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.583e-06/0.3635, allocations: 0 / 456.1 MB, free: 10.32 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.053e-06/0.3635, allocations: 1.938 kB / 456.1 MB, free: 10.32 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.000156/0.3637, allocations: 0 / 456.1 MB, free: 10.32 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.008571/0.3723, allocations: 2.972 MB / 459.1 MB, free: 9.039 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.577e-05/0.3723, allocations: 9.281 kB / 459.1 MB, free: 9.039 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005742/0.3729, allocations: 317.1 kB / 459.4 MB, free: 8.957 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001133/0.374, allocations: 313.5 kB / 459.7 MB, free: 8.809 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003015/0.377, allocations: 1.554 MB / 461.2 MB, free: 7.984 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001181/0.3772, allocations: 155.3 kB / 461.4 MB, free: 7.914 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003955/0.3776, allocations: 221.5 kB / 461.6 MB, free: 7.84 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00526/0.3828, allocations: 2.796 MB / 464.4 MB, free: 6.695 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.913e-05/0.3829, allocations: 7.75 kB / 464.4 MB, free: 6.691 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002104/0.3831, allocations: 88.06 kB / 464.5 MB, free: 6.625 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000136/0.3832, allocations: 103.6 kB / 464.6 MB, free: 6.613 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004259/0.3875, allocations: 2.357 MB / 467 MB, free: 5.777 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01438/0.4019, allocations: 8.523 MB / 475.5 MB, free: 0.5898 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002674/0.4045, allocations: 1.631 MB / 477.1 MB, free: 15.43 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002004/0.4065, allocations: 0.9036 MB / 478 MB, free: 15 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003391/0.4069, allocations: 209 kB / 478.2 MB, free: 14.79 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.079e-05/0.4069, allocations: 39.84 kB / 478.3 MB, free: 14.75 MB / 382.1 MB Notification: Performance of pre-optimization done (n=101): time 3.808e-06/0.4069, allocations: 0 / 478.3 MB, free: 14.75 MB / 382.1 MB Notification: Performance of matching and sorting (n=116): time 0.01493/0.4219, allocations: 6.265 MB / 484.5 MB, free: 11.1 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.211e-05/0.4219, allocations: 63.78 kB / 484.6 MB, free: 11.04 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002652/0.4246, allocations: 1.441 MB / 486 MB, free: 10.26 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001385/0.4247, allocations: 45.48 kB / 486.1 MB, free: 10.21 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008449/0.4256, allocations: 1.068 MB / 487.1 MB, free: 9.277 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004011/0.426, allocations: 428.9 kB / 487.6 MB, free: 8.914 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004167/0.4264, allocations: 254.6 kB / 487.8 MB, free: 8.766 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.000174/0.4265, allocations: 363.3 kB / 488.2 MB, free: 8.418 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001156/0.4277, allocations: 0.6926 MB / 488.9 MB, free: 8.074 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001524/0.4292, allocations: 1.067 MB / 489.9 MB, free: 7.25 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002695/0.4319, allocations: 1.867 MB / 491.8 MB, free: 6.055 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.523e-06/0.4319, allocations: 6.281 kB / 491.8 MB, free: 6.051 MB / 382.1 MB Notification: Performance of matching and sorting (n=178) (initialization): time 0.004471/0.4364, allocations: 2.413 MB / 494.2 MB, free: 4.543 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.947e-05/0.4364, allocations: 12 kB / 494.2 MB, free: 4.531 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.498e-05/0.4365, allocations: 12 kB / 494.2 MB, free: 4.52 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001096/0.4376, allocations: 427.3 kB / 494.7 MB, free: 4.098 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001272/0.4388, allocations: 325.6 kB / 495 MB, free: 3.797 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008078/0.4469, allocations: 7.035 MB / 0.4902 GB, free: 12.4 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001781/0.4487, allocations: 103.8 kB / 0.4903 GB, free: 12.3 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002005/0.4489, allocations: 58.62 kB / 0.4904 GB, free: 12.24 MB / 398.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.001656/0.4505, allocations: 0.6963 MB / 0.4911 GB, free: 11.55 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004806/0.451, allocations: 163 kB / 0.4912 GB, free: 11.39 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004215/0.4552, allocations: 2.128 MB / 0.4933 GB, free: 9.234 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.15e-05/0.4553, allocations: 8 kB / 0.4933 GB, free: 9.227 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.194e-05/0.4553, allocations: 10.06 kB / 0.4933 GB, free: 9.219 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.533e-05/0.4553, allocations: 3.984 kB / 0.4933 GB, free: 9.215 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009341/0.4646, allocations: 4.564 MB / 0.4978 GB, free: 4.594 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.056e-05/0.4646, allocations: 4 kB / 0.4978 GB, free: 4.59 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000917/0.4655, allocations: 218 kB / 0.498 GB, free: 4.387 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001229/0.4668, allocations: 450 kB / 0.4984 GB, free: 3.941 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.317e-05/0.4669, allocations: 31.98 kB / 0.4985 GB, free: 3.91 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009473/0.4763, allocations: 8.626 MB / 0.5069 GB, free: 10.79 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.262e-06/0.4763, allocations: 7.938 kB / 0.5069 GB, free: 10.79 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005982/0.4823, allocations: 3.102 MB / 0.5099 GB, free: 7.617 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001145/0.4835, allocations: 387.9 kB / 0.5103 GB, free: 7.219 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002909/0.4838, allocations: 31.98 kB / 0.5103 GB, free: 7.188 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009413/0.4847, allocations: 83.91 kB / 0.5104 GB, free: 7.105 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002821/0.485, allocations: 94.53 kB / 0.5105 GB, free: 7.016 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.4e-05/0.4851, allocations: 39.98 kB / 0.5105 GB, free: 6.977 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.001665/0.4867, allocations: 0.9927 MB / 0.5115 GB, free: 5.984 MB / 414.1 MB Notification: Performance of sort global known variables: time 8e-08/0.4867, allocations: 0 / 0.5115 GB, free: 5.984 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.002065/0.4888, allocations: 463.9 kB / 0.5119 GB, free: 5.531 MB / 414.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.005853/0.4947, allocations: 3.736 MB / 0.5156 GB, free: 1.727 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.004175/0.4988, allocations: 2.17 MB / 0.5177 GB, free: 15.55 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 5.851e-06/0.4988, allocations: 0 / 0.5177 GB, free: 15.55 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002582/0.5014, allocations: 1.384 MB / 0.5191 GB, free: 14.14 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002534/0.504, allocations: 430.1 kB / 0.5195 GB, free: 13.74 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02962/0.5336, allocations: 16.91 MB / 0.536 GB, free: 12.28 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001868/0.5354, allocations: 1.799 MB / 0.5377 GB, free: 10.45 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.001325/0.5368, allocations: 369.6 kB / 0.5381 GB, free: 10.08 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001243/0.538, allocations: 0.8195 MB / 0.5389 GB, free: 9.262 MB / 446.1 MB Notification: Performance of SimCode: time 1.042e-06/0.538, allocations: 4 kB / 0.5389 GB, free: 9.258 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1001/0.6382, allocations: 42.27 MB / 0.5802 GB, free: 15.47 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.73/13.37, allocations: 11.69 kB / 0.5802 GB, free: 15.46 MB / 494.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: 16.064423337113112] 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.47867964208126 13.502340787 13.134200887 Calling exit ...