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.00127/0.00127, allocations: 110.5 kB / 21.23 MB, free: 0.6641 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.001421/0.001421, allocations: 213.2 kB / 24.54 MB, free: 4.02 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.422/1.422, allocations: 230.6 MB / 258.3 MB, free: 8.02 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.001955/0.001955, allocations: 60.78 kB / 378.6 MB, free: 3.121 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2722/0.2742, allocations: 53.38 MB / 431.9 MB, free: 6.848 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter): time 0.01199/0.2862, allocations: 9.769 MB / 441.7 MB, free: 13.04 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.006729/0.2929, allocations: 3.174 MB / 444.9 MB, free: 9.863 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001647/0.2946, allocations: 71.5 kB / 444.9 MB, free: 9.793 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002281/0.2968, allocations: 0.7221 MB / 445.7 MB, free: 9.066 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003181/0.3, allocations: 0.8116 MB / 446.5 MB, free: 8.25 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001144/0.3012, allocations: 399.4 kB / 446.9 MB, free: 7.859 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.00386/0.305, allocations: 2.568 MB / 449.4 MB, free: 5.281 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002128/0.3072, allocations: 1.3 MB / 450.7 MB, free: 3.918 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002174/0.3093, allocations: 1.227 MB / 452 MB, free: 2.688 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002452/0.3118, allocations: 1.534 MB / 453.5 MB, free: 1.148 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004925/0.3123, allocations: 316 kB / 453.8 MB, free: 0.8398 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008654/0.3131, allocations: 435.8 kB / 454.2 MB, free: 424 kB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001032/0.3142, allocations: 0.9077 MB / 455.1 MB, free: 15.5 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001852/0.316, allocations: 1.427 MB / 456.6 MB, free: 14.07 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005242/0.3213, allocations: 4.173 MB / 460.7 MB, free: 9.883 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.48e-06/0.3213, allocations: 3.938 kB / 460.7 MB, free: 9.879 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.644e-06/0.3213, allocations: 0 / 460.7 MB, free: 9.879 MB / 366.1 MB Notification: Performance of Transformations before backend: time 9.759e-05/0.3214, allocations: 0 / 460.7 MB, free: 9.879 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.006987/0.3284, allocations: 2.908 MB / 463.7 MB, free: 6.922 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.502e-05/0.3284, allocations: 16.03 kB / 463.7 MB, free: 6.906 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000482/0.3289, allocations: 312.2 kB / 464 MB, free: 6.59 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008957/0.3298, allocations: 307.2 kB / 464.3 MB, free: 6.289 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002965/0.3328, allocations: 1.467 MB / 465.7 MB, free: 4.781 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001484/0.3329, allocations: 164.1 kB / 465.9 MB, free: 4.617 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003457/0.3333, allocations: 215.9 kB / 466.1 MB, free: 4.406 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005194/0.3385, allocations: 2.803 MB / 468.9 MB, free: 1.516 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.24e-05/0.3385, allocations: 0 / 468.9 MB, free: 1.516 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000203/0.3387, allocations: 84 kB / 469 MB, free: 1.434 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001273/0.3388, allocations: 112.1 kB / 469.1 MB, free: 1.32 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004281/0.3431, allocations: 2.347 MB / 471.5 MB, free: 14.96 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01463/0.3577, allocations: 8.367 MB / 479.8 MB, free: 6.344 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002306/0.3601, allocations: 1.183 MB / 481 MB, free: 5.152 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0018/0.3619, allocations: 0.8929 MB / 481.9 MB, free: 4.262 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002299/0.3621, allocations: 52.97 kB / 481.9 MB, free: 4.211 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.059e-05/0.3621, allocations: 51.48 kB / 482 MB, free: 4.148 MB / 382.1 MB Notification: Performance of pre-optimization done (n=101): time 3.136e-06/0.3621, allocations: 0 / 482 MB, free: 4.148 MB / 382.1 MB Notification: Performance of matching and sorting (n=116): time 0.01369/0.3758, allocations: 5.732 MB / 487.7 MB, free: 14.38 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.095e-05/0.3759, allocations: 64.41 kB / 487.8 MB, free: 14.3 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002516/0.3784, allocations: 1.441 MB / 489.2 MB, free: 12.85 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001267/0.3786, allocations: 45.7 kB / 489.3 MB, free: 12.8 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008737/0.3794, allocations: 1.067 MB / 490.3 MB, free: 11.72 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003973/0.3798, allocations: 432.3 kB / 490.8 MB, free: 11.3 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004209/0.3802, allocations: 255.5 kB / 491 MB, free: 11.04 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001884/0.3804, allocations: 365.9 kB / 491.4 MB, free: 10.68 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001202/0.3816, allocations: 0.6948 MB / 492.1 MB, free: 9.98 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001517/0.3832, allocations: 1.066 MB / 493.1 MB, free: 8.758 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002812/0.386, allocations: 1.868 MB / 495 MB, free: 6.73 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.372e-06/0.386, allocations: 4 kB / 495 MB, free: 6.727 MB / 398.1 MB Notification: Performance of matching and sorting (n=178) (initialization): time 0.004433/0.3904, allocations: 2.331 MB / 497.3 MB, free: 4.375 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.757e-05/0.3904, allocations: 12 kB / 497.3 MB, free: 4.363 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.601e-05/0.3905, allocations: 15.94 kB / 497.4 MB, free: 4.348 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009934/0.3915, allocations: 415.3 kB / 497.8 MB, free: 3.93 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001205/0.3927, allocations: 331.5 kB / 498.1 MB, free: 3.605 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007692/0.4004, allocations: 6.742 MB / 0.493 GB, free: 12.52 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001548/0.4019, allocations: 103.9 kB / 0.4931 GB, free: 12.42 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001742/0.4021, allocations: 56 kB / 0.4932 GB, free: 12.36 MB / 414.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.001571/0.4037, allocations: 0.6986 MB / 0.4938 GB, free: 11.66 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000521/0.4042, allocations: 166.9 kB / 0.494 GB, free: 11.49 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004039/0.4082, allocations: 2.051 MB / 0.496 GB, free: 9.414 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.421e-05/0.4083, allocations: 12 kB / 0.496 GB, free: 9.402 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.288e-06/0.4083, allocations: 4 kB / 0.496 GB, free: 9.398 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.363e-05/0.4083, allocations: 7.969 kB / 0.496 GB, free: 9.391 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008207/0.4165, allocations: 4.44 MB / 0.5004 GB, free: 4.848 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.077e-06/0.4165, allocations: 4 kB / 0.5004 GB, free: 4.844 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009161/0.4174, allocations: 220.1 kB / 0.5006 GB, free: 4.629 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001161/0.4186, allocations: 451 kB / 0.501 GB, free: 4.176 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.309e-05/0.4187, allocations: 35.97 kB / 0.501 GB, free: 4.141 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008942/0.4276, allocations: 8.215 MB / 0.5091 GB, free: 11.47 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.424e-06/0.4276, allocations: 7.875 kB / 0.5091 GB, free: 11.46 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005237/0.4329, allocations: 3.033 MB / 0.512 GB, free: 8.355 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001029/0.4339, allocations: 306.8 kB / 0.5123 GB, free: 8.055 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000219/0.4341, allocations: 31.98 kB / 0.5124 GB, free: 8.023 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008438/0.4349, allocations: 87.84 kB / 0.5124 GB, free: 7.938 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002558/0.4352, allocations: 96.77 kB / 0.5125 GB, free: 7.844 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.499e-05/0.4353, allocations: 35.98 kB / 0.5126 GB, free: 7.809 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.001501/0.4368, allocations: 0.9927 MB / 0.5135 GB, free: 6.816 MB / 430.1 MB Notification: Performance of sort global known variables: time 9e-08/0.4368, allocations: 0 / 0.5135 GB, free: 6.816 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.001607/0.4384, allocations: 459.9 kB / 0.514 GB, free: 6.367 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.005456/0.4438, allocations: 3.671 MB / 0.5176 GB, free: 2.617 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.003735/0.4476, allocations: 2.079 MB / 0.5196 GB, free: 0.5 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 4.829e-06/0.4476, allocations: 0 / 0.5196 GB, free: 0.5 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002368/0.4499, allocations: 1.387 MB / 0.5209 GB, free: 15.06 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001954/0.4519, allocations: 426.7 kB / 0.5213 GB, free: 14.65 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2288/0.6807, allocations: 16.77 MB / 0.5377 GB, free: 99.73 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001502/0.6822, allocations: 1.811 MB / 0.5395 GB, free: 99.01 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.001113/0.6834, allocations: 365.5 kB / 0.5398 GB, free: 98.99 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008785/0.6842, allocations: 0.8215 MB / 0.5406 GB, free: 98.98 MB / 446.1 MB Notification: Performance of SimCode: time 8.92e-07/0.6842, allocations: 0 / 0.5406 GB, free: 98.98 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.128/0.8122, allocations: 43.34 MB / 0.583 GB, free: 63.64 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.17/13.98, allocations: 7.859 kB / 0.583 GB, free: 63.64 MB / 446.1 MB " [Timeout remaining time 646] (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: 16.474223643075675] 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'] 14.09530525514856 14.111330909 13.786590444 Calling exit ...