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.001293/0.001293, allocations: 121.3 kB / 18.5 MB, free: 4.578 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.001354/0.001354, allocations: 210.5 kB / 21.46 MB, free: 1.625 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.439/1.439, allocations: 230.5 MB / 254.7 MB, free: 15.2 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.001968/0.001968, allocations: 71.83 kB / 373.6 MB, free: 10.29 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1049/0.1068, allocations: 53.31 MB / 426.9 MB, free: 4.883 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter): time 0.2292/0.336, allocations: 9.703 MB / 436.6 MB, free: 6.477 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.005448/0.3414, allocations: 3.175 MB / 439.8 MB, free: 4.961 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001383/0.3428, allocations: 55.44 kB / 439.8 MB, free: 4.945 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001855/0.3447, allocations: 0.7125 MB / 440.5 MB, free: 4.562 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00253/0.3472, allocations: 0.7994 MB / 441.3 MB, free: 4.051 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001056/0.3482, allocations: 404 kB / 441.7 MB, free: 3.805 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.003526/0.3518, allocations: 2.563 MB / 444.3 MB, free: 2.512 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002495/0.3543, allocations: 1.674 MB / 446 MB, free: 1.742 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002631/0.3569, allocations: 1.198 MB / 447.2 MB, free: 1.164 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003555/0.3605, allocations: 1.53 MB / 448.7 MB, free: 480 kB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0009995/0.3615, allocations: 317.8 kB / 449 MB, free: 480 kB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001647/0.3631, allocations: 431.3 kB / 449.4 MB, free: 444 kB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001293/0.3644, allocations: 0.9041 MB / 450.3 MB, free: 15.94 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003078/0.3675, allocations: 1.421 MB / 451.8 MB, free: 15.01 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007858/0.3753, allocations: 4.179 MB / 455.9 MB, free: 13.15 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.422e-06/0.3753, allocations: 5.438 kB / 455.9 MB, free: 13.14 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.164e-06/0.3753, allocations: 3.938 kB / 455.9 MB, free: 13.14 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001567/0.3755, allocations: 0 / 455.9 MB, free: 13.14 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.009226/0.3847, allocations: 2.976 MB / 458.9 MB, free: 11.05 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.239e-05/0.3848, allocations: 10.28 kB / 458.9 MB, free: 11.05 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005757/0.3853, allocations: 310.1 kB / 459.2 MB, free: 10.82 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001077/0.3864, allocations: 309.5 kB / 459.5 MB, free: 10.66 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003583/0.39, allocations: 1.55 MB / 461.1 MB, free: 9.535 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001902/0.3902, allocations: 166.3 kB / 461.2 MB, free: 9.453 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003986/0.3906, allocations: 214 kB / 461.5 MB, free: 9.379 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006247/0.3968, allocations: 2.792 MB / 464.2 MB, free: 7.707 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.821e-05/0.3969, allocations: 14.17 kB / 464.3 MB, free: 7.695 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002432/0.3972, allocations: 82.66 kB / 464.3 MB, free: 7.633 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001564/0.3973, allocations: 104.8 kB / 464.4 MB, free: 7.613 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005346/0.4027, allocations: 2.344 MB / 466.8 MB, free: 6.414 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01669/0.4194, allocations: 8.531 MB / 475.3 MB, free: 208 kB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002614/0.422, allocations: 1.635 MB / 477 MB, free: 14.45 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001764/0.4237, allocations: 0.9009 MB / 477.9 MB, free: 13.55 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000314/0.424, allocations: 204.2 kB / 478.1 MB, free: 13.31 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.799e-05/0.4241, allocations: 52.84 kB / 478.1 MB, free: 13.25 MB / 382.1 MB Notification: Performance of pre-optimization done (n=101): time 3.787e-06/0.4241, allocations: 4 kB / 478.1 MB, free: 13.25 MB / 382.1 MB Notification: Performance of matching and sorting (n=116): time 0.01391/0.438, allocations: 6.256 MB / 484.4 MB, free: 6.828 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.06e-05/0.4381, allocations: 64.41 kB / 484.4 MB, free: 6.754 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002298/0.4404, allocations: 1.441 MB / 485.9 MB, free: 5.297 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001648/0.4405, allocations: 45.7 kB / 485.9 MB, free: 5.246 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008727/0.4414, allocations: 1.071 MB / 487 MB, free: 4.164 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004165/0.4418, allocations: 428.3 kB / 487.4 MB, free: 3.742 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004304/0.4422, allocations: 259.5 kB / 487.7 MB, free: 3.48 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001747/0.4424, allocations: 357.9 kB / 488 MB, free: 3.125 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00117/0.4436, allocations: 0.6949 MB / 488.7 MB, free: 2.43 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001464/0.445, allocations: 1.066 MB / 489.8 MB, free: 1.207 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002745/0.4478, allocations: 1.868 MB / 491.6 MB, free: 15.18 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.06e-05/0.4478, allocations: 4 kB / 491.6 MB, free: 15.18 MB / 398.1 MB Notification: Performance of matching and sorting (n=178) (initialization): time 0.004427/0.4522, allocations: 2.422 MB / 494.1 MB, free: 12.71 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.075e-05/0.4523, allocations: 12 kB / 494.1 MB, free: 12.7 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.66e-05/0.4523, allocations: 12 kB / 494.1 MB, free: 12.69 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001032/0.4533, allocations: 412.7 kB / 494.5 MB, free: 12.28 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00131/0.4546, allocations: 327.5 kB / 494.8 MB, free: 11.96 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007862/0.4625, allocations: 7.05 MB / 0.4901 GB, free: 4.496 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001685/0.4642, allocations: 109.3 kB / 0.4902 GB, free: 4.391 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001435/0.4643, allocations: 60 kB / 0.4903 GB, free: 4.332 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.001579/0.4659, allocations: 0.6924 MB / 0.4909 GB, free: 3.629 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004251/0.4663, allocations: 166.9 kB / 0.4911 GB, free: 3.465 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003869/0.4702, allocations: 2.123 MB / 0.4932 GB, free: 1.293 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.375e-05/0.4702, allocations: 11.98 kB / 0.4932 GB, free: 1.281 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.175e-06/0.4702, allocations: 8 kB / 0.4932 GB, free: 1.273 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.088e-05/0.4702, allocations: 3.984 kB / 0.4932 GB, free: 1.27 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008326/0.4786, allocations: 4.552 MB / 0.4976 GB, free: 12.59 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.134e-05/0.4786, allocations: 7.938 kB / 0.4976 GB, free: 12.59 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009754/0.4795, allocations: 211.7 kB / 0.4978 GB, free: 12.38 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001151/0.4807, allocations: 451.4 kB / 0.4983 GB, free: 11.93 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001034/0.4808, allocations: 31.98 kB / 0.4983 GB, free: 11.89 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008751/0.4895, allocations: 8.62 MB / 0.5067 GB, free: 2.727 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.253e-06/0.4896, allocations: 7.938 kB / 0.5067 GB, free: 2.719 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005608/0.4952, allocations: 3.1 MB / 0.5098 GB, free: 15.52 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001136/0.4963, allocations: 395.8 kB / 0.5101 GB, free: 15.12 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004615/0.4968, allocations: 27.98 kB / 0.5102 GB, free: 15.09 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001178/0.4979, allocations: 83.91 kB / 0.5102 GB, free: 15.01 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002725/0.4982, allocations: 100.7 kB / 0.5103 GB, free: 14.91 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.132e-05/0.4983, allocations: 41.81 kB / 0.5104 GB, free: 14.87 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.001858/0.5002, allocations: 0.9888 MB / 0.5113 GB, free: 13.88 MB / 430.1 MB Notification: Performance of sort global known variables: time 1e-07/0.5002, allocations: 0 / 0.5113 GB, free: 13.88 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.002187/0.5023, allocations: 463.9 kB / 0.5118 GB, free: 13.43 MB / 430.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.00622/0.5086, allocations: 3.742 MB / 0.5154 GB, free: 9.594 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.004123/0.5127, allocations: 2.164 MB / 0.5176 GB, free: 7.371 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 6.202e-06/0.5127, allocations: 0 / 0.5176 GB, free: 7.371 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002433/0.5151, allocations: 1.388 MB / 0.5189 GB, free: 5.93 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002644/0.5178, allocations: 416.4 kB / 0.5193 GB, free: 5.539 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03091/0.5487, allocations: 16.91 MB / 0.5358 GB, free: 3.934 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002249/0.5509, allocations: 1.803 MB / 0.5376 GB, free: 2.098 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.001373/0.5523, allocations: 369.6 kB / 0.5379 GB, free: 1.73 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001431/0.5537, allocations: 0.8156 MB / 0.5387 GB, free: 0.9141 MB / 446.1 MB Notification: Performance of SimCode: time 1.463e-06/0.5537, allocations: 7.938 kB / 0.5387 GB, free: 0.9062 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1414/0.6952, allocations: 42.27 MB / 0.58 GB, free: 7.066 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.4/13.1, allocations: 2.188 kB / 0.58 GB, free: 7.066 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter_res.mat --tempDir=temp_Modelica_4_1_0-beta_om_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMR_Inverter_fmu --startTime=0 --stopTime=1.5 --stepSize=0.0001 --timeout=50 --tolerance=1e-06 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.552437549922615] 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.210491214878857 13.236742334 12.855945557 Calling exit ...