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.SMEE_Generator.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.00182/0.00182, allocations: 121.2 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.002249/0.002249, allocations: 206.6 kB / 21.45 MB, free: 1.629 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.486/1.486, allocations: 230.5 MB / 254.8 MB, free: 15.12 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.SMEE_Generator,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMEE_Generator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMEE_Generator",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.002689/0.002689, allocations: 71.83 kB / 373.7 MB, free: 10.2 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1086/0.1113, allocations: 53.33 MB / 427 MB, free: 4.777 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator): time 0.2147/0.326, allocations: 11.55 MB / 438.6 MB, free: 5.129 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00663/0.3327, allocations: 3.939 MB / 442.5 MB, free: 2.949 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001481/0.3341, allocations: 78.88 kB / 442.6 MB, free: 2.918 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002141/0.3363, allocations: 0.8695 MB / 443.5 MB, free: 2.473 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002999/0.3393, allocations: 0.9936 MB / 444.5 MB, free: 1.828 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001171/0.3404, allocations: 0.5173 MB / 445 MB, free: 1.508 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.004039/0.3445, allocations: 3.227 MB / 448.2 MB, free: 15.88 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002603/0.3471, allocations: 1.853 MB / 450.1 MB, free: 15.02 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002664/0.3498, allocations: 1.474 MB / 451.5 MB, free: 14.32 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003248/0.353, allocations: 1.857 MB / 453.4 MB, free: 13.46 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008934/0.3539, allocations: 385.8 kB / 453.8 MB, free: 13.46 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001703/0.3556, allocations: 0.6319 MB / 454.4 MB, free: 13.38 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001278/0.3569, allocations: 1.083 MB / 455.5 MB, free: 12.77 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002333/0.3592, allocations: 1.727 MB / 457.2 MB, free: 11.64 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006554/0.3658, allocations: 5.067 MB / 462.3 MB, free: 8.484 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.398e-06/0.3658, allocations: 1 kB / 462.3 MB, free: 8.484 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.583e-06/0.3658, allocations: 0 / 462.3 MB, free: 8.484 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001475/0.3659, allocations: 0 / 462.3 MB, free: 8.484 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: 656 * Number of variables: 656 Notification: Performance of Generate backend data structure: time 0.008939/0.3749, allocations: 3.581 MB / 465.9 MB, free: 6.008 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.578e-05/0.3749, allocations: 10.56 kB / 465.9 MB, free: 6.008 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006043/0.3755, allocations: 357.6 kB / 466.2 MB, free: 5.742 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001878/0.3774, allocations: 467.1 kB / 466.7 MB, free: 5.523 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003686/0.3811, allocations: 1.872 MB / 468.5 MB, free: 4.184 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001846/0.3813, allocations: 195.1 kB / 468.7 MB, free: 4.09 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003978/0.3816, allocations: 248 kB / 469 MB, free: 4.008 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00587/0.3875, allocations: 3.251 MB / 472.2 MB, free: 2.082 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.616e-05/0.3876, allocations: 6.109 kB / 472.2 MB, free: 2.078 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000239/0.3878, allocations: 106.3 kB / 472.3 MB, free: 1.996 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001248/0.3879, allocations: 115.7 kB / 472.5 MB, free: 1.977 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004801/0.3927, allocations: 2.697 MB / 475.1 MB, free: 0.5664 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01831/0.4111, allocations: 10.29 MB / 485.4 MB, free: 5.965 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002457/0.4135, allocations: 1.7 MB / 487.1 MB, free: 4.156 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001854/0.4154, allocations: 0.9752 MB / 488.1 MB, free: 3.18 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003346/0.4157, allocations: 207.2 kB / 488.3 MB, free: 2.941 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.012e-05/0.4157, allocations: 47.55 kB / 488.4 MB, free: 2.887 MB / 382.1 MB Notification: Performance of pre-optimization done (n=115): time 3.296e-06/0.4157, allocations: 0 / 488.4 MB, free: 2.887 MB / 382.1 MB Notification: Performance of matching and sorting (n=134): time 0.01897/0.4347, allocations: 7.444 MB / 495.8 MB, free: 11.32 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.148e-05/0.4348, allocations: 64.72 kB / 495.9 MB, free: 11.25 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003011/0.4378, allocations: 1.893 MB / 497.8 MB, free: 9.355 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001341/0.4379, allocations: 49.7 kB / 497.8 MB, free: 9.301 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001035/0.4389, allocations: 1.276 MB / 499.1 MB, free: 8.012 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004454/0.4394, allocations: 491.8 kB / 499.6 MB, free: 7.527 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000519/0.4399, allocations: 307.4 kB / 499.9 MB, free: 7.219 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001368/0.44, allocations: 301.1 kB / 0.4884 GB, free: 6.922 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001459/0.4415, allocations: 0.812 MB / 0.4892 GB, free: 6.109 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001868/0.4434, allocations: 1.312 MB / 0.4905 GB, free: 4.582 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003379/0.4468, allocations: 2.25 MB / 0.4927 GB, free: 2.117 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.958e-06/0.4468, allocations: 4 kB / 0.4927 GB, free: 2.113 MB / 398.1 MB Notification: Performance of matching and sorting (n=210) (initialization): time 0.005122/0.4519, allocations: 2.8 MB / 0.4955 GB, free: 15.27 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.831e-05/0.4519, allocations: 12 kB / 0.4955 GB, free: 15.26 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.754e-05/0.4519, allocations: 17.08 kB / 0.4955 GB, free: 15.25 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001029/0.453, allocations: 423.7 kB / 0.4959 GB, free: 14.82 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001482/0.4544, allocations: 399.3 kB / 0.4963 GB, free: 14.43 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006671/0.4611, allocations: 5.794 MB / 0.5019 GB, free: 8.371 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002047/0.4632, allocations: 131.9 kB / 0.502 GB, free: 8.242 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001771/0.4633, allocations: 71.98 kB / 0.5021 GB, free: 8.172 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 70 * 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 (187): * Single equations (assignments): 182 * Array equations: 2 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 2 * 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): 2 systems {(3,12,100.0%), (1,6,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.00151/0.4649, allocations: 0.7884 MB / 0.5029 GB, free: 7.379 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005172/0.4654, allocations: 210.7 kB / 0.5031 GB, free: 7.172 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004444/0.4698, allocations: 2.391 MB / 0.5054 GB, free: 4.742 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.514e-05/0.4699, allocations: 20 kB / 0.5054 GB, free: 4.723 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.047e-05/0.4699, allocations: 11.88 kB / 0.5055 GB, free: 4.711 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.427e-05/0.4699, allocations: 7.969 kB / 0.5055 GB, free: 4.703 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009634/0.4795, allocations: 5.253 MB / 0.5106 GB, free: 15.3 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.889e-06/0.4795, allocations: 4.562 kB / 0.5106 GB, free: 15.29 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001131/0.4807, allocations: 251.6 kB / 0.5108 GB, free: 15.05 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00134/0.482, allocations: 466.2 kB / 0.5113 GB, free: 14.58 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001138/0.4821, allocations: 39.97 kB / 0.5113 GB, free: 14.54 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008036/0.4901, allocations: 7.336 MB / 0.5185 GB, free: 6.793 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.077e-06/0.4901, allocations: 11.88 kB / 0.5185 GB, free: 6.781 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00638/0.4965, allocations: 3.576 MB / 0.522 GB, free: 3.102 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001343/0.4979, allocations: 458.5 kB / 0.5224 GB, free: 2.637 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003106/0.4982, allocations: 32 kB / 0.5225 GB, free: 2.605 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001182/0.4994, allocations: 107.8 kB / 0.5226 GB, free: 2.5 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002945/0.4997, allocations: 104.7 kB / 0.5227 GB, free: 2.398 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001021/0.4998, allocations: 43.98 kB / 0.5227 GB, free: 2.355 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.002168/0.5019, allocations: 1.303 MB / 0.524 GB, free: 1.062 MB / 430.1 MB Notification: Performance of sort global known variables: time 1e-07/0.5019, allocations: 4 kB / 0.524 GB, free: 1.059 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.002135/0.5041, allocations: 0.5469 MB / 0.5245 GB, free: 0.5117 MB / 430.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 19 * Number of states: 5 (smee.phiMechanical,smee.idq_sr[1],smee.idq_sr[2],smee.idq_rr[2],smee.idq_dr[1]) * 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 (115): * Single equations (assignments): 110 * Array equations: 2 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 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%), (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.006619/0.5107, allocations: 4.234 MB / 0.5286 GB, free: 12.16 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.004467/0.5152, allocations: 2.35 MB / 0.5309 GB, free: 9.773 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 6.893e-06/0.5152, allocations: 0 / 0.5309 GB, free: 9.773 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002637/0.5178, allocations: 1.444 MB / 0.5323 GB, free: 8.289 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002686/0.5205, allocations: 456.4 kB / 0.5328 GB, free: 7.859 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03549/0.556, allocations: 20.53 MB / 0.5528 GB, free: 2.535 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002296/0.5583, allocations: 2.014 MB / 0.5548 GB, free: 500 kB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.001878/0.5601, allocations: 435.7 kB / 0.5552 GB, free: 60 kB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001624/0.5618, allocations: 0.9953 MB / 0.5562 GB, free: 15.06 MB / 478.1 MB Notification: Performance of SimCode: time 1.523e-06/0.5618, allocations: 0 / 0.5562 GB, free: 15.06 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.109/0.6708, allocations: 49.35 MB / 0.6044 GB, free: 14.15 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 13.69/14.37, allocations: 4.062 kB / 0.6044 GB, free: 14.15 MB / 0.5137 GB " [Timeout remaining time 646] (rm -f Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator_res.csv --start-time 0 --stop-time 30 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.001 Modelica_4_1_0-beta_om_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMEE_Generator.fmu > Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 17.036827737931162] Failed to read output from testmodel.py, exit status != 0: ['time', 'constantSpeed.phi', 'smee.is[1]', 'smee.is[2]', 'smee.idq_dr[1]', 'smee.idq_rr[2]', 'smee.idq_sr[1]', 'smee.idq_sr[2]'] 14.478962845169008 14.494936031 14.126262089 Calling exit ...