Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC3ph.Drives.SM_ctrlAv.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo", uses=false) Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Drives.SM_ctrlAv,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC3ph_Drives_SM_ctrlAv",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Drives.SM_ctrlAv,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC3ph_Drives_SM_ctrlAv",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001148/0.001149, allocations: 105.8 kB / 16.92 MB, free: 6.145 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001227/0.001228, allocations: 187.4 kB / 17.85 MB, free: 5.285 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.33/1.33, allocations: 222.9 MB / 241.5 MB, free: 15.21 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1861/0.1861, allocations: 38.03 MB / 329.7 MB, free: 8.797 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001265/0.001265, allocations: 62.83 kB / 398.9 MB, free: 33.94 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09453/0.09581, allocations: 58.06 MB / 457 MB, free: 7.957 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Drives.SM_ctrlAv): time 0.008596/0.1044, allocations: 7.175 MB / 464.1 MB, free: 0.7422 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.004916/0.1094, allocations: 3.019 MB / 467.2 MB, free: 13.71 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006544/0.1101, allocations: 35.81 kB / 467.2 MB, free: 13.68 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001208/0.1113, allocations: 369.7 kB / 467.6 MB, free: 13.32 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001516/0.1128, allocations: 0.6334 MB / 468.2 MB, free: 12.68 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009723/0.1138, allocations: 445.2 kB / 468.6 MB, free: 12.25 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001646/0.1155, allocations: 1.477 MB / 470.1 MB, free: 10.76 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001462/0.1169, allocations: 1.195 MB / 471.3 MB, free: 9.543 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008071/0.1178, allocations: 0.5683 MB / 471.9 MB, free: 8.973 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009158/0.1187, allocations: 0.6498 MB / 472.5 MB, free: 8.32 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002205/0.1189, allocations: 112 kB / 472.6 MB, free: 8.211 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000611/0.1195, allocations: 351.5 kB / 473 MB, free: 7.867 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003901/0.1199, allocations: 399 kB / 473.4 MB, free: 7.477 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006325/0.1206, allocations: 0.5792 MB / 473.9 MB, free: 6.895 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001448/0.122, allocations: 1.659 MB / 475.6 MB, free: 5.23 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.065e-06/0.122, allocations: 0 / 475.6 MB, free: 5.23 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.112e-06/0.1221, allocations: 0 / 475.6 MB, free: 5.23 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.291e-05/0.1221, allocations: 0 / 475.6 MB, free: 5.23 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 226 * Number of variables: 226 Notification: Performance of Generate backend data structure: time 0.002524/0.1246, allocations: 1.429 MB / 477 MB, free: 3.75 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.435e-05/0.1247, allocations: 11.89 kB / 477 MB, free: 3.738 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001649/0.1248, allocations: 143.8 kB / 477.2 MB, free: 3.59 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006613/0.1255, allocations: 163.5 kB / 477.3 MB, free: 3.43 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001267/0.1268, allocations: 0.7932 MB / 478.1 MB, free: 2.594 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.954e-05/0.1268, allocations: 62 kB / 478.2 MB, free: 2.535 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000174/0.127, allocations: 95.89 kB / 478.3 MB, free: 2.441 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001612/0.1286, allocations: 1.153 MB / 479.4 MB, free: 1.23 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.588e-05/0.1287, allocations: 0 / 479.4 MB, free: 1.23 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.344e-05/0.1288, allocations: 39.94 kB / 479.5 MB, free: 1.191 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000103/0.1289, allocations: 61.97 kB / 479.5 MB, free: 1.133 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001504/0.1304, allocations: 0.9446 MB / 480.5 MB, free: 192 kB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0055/0.1359, allocations: 4.628 MB / 485.1 MB, free: 11.33 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001134/0.137, allocations: 0.692 MB / 485.8 MB, free: 10.59 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005917/0.1377, allocations: 337.7 kB / 486.1 MB, free: 10.26 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.883e-05/0.1377, allocations: 12.55 kB / 486.1 MB, free: 10.25 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.523e-05/0.1378, allocations: 43.06 kB / 486.2 MB, free: 10.2 MB / 366.1 MB Notification: Performance of pre-optimization done (n=58): time 2.294e-06/0.1378, allocations: 4 kB / 486.2 MB, free: 10.19 MB / 366.1 MB Notification: Performance of matching and sorting (n=62): time 0.00486/0.1426, allocations: 2.335 MB / 488.5 MB, free: 7.781 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.694e-05/0.1427, allocations: 141.2 kB / 488.7 MB, free: 7.613 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008214/0.1435, allocations: 0.6763 MB / 489.3 MB, free: 6.926 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 4.436e-05/0.1436, allocations: 37.7 kB / 489.4 MB, free: 6.883 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003254/0.1439, allocations: 494.8 kB / 489.9 MB, free: 6.391 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001759/0.1441, allocations: 216.8 kB / 490.1 MB, free: 6.176 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002067/0.1443, allocations: 150.6 kB / 490.2 MB, free: 6.023 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001479/0.1445, allocations: 390.7 kB / 490.6 MB, free: 5.633 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004712/0.145, allocations: 280.7 kB / 490.9 MB, free: 5.355 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006078/0.1456, allocations: 0.5082 MB / 491.4 MB, free: 4.738 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003391/0.149, allocations: 1.517 MB / 492.9 MB, free: 3.102 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.983e-06/0.149, allocations: 7.938 kB / 492.9 MB, free: 3.094 MB / 366.1 MB Notification: Performance of matching and sorting (n=100) (initialization): time 0.002912/0.1519, allocations: 1.387 MB / 494.3 MB, free: 1.672 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.087e-05/0.152, allocations: 8 kB / 494.3 MB, free: 1.664 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.524e-05/0.152, allocations: 8 kB / 494.3 MB, free: 1.656 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00158/0.1536, allocations: 439.1 kB / 494.7 MB, free: 1.223 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005313/0.1541, allocations: 139.8 kB / 494.9 MB, free: 1.086 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008974/0.1631, allocations: 6.71 MB / 0.4898 GB, free: 10.1 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006121/0.1637, allocations: 39.97 kB / 0.4899 GB, free: 10.06 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.172e-05/0.1638, allocations: 39.94 kB / 0.4899 GB, free: 10.02 MB / 382.1 MB Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization system: $DER.sm_ctrl.rotor.w = 0.0. Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0007991/0.1646, allocations: 0.5058 MB / 0.4904 GB, free: 9.508 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0005473/0.1652, allocations: 0.5043 MB / 0.4909 GB, free: 8.898 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.003224/0.1684, allocations: 1.486 MB / 0.4923 GB, free: 7.293 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 4.098e-06/0.1684, allocations: 0 / 0.4923 GB, free: 7.293 MB / 382.1 MB Notification: Performance of matching and sorting (n=100) (initialization_lambda0): time 0.002575/0.171, allocations: 1.297 MB / 0.4936 GB, free: 5.961 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.503e-05/0.171, allocations: 11.12 kB / 0.4936 GB, free: 5.953 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.007e-05/0.1711, allocations: 8 kB / 0.4936 GB, free: 5.945 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001426/0.1725, allocations: 433.4 kB / 0.494 GB, free: 5.516 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005192/0.173, allocations: 147.7 kB / 0.4942 GB, free: 5.371 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007616/0.1807, allocations: 6.489 MB / 0.5005 GB, free: 14.59 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005548/0.1812, allocations: 31.98 kB / 0.5005 GB, free: 14.56 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.579e-05/0.1813, allocations: 36 kB / 0.5006 GB, free: 14.53 MB / 398.1 MB Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization_lambda0 system: $DER.sm_ctrl.rotor.w = 0.0. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 34 * Number of states: 0 () * Number of discrete variables: 2 (system.initime,PI_i_q.I.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (71): * Single equations (assignments): 69 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(4,23)} Notification: Performance of prepare postOptimizeDAE: time 0.0002464/0.1815, allocations: 228 kB / 0.5008 GB, free: 14.3 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001744/0.1817, allocations: 82.97 kB / 0.5009 GB, free: 14.21 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001225/0.183, allocations: 0.7381 MB / 0.5016 GB, free: 13.46 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.4e-06/0.183, allocations: 4 kB / 0.5016 GB, free: 13.46 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.478e-06/0.183, allocations: 4 kB / 0.5016 GB, free: 13.46 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.302e-06/0.183, allocations: 0 / 0.5016 GB, free: 13.46 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002562/0.1856, allocations: 1.766 MB / 0.5033 GB, free: 11.61 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.527e-06/0.1856, allocations: 0 / 0.5033 GB, free: 11.61 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006976/0.1863, allocations: 147.8 kB / 0.5035 GB, free: 11.46 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.045e-05/0.1864, allocations: 20.86 kB / 0.5035 GB, free: 11.44 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.504e-05/0.1864, allocations: 15.98 kB / 0.5035 GB, free: 11.43 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008046/0.1872, allocations: 1.379 MB / 0.5048 GB, free: 9.91 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.342e-06/0.1872, allocations: 0 / 0.5048 GB, free: 9.91 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001623/0.1889, allocations: 1.209 MB / 0.506 GB, free: 8.668 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002698/0.1892, allocations: 216.1 kB / 0.5062 GB, free: 8.438 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001022/0.1893, allocations: 12 kB / 0.5062 GB, free: 8.426 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004309/0.1897, allocations: 27.97 kB / 0.5063 GB, free: 8.398 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.218e-05/0.1898, allocations: 48.44 kB / 0.5063 GB, free: 8.352 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.6e-05/0.1898, allocations: 20.12 kB / 0.5063 GB, free: 8.332 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0005338/0.1904, allocations: 475 kB / 0.5068 GB, free: 7.871 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1904, allocations: 0 / 0.5068 GB, free: 7.871 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001315/0.1917, allocations: 416 kB / 0.5072 GB, free: 7.465 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 6 (sm_ctrl.motor.i_s[1],sm_ctrl.motor.i_s[2],sm_ctrl.motor.i_s[3],loadInertia.w,frictTorq.phi,PI_i_q.I.y) * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (66): * Single equations (assignments): 64 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,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.002042/0.1938, allocations: 1.796 MB / 0.5089 GB, free: 5.633 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.003519/0.1973, allocations: 2.096 MB / 0.511 GB, free: 3.488 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.096e-06/0.1973, allocations: 1.375 kB / 0.511 GB, free: 3.488 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006086/0.1979, allocations: 445.9 kB / 0.5114 GB, free: 3.043 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00105/0.199, allocations: 225.3 kB / 0.5116 GB, free: 2.824 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1662/0.3652, allocations: 8.612 MB / 0.52 GB, free: 66.56 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001031/0.3663, allocations: 1.109 MB / 0.5211 GB, free: 65.86 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0008932/0.3673, allocations: 214.6 kB / 0.5213 GB, free: 65.85 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004353/0.3677, allocations: 345.2 kB / 0.5217 GB, free: 65.75 MB / 398.1 MB Notification: Performance of SimCode: time 1.142e-06/0.3677, allocations: 0 / 0.5217 GB, free: 65.75 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05286/0.4206, allocations: 25.08 MB / 0.5462 GB, free: 53.16 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.77/12.19, allocations: 3.75 kB / 0.5462 GB, free: 53.16 MB / 398.1 MB (rm -f PowerSystems_PowerSystems.Examples.AC3ph.Drives.SM_ctrlAv.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC3ph.Drives.SM_ctrlAv.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC3ph.Drives.SM_ctrlAv.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC3ph.Drives.SM_ctrlAv.sim & python3 -m fmpy simulate --output-file PowerSystems_PowerSystems.Examples.AC3ph.Drives.SM_ctrlAv_res.csv --start-time 0 --stop-time 10 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.004 PowerSystems_PowerSystems_Examples_AC3ph_Drives_SM_ctrlAv.fmu > PowerSystems_PowerSystems.Examples.AC3ph.Drives.SM_ctrlAv.pipe 2>&1)