Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASMav.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-master/package.mo", uses=false) Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/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.ASMav,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC3ph_Drives_ASMav",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Drives.ASMav,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC3ph_Drives_ASMav",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.001307/0.001307, allocations: 115 kB / 16.63 MB, free: 6.812 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.001341/0.00134, allocations: 186 kB / 17.55 MB, free: 5.934 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.283/1.283, allocations: 222.9 MB / 241.2 MB, free: 15.43 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1816/0.1816, allocations: 38.04 MB / 329.4 MB, free: 9.031 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001167/0.001167, allocations: 65.83 kB / 398.4 MB, free: 34.33 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1017/0.1029, allocations: 58.07 MB / 456.5 MB, free: 8.324 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Drives.ASMav): time 0.009111/0.112, allocations: 8.34 MB / 464.8 MB, free: 15.94 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.008555/0.1206, allocations: 5.465 MB / 470.3 MB, free: 10.46 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009402/0.1216, allocations: 55.62 kB / 470.3 MB, free: 10.4 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01027/0.1319, allocations: 5.83 MB / 476.2 MB, free: 4.559 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001693/0.1336, allocations: 477.9 kB / 476.6 MB, free: 4.09 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001457/0.1351, allocations: 461.3 kB / 477.1 MB, free: 3.641 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.00337/0.1385, allocations: 2.312 MB / 479.4 MB, free: 1.324 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001803/0.1403, allocations: 0.9509 MB / 480.3 MB, free: 364 kB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001604/0.1419, allocations: 0.6032 MB / 480.9 MB, free: 15.75 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001581/0.1435, allocations: 0.7709 MB / 481.7 MB, free: 14.98 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003923/0.1439, allocations: 100 kB / 481.8 MB, free: 14.88 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000801/0.1447, allocations: 259.7 kB / 482.1 MB, free: 14.62 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006376/0.1454, allocations: 0.4949 MB / 482.6 MB, free: 14.13 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00107/0.1464, allocations: 0.5831 MB / 483.1 MB, free: 13.54 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002186/0.1486, allocations: 1.527 MB / 484.7 MB, free: 12.01 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.667e-06/0.1487, allocations: 4 kB / 484.7 MB, free: 12.01 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.372e-06/0.1487, allocations: 0 / 484.7 MB, free: 12.01 MB / 366.1 MB Notification: Performance of Transformations before backend: time 6.379e-05/0.1487, allocations: 0 / 484.7 MB, free: 12.01 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: 220 * Number of variables: 220 Notification: Performance of Generate backend data structure: time 0.003753/0.1525, allocations: 1.452 MB / 486.1 MB, free: 10.5 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.256e-05/0.1526, allocations: 11.89 kB / 486.1 MB, free: 10.49 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002289/0.1528, allocations: 135.6 kB / 486.3 MB, free: 10.35 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007284/0.1535, allocations: 151.5 kB / 486.4 MB, free: 10.2 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001725/0.1553, allocations: 0.878 MB / 487.3 MB, free: 9.281 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.119e-05/0.1553, allocations: 61.98 kB / 487.4 MB, free: 9.223 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001563/0.1555, allocations: 91.89 kB / 487.4 MB, free: 9.133 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001731/0.1572, allocations: 1.229 MB / 488.7 MB, free: 7.832 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.162e-05/0.1573, allocations: 11.94 kB / 488.7 MB, free: 7.82 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.182e-05/0.1574, allocations: 31.98 kB / 488.7 MB, free: 7.789 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002193/0.1576, allocations: 97.88 kB / 488.8 MB, free: 7.695 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0015/0.1591, allocations: 0.9992 MB / 489.8 MB, free: 6.695 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00603/0.1652, allocations: 4.924 MB / 494.7 MB, free: 1.562 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009812/0.1662, allocations: 0.6496 MB / 495.4 MB, free: 0.875 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005622/0.1667, allocations: 367.4 kB / 495.7 MB, free: 0.5117 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.896e-05/0.1668, allocations: 12.56 kB / 495.8 MB, free: 0.5 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006426/0.1675, allocations: 441.8 kB / 496.2 MB, free: 48 kB / 366.1 MB Notification: Performance of pre-optimization done (n=62): time 2.264e-06/0.1675, allocations: 3.938 kB / 496.2 MB, free: 44 kB / 366.1 MB Notification: Performance of matching and sorting (n=65): time 0.004566/0.172, allocations: 2.712 MB / 498.9 MB, free: 13.19 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.951e-05/0.1721, allocations: 115.3 kB / 499 MB, free: 13.05 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008138/0.1729, allocations: 0.7506 MB / 499.8 MB, free: 12.29 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 5.637e-05/0.173, allocations: 41.7 kB / 499.8 MB, free: 12.24 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003119/0.1733, allocations: 0.4985 MB / 0.4886 GB, free: 11.74 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001613/0.1735, allocations: 232.6 kB / 0.4888 GB, free: 11.51 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002432/0.1737, allocations: 186.5 kB / 0.489 GB, free: 11.32 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001549/0.1739, allocations: 398.7 kB / 0.4894 GB, free: 10.92 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005351/0.1744, allocations: 373.8 kB / 0.4897 GB, free: 10.55 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007429/0.1752, allocations: 0.6578 MB / 0.4904 GB, free: 9.773 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001237/0.1764, allocations: 1.049 MB / 0.4914 GB, free: 8.605 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.982e-06/0.1765, allocations: 4 kB / 0.4914 GB, free: 8.602 MB / 382.1 MB Notification: Performance of matching and sorting (n=120) (initialization): time 0.002748/0.1792, allocations: 1.623 MB / 0.493 GB, free: 6.945 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.182e-05/0.1792, allocations: 8.5 kB / 0.493 GB, free: 6.938 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.298e-05/0.1793, allocations: 11.94 kB / 0.493 GB, free: 6.926 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001451/0.1807, allocations: 493.2 kB / 0.4935 GB, free: 6.438 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005932/0.1813, allocations: 167.7 kB / 0.4936 GB, free: 6.273 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009176/0.1905, allocations: 7.098 MB / 0.5006 GB, free: 14.89 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008669/0.1914, allocations: 48.03 kB / 0.5006 GB, free: 14.85 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000174/0.1916, allocations: 43.98 kB / 0.5006 GB, free: 14.8 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 40 * Number of states: 0 () * Number of discrete variables: 2 (system.initime,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (89): * Single equations (assignments): 87 * 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 {(6,23)} Notification: Performance of prepare postOptimizeDAE: time 0.0006677/0.1923, allocations: 357.4 kB / 0.501 GB, free: 14.45 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001794/0.1925, allocations: 82.97 kB / 0.5011 GB, free: 14.36 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001963/0.1944, allocations: 1.11 MB / 0.5021 GB, free: 13.2 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.841e-05/0.1945, allocations: 8 kB / 0.5021 GB, free: 13.19 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.059e-05/0.1945, allocations: 7.938 kB / 0.5022 GB, free: 13.18 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.057e-06/0.1945, allocations: 3.984 kB / 0.5022 GB, free: 13.18 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003715/0.1982, allocations: 2.119 MB / 0.5042 GB, free: 10.94 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.1e-06/0.1983, allocations: 4 kB / 0.5042 GB, free: 10.93 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007722/0.199, allocations: 123.8 kB / 0.5044 GB, free: 10.81 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005461/0.1996, allocations: 170.5 kB / 0.5045 GB, free: 10.64 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.43e-05/0.1997, allocations: 19.98 kB / 0.5045 GB, free: 10.62 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004159/0.2039, allocations: 4.805 MB / 0.5092 GB, free: 5.398 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.298e-06/0.2039, allocations: 8.094 kB / 0.5092 GB, free: 5.391 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002429/0.2063, allocations: 1.533 MB / 0.5107 GB, free: 3.781 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003785/0.2067, allocations: 204 kB / 0.5109 GB, free: 3.562 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001643/0.2069, allocations: 23.98 kB / 0.5109 GB, free: 3.539 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005169/0.2074, allocations: 31.98 kB / 0.511 GB, free: 3.508 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001485/0.2076, allocations: 52.42 kB / 0.511 GB, free: 3.457 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.283e-05/0.2076, allocations: 23.98 kB / 0.5111 GB, free: 3.434 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0008386/0.2085, allocations: 0.5107 MB / 0.5116 GB, free: 2.926 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.2085, allocations: 3.938 kB / 0.5116 GB, free: 2.922 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001137/0.2096, allocations: 268.1 kB / 0.5118 GB, free: 2.66 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 13 (power.pav[1],power.pav[2],power.pav[3],asm.rotor.phi,asm.rotor.w,asm.motor.i[3],asm.motor.psi_s[1],asm.motor.psi_s[2],asm.motor.psi_rd[1],asm.motor.psi_rd[2],asm.motor.psi_rq[1],asm.motor.psi_rq[2],tabLoad.s) * Number of discrete variables: 2 ($whenCondition1,system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (59): * Single equations (assignments): 55 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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 {(1,3,100.0%), (2,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.003489/0.2131, allocations: 2.395 MB / 0.5141 GB, free: 328 kB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.2061/0.4193, allocations: 1.446 MB / 0.5156 GB, free: 71.48 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 7.143e-06/0.4193, allocations: 0 / 0.5156 GB, free: 71.48 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00135/0.4207, allocations: 0.7844 MB / 0.5163 GB, free: 71.15 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001154/0.4218, allocations: 206.8 kB / 0.5165 GB, free: 71.14 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01553/0.4374, allocations: 10.46 MB / 0.5267 GB, free: 65.77 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009068/0.4383, allocations: 1.146 MB / 0.5279 GB, free: 65.01 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0008939/0.4392, allocations: 236.8 kB / 0.5281 GB, free: 64.98 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004354/0.4397, allocations: 357.5 kB / 0.5284 GB, free: 64.71 MB / 398.1 MB Notification: Performance of SimCode: time 6.81e-07/0.4397, allocations: 3.719 kB / 0.5284 GB, free: 64.71 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04892/0.4886, allocations: 23.35 MB / 0.5512 GB, free: 49.75 MB / 398.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002069/0.4889, allocations: 291.6 kB / 0.5515 GB, free: 49.36 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.337/2.826, allocations: 2.625 kB / 0.5515 GB, free: 49.36 MB / 398.1 MB (rm -f PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASMav.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASMav.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASMav.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASMav.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASMav_res.mat --tempDir=temp_PowerSystems_latest_PowerSystems_Examples_AC3ph_Drives_ASMav_fmu --startTime=0 --stopTime=60 --timeout=50 --tolerance=1e-06 PowerSystems_latest_PowerSystems_Examples_AC3ph_Drives_ASMav.fmu > PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASMav.pipe 2>&1)