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.001762/0.001762, allocations: 106.5 kB / 21.23 MB, free: 0.6562 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.002309/0.002309, allocations: 213.9 kB / 24.54 MB, free: 4.016 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.481/1.481, allocations: 230.6 MB / 258.3 MB, free: 8.066 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.002232/0.002232, allocations: 68.75 kB / 378.6 MB, free: 3.16 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2927/0.295, allocations: 53.36 MB / 431.9 MB, free: 6.91 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter): time 0.0122/0.3072, allocations: 9.765 MB / 441.7 MB, free: 13.11 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00685/0.314, allocations: 3.182 MB / 444.9 MB, free: 9.918 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001877/0.3159, allocations: 67.56 kB / 444.9 MB, free: 9.852 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002163/0.3181, allocations: 0.7143 MB / 445.7 MB, free: 9.133 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003313/0.3214, allocations: 0.8194 MB / 446.5 MB, free: 8.309 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001371/0.3228, allocations: 399.3 kB / 446.9 MB, free: 7.918 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.004966/0.3277, allocations: 2.564 MB / 449.4 MB, free: 5.344 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002227/0.33, allocations: 1.311 MB / 450.7 MB, free: 3.969 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002667/0.3326, allocations: 1.219 MB / 452 MB, free: 2.746 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0027/0.3353, allocations: 1.534 MB / 453.5 MB, free: 1.207 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005447/0.3359, allocations: 320 kB / 453.8 MB, free: 0.8945 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009966/0.3369, allocations: 431.8 kB / 454.2 MB, free: 484 kB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009952/0.3379, allocations: 0.9115 MB / 455.1 MB, free: 15.56 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001716/0.3396, allocations: 1.423 MB / 456.6 MB, free: 14.13 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005019/0.3446, allocations: 4.178 MB / 460.7 MB, free: 9.938 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.659e-06/0.3446, allocations: 3.938 kB / 460.7 MB, free: 9.934 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.272e-06/0.3446, allocations: 4 kB / 460.7 MB, free: 9.93 MB / 366.1 MB Notification: Performance of Transformations before backend: time 5.65e-05/0.3447, allocations: 0 / 460.7 MB, free: 9.93 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.005967/0.3506, allocations: 2.904 MB / 463.7 MB, free: 6.977 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.501e-05/0.3507, allocations: 12.03 kB / 463.7 MB, free: 6.965 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004068/0.3511, allocations: 308.2 kB / 464 MB, free: 6.652 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007959/0.3519, allocations: 311.2 kB / 464.3 MB, free: 6.348 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002673/0.3545, allocations: 1.471 MB / 465.7 MB, free: 4.836 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001349/0.3547, allocations: 164.1 kB / 465.9 MB, free: 4.672 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003281/0.355, allocations: 215.9 kB / 466.1 MB, free: 4.461 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004705/0.3597, allocations: 2.796 MB / 468.9 MB, free: 1.578 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.285e-05/0.3598, allocations: 7.938 kB / 468.9 MB, free: 1.57 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001994/0.36, allocations: 84 kB / 469 MB, free: 1.488 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001224/0.3601, allocations: 104.2 kB / 469.1 MB, free: 1.383 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004147/0.3642, allocations: 2.347 MB / 471.4 MB, free: 15.02 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01321/0.3774, allocations: 8.378 MB / 479.8 MB, free: 6.395 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002211/0.3797, allocations: 1.174 MB / 481 MB, free: 5.211 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001702/0.3814, allocations: 0.9016 MB / 481.9 MB, free: 4.312 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002262/0.3816, allocations: 48.94 kB / 481.9 MB, free: 4.266 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.096e-05/0.3816, allocations: 47.5 kB / 482 MB, free: 4.207 MB / 382.1 MB Notification: Performance of pre-optimization done (n=101): time 2.575e-06/0.3816, allocations: 4 kB / 482 MB, free: 4.203 MB / 382.1 MB Notification: Performance of matching and sorting (n=116): time 0.01287/0.3945, allocations: 5.734 MB / 487.7 MB, free: 14.43 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.069e-05/0.3946, allocations: 64.41 kB / 487.8 MB, free: 14.36 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002143/0.3967, allocations: 1.445 MB / 489.2 MB, free: 12.9 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 8.883e-05/0.3968, allocations: 45.7 kB / 489.3 MB, free: 12.85 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008368/0.3976, allocations: 1.067 MB / 490.4 MB, free: 11.77 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003987/0.398, allocations: 436.3 kB / 490.8 MB, free: 11.34 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004408/0.3985, allocations: 255.5 kB / 491 MB, free: 11.09 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001948/0.3987, allocations: 357.9 kB / 491.4 MB, free: 10.73 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001281/0.3999, allocations: 0.691 MB / 492.1 MB, free: 10.04 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001605/0.4015, allocations: 1.066 MB / 493.1 MB, free: 8.816 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002841/0.4044, allocations: 1.868 MB / 495 MB, free: 6.789 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.272e-05/0.4044, allocations: 4 kB / 495 MB, free: 6.785 MB / 398.1 MB Notification: Performance of matching and sorting (n=178) (initialization): time 0.004357/0.4088, allocations: 2.339 MB / 497.3 MB, free: 4.426 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.539e-05/0.4088, allocations: 14.95 kB / 497.4 MB, free: 4.414 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.489e-05/0.4088, allocations: 15.94 kB / 497.4 MB, free: 4.398 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001029/0.4098, allocations: 414.5 kB / 497.8 MB, free: 3.984 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001226/0.4111, allocations: 327.5 kB / 498.1 MB, free: 3.664 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007614/0.4187, allocations: 6.74 MB / 0.493 GB, free: 12.58 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001397/0.4201, allocations: 103.9 kB / 0.4931 GB, free: 12.48 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001229/0.4202, allocations: 59.98 kB / 0.4932 GB, free: 12.42 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.001244/0.4214, allocations: 0.6888 MB / 0.4938 GB, free: 11.72 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003321/0.4218, allocations: 170.9 kB / 0.494 GB, free: 11.55 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003804/0.4256, allocations: 2.04 MB / 0.496 GB, free: 9.484 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.208e-05/0.4256, allocations: 12 kB / 0.496 GB, free: 9.473 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.877e-06/0.4256, allocations: 4 kB / 0.496 GB, free: 9.469 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.119e-05/0.4256, allocations: 3.984 kB / 0.496 GB, free: 9.465 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007888/0.4335, allocations: 4.46 MB / 0.5004 GB, free: 4.902 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.192e-06/0.4335, allocations: 0 / 0.5004 GB, free: 4.902 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009046/0.4344, allocations: 215.7 kB / 0.5006 GB, free: 4.691 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001155/0.4356, allocations: 451.5 kB / 0.501 GB, free: 4.238 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.854e-05/0.4357, allocations: 35.92 kB / 0.501 GB, free: 4.203 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008849/0.4445, allocations: 8.203 MB / 0.509 GB, free: 11.54 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.035e-06/0.4445, allocations: 7.938 kB / 0.5091 GB, free: 11.54 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005257/0.4498, allocations: 3.036 MB / 0.512 GB, free: 8.426 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009649/0.4507, allocations: 306.8 kB / 0.5123 GB, free: 8.125 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002096/0.4509, allocations: 35.94 kB / 0.5123 GB, free: 8.09 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008648/0.4518, allocations: 91.83 kB / 0.5124 GB, free: 8 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002455/0.4521, allocations: 96.77 kB / 0.5125 GB, free: 7.906 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.981e-05/0.4521, allocations: 35.98 kB / 0.5126 GB, free: 7.871 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.001542/0.4537, allocations: 0.9888 MB / 0.5135 GB, free: 6.883 MB / 430.1 MB Notification: Performance of sort global known variables: time 9e-08/0.4537, allocations: 0 / 0.5135 GB, free: 6.883 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.001588/0.4553, allocations: 463.9 kB / 0.514 GB, free: 6.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.005707/0.461, allocations: 3.667 MB / 0.5175 GB, free: 2.684 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.003908/0.4649, allocations: 2.079 MB / 0.5196 GB, free: 0.5664 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 6.492e-06/0.4649, allocations: 0 / 0.5196 GB, free: 0.5664 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002426/0.4673, allocations: 1.399 MB / 0.5209 GB, free: 15.11 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002176/0.4695, allocations: 413 kB / 0.5213 GB, free: 14.72 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2884/0.7579, allocations: 16.78 MB / 0.5377 GB, free: 99.76 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001924/0.7598, allocations: 1.807 MB / 0.5395 GB, free: 99.04 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.001321/0.7611, allocations: 366.9 kB / 0.5398 GB, free: 99.02 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001012/0.7621, allocations: 0.8271 MB / 0.5406 GB, free: 99.01 MB / 446.1 MB Notification: Performance of SimCode: time 2.314e-06/0.7621, allocations: 0 / 0.5406 GB, free: 99.01 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1204/0.8825, allocations: 43.33 MB / 0.583 GB, free: 63.79 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.93/13.81, allocations: 15.38 kB / 0.583 GB, free: 63.78 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 & 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.448757654987276] 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.923577766865492 13.939373629 13.591367824 Calling exit ...